PHPackages                             werx/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. werx/core

ActiveLibrary

werx/core
=========

Front controller and other core libraries used by the Werx project.

2.0.0(7y ago)35.2k↓100%3[1 issues](https://github.com/werx/core/issues)1MITPHPPHP &gt;= 5.5

Since Aug 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/werx/core)[ Packagist](https://packagist.org/packages/werx/core)[ Docs](https://github.com/werx/core)[ RSS](/packages/werx-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (19)Used By (1)

werx.Core
=========

[](#werxcore)

Core libraries for the [Werx Project](http://werx.github.io)
------------------------------------------------------------

[](#core-libraries-for-the-werx-project)

[![Build Status](https://camo.githubusercontent.com/fff93791f9145a989746856b032bcfacb4979677ee4ccaa5e6032cf2ca0c8b44/68747470733a2f2f7472617669732d63692e6f72672f776572782f636f72652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/werx/core) [![Total Downloads](https://camo.githubusercontent.com/a590ab4c886cec1fbdd1050584b1e49c88d3a6de3cb07bb46172520a60e456b3/68747470733a2f2f706f7365722e707567782e6f72672f776572782f636f72652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/werx/core) [![Latest Stable Version](https://camo.githubusercontent.com/50b62ef94b4f5008792ecd5bd67fba5f62ad64d05789952d4321d49f3d87d496/68747470733a2f2f706f7365722e707567782e6f72672f776572782f636f72652f762f737461626c652e706e67)](https://packagist.org/packages/werx/core)

- Routing - [Aura.Router](https://github.com/auraphp/Aura.Router)
- HTTP Abstraction - [Symfony\\HttpFoundation](https://github.com/symfony/HttpFoundation)
- Templates - [Plates Native PHP Templates](http://platesphp.com/)
- Database Abstraction - [Illuminate\\Database](https://github.com/illuminate/database)
- Configuration Management - [werx\\Config](https://github.com/werx/config)
- Unit Tests - [PHPUnit](https://github.com/sebastianbergmann/phpunit) (of course, why use anything else?)

Learn more at [The Werx Project](http://werx.github.io) or see [werx\\Skeleton](https://github.com/werx/skeleton) for a reference implementation.

Installation
------------

[](#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](https://getcomposer.org/doc/00-intro.md).

```
{
	"require": {
        "werx/core": "dev-master"
    },
	"minimum-stability": "dev"
}
```

Suggested Directory Structure
-----------------------------

[](#suggested-directory-structure)

- Your application resides in `src/` and has a base namespace of `Example\Project`
- Your controllers are in `src/controllers/` and have a namespace of `Example\Project\Controllers`
    - Your controllers extend `werx\Core\Controller`

```
src/
	config/
		local/
			config.php
		test/
		prod/
		config.php
		routes.php
	controllers/
		Home.php
	models/
	views/
		home/
			index.php
		layouts/
			default.php
vendor/
	Composer's installation directory
web/
	index.php
	composer.json

```

Front Controller
----------------

[](#front-controller)

Your `web/index.php` serves as the front controller and contains the following content:

```
