Download the PHP package locomotivemtl/charcoal-city-boilerplate without Composer

On this page you can find all versions of the php package locomotivemtl/charcoal-city-boilerplate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package charcoal-city-boilerplate

Charcoal City Boilerplate

The goal of this project is to provide a fully working "boilerplate" (empty skeleton project) for a City project using the Charcoal framework. The installation is fully automated.

Table of Content

How to Install

To start a Charcoal project with this Boilerplate, simply:

1. Create / clone the city boilerplate

The --prefer-source argument ensure you have the possibility to edit vendors while the -s dev argument specifies composer to user the latest development boilerplate.

About the Document Root

👉 The project should not be cloned directly in a web-accessible directory. The web server should be configured to serve the www/ folder directly. The other folders (vendor/, src/, templates/, metadata/, config/, etc.) should therefore not be available from the web server (kept outside the document root).

2. Installation process

Create-project setup

Project setup

The project setup uses the given name to rename all files to the currently choosen namespace.

Manual call:

Composer setup

The composer setup updates the composer.json file to match the current project informations.

City config script

The city config script generates a database and a config.local.json file matching the given informations.

Manual call:

3. Ready to go

You can now visit the local webpage and access the home template, default news and default events. Depending on your installation, you might have to update the hosts file.

4. Basic debug

If you can't see the home page with all these steps successfully completed, make sure you changed the hosts file accordingly. Then, you can manually composer update the project, which will rebuild the autoload and update to the latest package. When all else fails, ask for Joel or Bene.

5. Set up charcoal-admin

This step is now completely automated.

First, ensure the admin module (the backend) is properly set up and ready:

Then create the first admin user, to be able to login into the backend:

👉 The ./vendor/bin/charcoal CLI tool, provided by charcoal-app is required to run various scripts, many of which are provided by the charcoal-admin and charcoal-base modules.

Point your browser to http://localhost:8080/ and you should see the boilerplate's default home page.

The next step to customize the backend is to configure the main menu, as well as the various

Dependencies and Requirements

The Charcoal modules

Status matrix

Module Version Travis Scrutinizer Insights Coveralls PHPDoc ApiGen
admin version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
app version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
base version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
cms version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
config version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
core version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
email version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
factory version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
image version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status - -
property version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
translation version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status - -
ui version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
view version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status - -

What's inside this Boilerplate?

Like all Charcoal projects / modules, the main components are:

Development

To install the development environment:

To run the scripts (phplint, phpcs and phpunit):

API documentation

Development dependencies

Continuous Integration

Service Badge Description
Travis Build Status Runs code sniff check and unit tests. Auto-generates API documentation.
Scrutinizer Scrutinizer Code Quality Code quality checker. Also validates API documentation quality.
Coveralls Coverage Status Unit Tests code coverage.
Sensiolabs SensioLabsInsight Another code quality checker, focused on PHP.

Coding Style

The charcoal-base module follows the Charcoal coding-style:

Coding style validation / enforcement can be performed with composer phpcs. An auto-fixer is also available with composer phpcbf.

Authors

Changelog

Unreleased


All versions of charcoal-city-boilerplate with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
locomotivemtl/charcoal-admin Version ^0.2.5
locomotivemtl/charcoal-app Version ^0.4.5
locomotivemtl/charcoal-email Version ~0.1
locomotivemtl/charcoal-search Version ~0.1
beneroch/charcoal-utils Version dev-master
beneroch/charcoal-attachment Version dev-mcaskill-config as 0.3
locomotivemtl/charcoal-city Version ~0.2
mcaskill/charcoal-support Version dev-master
mcaskill/slim-polyglot Version dev-master
mustache/mustache Version ^2.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package locomotivemtl/charcoal-city-boilerplate contains the following files

Loading the files please wait ....