This framework is based on ZendFramework 2. Its goal is to simplyfy the usage of ZF2 and offer some enhancments.
For example this offers xml based module configs and you don't have
to provide a module class with a forced name (Vendor\Module
).
But you're allowed to implement your own module class of course and
you're not forced to follow a specific naming.
This framework is licensed under the terms of the GNU General Public License v3
You can view the license terms in the LICENSE.md file or under http://www.gnu.org/licenses/gpl-3.0-standalone.html
Support for this framework and implementations based on this framework are provided by LUKA netconsult GmbH.
Feel free to contact them for:
- Hosting your solution
- Web application development and consulting
- Business SLAs
- Grab a copy of this framework and ZF2
- Make sure Zend\Loader\AutoloaderFactory is loaded/included, if it is not in your include path
- Include rampage.php
require_once 'rampage.php'
(or rampage.phar if using the phar version)
- Add a composer dependency to rampage-php/framework
- Run composer.phar install
- Include "vendor/autoload.php" as usual.
This is an example you may use for your composer config.
{
"name": "foo/bar",
"description": "My FooBar application",
"license": "proprietary",
"repositories": [
{"type": "vcs", "url": "https://github.com/tux-rampage/rampage-php"},
],
"require": {
"rampage-php/framework": "dev-master",
}
}
Please review the contribution guide in CONTRIBUTING.md before making any contributions.
When using the Phar version, be aware that most php stacks of linux distributions have problems with that when using the distribution's apc extension.
To avoid this problem install the latest apc version from pecl with pecl install apc
.
The problem seems to be fixed in this version.
It is much easier to document and validate available config options as xml with a xml schema definition (xsd) than a php array.
With the provided xsd files you will have an overview which options are available and how to configure them correctly. The framework encapsulates the translation of the xml to the ZF2 config array.
Since loading a php array is faster than processig xml and it'll benefit from bytecode caches, there is an option to pre-compile the xml definitions of your modules to a static array definition which is preferred when it exists.