-
Notifications
You must be signed in to change notification settings - Fork 100
Contributing
Terry L edited this page Aug 22, 2020
·
1 revision
Welcome to contribute your idea to this project. Before sending your pull request, please make sure everything is tested well without errors.
- MySQL or MariaDB installed.
- Redis installed. (Also include PHP extension
php_redis
)
- Run
composer update
to install required libraries.composer update
- Create a writable folder
tmp
. (same level withsrc
folder.) for temporary testing files.mkdir tmp chmod 777 tmp
- Create a MySQL database
shieldon_unittest
mysql -u root -e 'CREATE DATABASE shieldon_unittest;'
- Create a user
shieldon'@'localhost
with passwordtaiwan
.mysql -u root -e "CREATE USER 'shieldon'@'localhost' IDENTIFIED BY 'taiwan';"
- Grant database permissions on
shieldon_unittest
toshieldon'@'localhost
.mysql -u root -e "GRANT ALL ON shieldon_unittest.* TO 'shieldon'@'localhost';"
- Install PHP Xdebug.
apt-get install php7.2-xdebug
- Run test.
composer test
- Author: Terry L. from Taiwan.
- Website: shieldon.io
- GitHub repository: github.com/terrylinooo/shieldon
- WordPress plugin: wordpress.org/plugins/wp-shieldon/
Docs: Laravel, Symfony, CodeIgniter, CakePHP, Yii, Zend, Slim, Fat-Free, Fuel, PHPixie