werx / skeleton
Skeleton Application for the Werx Project
Requires
- php: >= 5.4
- filp/whoops: ~1.2@dev
- werx/core: ~1.5
- werx/forms: ~1.0
- werx/messages: ~1.0
- werx/validation: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.2
- squizlabs/php_codesniffer: ~2.2
README
Skeleton PHP-MVC application implementing the components from the Werx Project.
Use this as a clean starting point in your Werx-based projects.
Briefly, the Werx Project bundles the following components and lets them work together to form the basic building blocks of a PHP application:
- Configuration Management - werx\Config
- Database Abstraction - Illuminate\Database
- HTTP Abstraction - Symfony\HttpFoundation
- Routing - Aura.Router
- Templates - Plates Native PHP Templates
- Unit Tests - PHPUnit (of course, why use anything else?)
Read the docs at https://github.com/werx/core/blob/master/README.md
Installation
Installation of this package is easy with Composer. If you aren't familiar with the Composer Dependency Manager for PHP, you should read this first.
If you don't already have Composer installed (either globally or in your project), you can install it like this:
$ curl -sS https://getcomposer.org/installer | php
Then you can create a new Werx Skeleton project:
$ composer create-project werx/skeleton your-project-name --stability=dev
The default base namespace of your new app skeleton is werx\Skeleton. You can easily change the namespace in all files using the provided install.php
after downloading this project.
php install.php "Your\AppNamespace"
Of course, replace
Your\AppNameSpace
in the above command with whatever you want to use as your base namespace.
IMPORTANT : Make sure your new namespace is quoted in the install command as shown above.