Download the PHP package torfs-ict/cmsms without Composer
On this page you can find all versions of the php package torfs-ict/cmsms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download torfs-ict/cmsms
More information about torfs-ict/cmsms
Files in torfs-ict/cmsms
Package cmsms
Short Description CMS Made Simple
License MIT
Homepage http://www.cmsmadesimple.org
Informations about the package cmsms
CMS Made Simple
This packages enables you to use Composer and Bower packages for the development and deployment of CMS Made Simple websites and modules.
It also provides a Vagrant box for easy setup of a development environment.
Setting up a development environment
- Create a composer project:
composer create-project torfs-ict/cmsms <path>
. - Run
vagrant up
in the created project. - Browse to http://192.168.33.99/install and follow the CMSMS installation procedure.
- Include the Composer autoloader in the CMSMS
config.php
file:
Trivia
- The MySQL root password, username, user password and database name are all
cmsms
. - PHPMyAdmin gets installed in the Vagrant box and is accessible at http://192.168.33.99/phpmyadmin.
- Running Composer in the development environment must ALWAYS be done in the Vagrant box.
Developing modules
All modules (in development) should be put in the modules
directory of the development environment and have a valid
composer.json
file as you can see below in the example taken from the Google Maps module.
Composer.json requirements
- The version must be set.
- At least one author must be set.
- The
extra/cmsms
section must be defined.- The
module
field must be set to TRUE, so our dev environment knows it should treat it as a module when installing. - The
name
field must be set to the actual module name. - The
bower
field contains the Bower package requirements (optional). These will automatically be installed when installing/updating the composer package of your module.
- The
Generating a new module
- Create the module directory and change to that directory.
- Run
php ../../src/Module.php
Install module in the development environment
- Make sure your module directory is a Git repository.
-
Add the VCS to the repositories in the development environment composer.json e.g.
-
Add the module as a requirement in composer.json e.g.
- Run
composer update
in the root of the development environment.
Note: if you generated the module with our script, you can skip steps 1 & 2.
Deploying a completed project
- Use the Composer
create-project
command as when setting up the development environment. - Make sure the webroot of your virtual host points to the
cms
directory. - Navigate your browser to the install directory and complete the CMS Made Simple installation.
- Include the Composer autoloader in the CMSMS
config.php
file:require_once(__DIR__ . '/vendor/autoload.php');
- Remove the install directory.
- Run
composer require
for each module you need.
All versions of cmsms with dependencies
torfs-ict/cmsms-netdesign Version *
torfs-ict/cmsms-entity-manager Version *
torfs-ict/cmsms-google-maps Version *
torfs-ict/cmsms-seo Version *
torfs-ict/cmsms-twig Version *
torfs-ict/cmsms-bootstrap-form Version *