dave1010 / php-empty
Empty project to get started with PHP
Installs: 109
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Type:project
Requires (Dev)
- behat/behat: 3.*@stable
- phpspec/phpspec: ~2.1
- phpunit/phpunit: ~4.6
This package is not auto-updated.
Last update: 2024-11-23 18:18:21 UTC
README
Usage
Setup
composer create-project dave1010/php-empty
Running tests
./vendor/bin/phpunit
You can also run ./tdd.sh
to watch PHP files and run PHPUnit automatically whenever there are changes
Running specs
./vendor/bin/phpspec run
./vendor/bin/behat
Serving web content (from the project root)
php -S localhost:8000 -t web/
Console app
./console.php
Structure
src - classes
tests - test classes
spec - spec classes
features - Behat features
web - web root