Download the PHP package mackstar/spout without Composer
On this page you can find all versions of the php package mackstar/spout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package spout
Mackstar.Spout
The resource centric CMS written in BEAR.Sunday and Angular.js
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
I am looking for others to work with me on this app. Please send your pull requests in!
Other tools
Requirements
- PHP 5.4+
- Apache - (will add NGINX examples soon).
Getting started
Installation
To install Spout you need to checkout the example app
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
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
MySql
My production.php
file looks something like this:
Installation command
From inside your site run ./vendor/bin/spout install -e {CONTEXT}
PHP Built in Webserver
Apache
Set your DocumentRoot
to "{DOCUMENT_ROOT}/var/www"
Apps
You can make your website up of more than one Spout app. The other apps you have will be installed via composer. The app settings live in conf/apps.php
The example app has been added as bobscars
and lives in the local src
directory as the PSR-4 namespace Bob\BobsCars
.
If for example Bob's cars was reliant on another Spout app called Bob\BobsCarStock
you can add that the config would look like:
Note: JS, CSS and the www
webroot will not be shared. You will need to arrange the copying of these yourself.
Resources, Interceptors and Routes will all be available to you normally.
Routes
Default routing is based on Aura Router. Example routes have been added to conf/routes.php
Create Admin user - only able to do when no user is available
Admin Access
You can access the control panel at
Migration
Rollback
All versions of spout with dependencies
danielstjules/stringy Version 1.*
rhumsaa/uuid Version 2.4
robmorgan/phinx Version *
imagine/imagine Version v0.5.0
zendframework/zend-validator Version *
aptoma/twig-markdown Version 0.2.*
michelf/php-markdown Version ~1.3