cekurte / silex-scaffolding
Silex Scaffolding
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^5.6
- cekurte/environment: ~0.0.1
- cekurte/silex-manager-provider: ~0.0.1
- cekurte/silex-translation-provider: ~0.0.1
- dflydev/doctrine-orm-service-provider: ~1.0
- doctrine/dbal: ^2.5
- doctrine/migrations: ^1.0
- gedmo/doctrine-extensions: ^2.4
- jdesrosiers/silex-cors-provider: ^0.1.4
- saxulum/saxulum-webprofiler-provider: ^1.1
- silex/silex: ^1.3
- swiftmailer/swiftmailer: ^5.4
- symfony/console: ^2.7
- symfony/monolog-bridge: ~2.7
- symfony/twig-bridge: ^2.7
- symfony/validator: ^2.7
- vlucas/phpdotenv: ^2.0
Requires (Dev)
- cekurte/tdd: ^1.0
- phpunit/phpunit: ^4.8
- sensiolabs/security-checker: ^3.0
- sjparkinson/static-review: ^5.1
- squizlabs/php_codesniffer: ^2.3
- symfony/browser-kit: ^2.7
- symfony/css-selector: ^2.7
README
- Just a simple scaffolding project to Silex MicroFramework.
- contribute with this project!
Creating a new Project
The package is available on Packagist. The source files is PSR-2 compatible. Autoloading is PSR-4 compatible.
composer create-project cekurte/silex-scaffolding path/
Documentation
The directory structure is the following:
- app/: this directory contains one file that permit you to run your app in console mode;
- bin/: it stores the files that run with the git hooks;
- build/: used by phpunit to build a report of source code coverage (see the phpunit.xml.dist);
- config/: this directory contains the configuration files of your all service providers. And contains too the app.php and app.console.php this files are used to create a new Silex Application and register your providers;
- public/: it is your public folder (in other installations, this directory can be called as htdocs, www, and more);
- src/: Your must put your source files here, by default only one namespace was created called App (see the composer.json file to register other namespaces);
- storage/: it stores the log, cache, doctrine (migrations and proxies) and internationalization files;
- test/: in this directory you must put your php unit test files, by default only namespace was created called App\Test (see the composer.json file to register other namespaces);
- vendor/: used by composer to manage the dependencies of your project;
This project use of environment variables to setup the service providers, then, before of all you must copy the content of .env.example, create a file called .env, paste the content copied and adjust the values of variables.
This project is compatible with PHP built-in server, to start the server you must run the following command:
php -S 0.0.0.0:8000 -t public/ public/index.php
Thanks guys! If you liked of this library, give me a star and contribute with this project =).
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Run the tests, adding new ones for your own code if necessary (
vendor/bin/phpunit
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request