PHP Censor is an open-source continuous integration tool designed specifically for PHP development projects. In this tutorial, we will walk you through the process of installing PHP Censor on macOS.
Before we begin, make sure that you have the following prerequisites installed:
git clone https://github.com/php-censor/php-censor.git
cd php-censor
composer install --no-dev --optimize-autoloader
Create a new MySQL/MariaDB or PostgreSQL database for PHP Censor. You can use the command line or a GUI tool like phpMyAdmin or Adminer for this task.
Rename the config.yml.example
file to config.yml
:
mv config.yml.example config.yml
config.yml
file in a text editor and set the database credentials:db:
type: pdo_mysql # or pdo_pgsql for PostgreSQL
dbname: phpcensor
host: localhost
username: root
password:
notifications:
email_settings:
enabled: true
from_address: admin@example.com
from_name: PHP Censor
smtp_host: smtp.gmail.com
smtp_port: 587
smtp_username: your-email@example.com
smtp_password: your-email-password
smtp_encryption: tls
site_url: http://localhost:8080
log_file: '/var/log/php-censor.log'
php vendor/bin/phinx migrate -e production
php -S localhost:8080 -t public public/index.php
http://localhost:8080
to access the PHP Censor dashboard.That's it! You have successfully installed PHP Censor on macOS. You can now use it to automate your PHP project's testing and deployment workflows. Have fun!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!