PHPackages                             mackstar/spout - 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. mackstar/spout

ActiveLibrary

mackstar/spout
==============

A BEAR.Sunday based CMS

v0.1.0(11y ago)41327[18 issues](https://github.com/mackstar/Spout/issues)MITPHP

Since Apr 24Pushed 10y ago10 watchersCompare

[ Source](https://github.com/mackstar/Spout)[ Packagist](https://packagist.org/packages/mackstar/spout)[ RSS](/packages/mackstar-spout/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (9)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/8d1a76e653079f2e3e9bfc97c0e75ff11619e5bc362e4b5b8c5ee67868658c47/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d61636b737461722f53706f75742e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/mackstar/Spout)

Mackstar.Spout
==============

[](#mackstarspout)

The resource centric CMS written in BEAR.Sunday and Angular.js

Why do we need another PHP CMS? How is Spout Different?
-------------------------------------------------------

[](#why-do-we-need-another-php-cms-how-is-spout-different)

- A resource centric CMS.
- Pages, blog posts, menus and blocks available as resources.
- Create your own custom resource types.
- Angular.JS based single page admin app is provided.
- The admin app merely is a consumer of the RESTful API that is powering your app.
- Overriding of core CMS simply by using DI and AOP and adding your own resources.
- A modern PHP developer friendly setup.
- Embed content into any PHP app (Laravel, Symfony, Zend Framework etc) All welcome!
- To maximise integration with other composer based PHP libraries.
- Everything is a resource, you can manipulate anything in any REST client.

Contributing
------------

[](#contributing)

I am looking for others to work with me on this app. Please send your pull requests in!

Other tools
-----------

[](#other-tools)

- phpunit.xml for [phpunit](http://phpunit.de/manual/current/en/index.html)
- .travis.yml for [Travis CI](https://travis-ci.org/)
- Grunt
- Angular.js
- Karma
- Jasmine
- Twitter Bootstrap

Requirements
------------

[](#requirements)

- PHP 5.4+
- Apache - (will add NGINX examples soon).

Getting started
---------------

[](#getting-started)

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

[](#installation)

To install Spout you need to checkout [the example app](https://github.com/mackstar/Spout-Site)

```
git clone git@github.com:mackstar/Spout-Site.git {yourapp}
cd {yourapp}
composer install

```

### Contexts

[](#contexts)

There are various contexts that can be implemented and you may have for example both production and api. You can add any contexts as you wish the default included contexts are as follows:

- api
- dev
- test
- production

### Database Config

[](#database-config)

Edit database configuration files in `conf/contexts/{context}.php` to match up the context to your database. The context would usually be (dev|test|production). Default base config files are added at `conf/defaults.php`

\####SQLite

```
