reliv / rcm
Reliv Content Management System
Requires
- php: >=7
- container-interop/container-interop: ^1
- http-interop/http-middleware: ^0.4.1
- psr/http-message: ^1.0
- rcm/api-lib: ~0.11
- rcm/user: ~1.5
- rcm/user-ui: 1.*
- reliv/pipe-rat: ~0.5
- reliv/white-rat: ^0.2.0
- reliv/zf-config-factories: 3.* || 4.*
- rwoverdijk/assetmanager: 1.*
Requires (Dev)
- mockery/mockery: ^1.2.0
- phpunit/phpunit: ^5.7.27
- squizlabs/php_codesniffer: 3.*
Suggests
- bower-asset/angular: ~1
- bower-asset/angular-utils-pagination: ~0.9
- bower-asset/rcm-dialog: >=0.2.0
- bower-asset/rcm-html-editor: >=0.4.0
- bower-asset/rcm-loading: >=0.1.14
- rcm/core-js: Provides basic JS including jQuery, AngularJS and Bootstrap
Replaces
- rcm/login: 1.9.1
- rcm/user: 1.6.0
- rcm/user-api: 1.6.0
- rcm/user-ui: 1.7.0
This package is auto-updated.
Last update: 2021-06-18 18:50:46 UTC
README
If you don't already have the ZF2 skeleton app, download it from github
git clone https://github.com/zendframework/ZendSkeletonApplication.git
Add these entries to the "require" section inside "path-to-zf2-project-root/composer.json"
"require": { "rcm/core" : "dev-master" }
Tell Composer to download the required packages
php /path-to-zf2-project-root/composer.phar update
Run this to set the correct permissions for folders that Apache/PHP must be able to write to
mkdir /path-to-zf2-project-root/data mkdir /path-to-zf2-project-root/data/DoctrineORMModule mkdir /path-to-zf2-project-root/data/DoctrineORMModule/Proxy chmod 777 /path-to-zf2-project-root/data -R mkkdir /path-to-zf2-project-root/public/modules chmod 777 /path-to-zf2-project-root/public/modules
Add Rcm's modules and module paths in "path-to-zf2-project-root/config/application.config.php"
<?php return array( 'modules' => array( //Rcm Dependencies 'DoctrineModule', 'DoctrineORMModule', //RCM core and plugins 'Rcm', 'RcmInstanceConfig', 'RcmHtmlArea', 'RcmNavigation', 'RcmCallToActionBox', 'RcmPortalAnnouncementBox', 'RcmLogin', 'RcmSocialButtons', 'RcmRssFeed', 'RcmRotatingImage', //MUST BE AT BOTTOM OF DEFINITION 'ElFinder', ), 'module_listener_options' => array( 'config_glob_paths' => array( 'config/autoload/{,*.}{global,local}.php', ), 'module_paths' => array( './module', './vendor', './vendor/reliv', './vendor/reliv/RcmPlugins', ), ), );
Add this to "path-to-zf2-project-root/config/autoload/local.php"
<?php return array( 'doctrine' => array( 'connection' => array( 'orm_default' => array( 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'user' => 'DATABASE-USERNAME', 'password' => 'DATABASE-PASSWORD', 'dbname' => 'DATABASE-DBNAME', ) ) ), ), 'encryption' => array( 'cypher' => array( 'algo' => 'aes', 'key' => 'CHANGE THIS ENCRYPTION KEY!' ) ), );
To avoid issues with Doctrine, make sure "date.timezone" is set in your php.ini.
date.timezone="America/Chicago"
Navigate to this URL in a browser to run the installer. This loads data into your database and creates symlinks that allow zf2 modules to contain routable public asset folders.
http://localhost/rcm/install
Login with these credentials:
Email: admin@admin.com Password: admin