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 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\AppNameSpacein 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.