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

On this page you can find all versions of the php package locomotivemtl/charcoal-project-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-project-boilerplate

Charcoal Project Boilerplate

⚠️ This skeleton is built for locomotivemtl/charcoal-* and is deprecated in favour of charcoal/boilerplate.

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

It can also optionally set up the Locomotive Boilerplate for the frontend.

Table of Content

Intended scope

Although it is fully ready to use, this boilerplate is still incomplete. It does not yet showcase all of the Charcoal features and therefore require a lot of manual tinkering for options.

Here is a short "mission statement" of what is expected to be accomplished with this project:

How to Install

To start a Charcoal project with this Boilerplate, simply:

1. Installing boilerplate

Charcoal uses the Composer create-project command to install the boilerplate:

Replace "acme" with the desired directory name for your new project.

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 (or through a symlink). The other folders (vendor/, src/, templates/, metadata/, config/, etc.) should therefore not be available from the web server (kept outside the document root).

2. Test your installation

A quick server can be started using the PHP builtin server:

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

How to change the default page and add routes/templates is explained later in this README.

Hint: the recommended way is from the admin, by adding pages (sections).

3. Set up a database storage

The next step requires a custom configuration file. It is recommended to use config/config.local.json and making sure it is not committed to source control:

Then edit the config/config.local.json file with this information.

If your project does not require any database storage, use a database in memory such as SQLite by adding the following to the config/config.local.json file:

If your project uses MySQL, create an empty database and ensure a SQL user has the proper permissions for this database. Then add the following to the config/config.local.json file:

4. Set the project name

By default, the project is named "Acme" and namespaced under App and is autoloaded by Composer using the PSR-4 autoloading standard.

There are a few occurrences of "Acme" in the boilerplate:

You should also change the information of the Composer package:

5. Set up charcoal-admin

A quick-and-dirty script is provided to install charcoal-admin automatically:

Point your browser to http://localhost:8080/admin and you should see the Charcoal's admin login screen.

The next step to customize the backend is to configure the main menu, as well as the various admin options. See the config/admin.json file for details.

Refer to the charcoal-admin help for more information.

6. (Optional) Install locomotive-boilerplate)

Another quick-and-dirty script is provided to install the locomotive frontend, from its github repository.

For more information about the locomotive-boilerplate frontend module: visit https://github.com/locomotivemtl/locomotive-boilerplate

Dependencies and Requirements

External libraries

Most Charcoal features are built on top of proven, open-source technologies:

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
attachment 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 PHPDoc ApiGen
object version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
presenter version Build Status Scrutinizer Code Quality - Coverage Status PHPDoc ApiGen
property version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
queue version Build Status Scrutinizer Code Quality - Coverage Status PHPDoc ApiGen
translator version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
ui version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
user version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
validator version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen
view version Build Status Scrutinizer Code Quality SensioLabsInsight Coverage Status PHPDoc ApiGen

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):

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-project-boilerplate 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


All versions of charcoal-project-boilerplate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.1
locomotivemtl/charcoal-admin Version ^0.30
locomotivemtl/charcoal-app Version ^0.9
locomotivemtl/charcoal-attachment Version ^0.10
locomotivemtl/charcoal-cms Version ^0.10
mustache/mustache Version ^2.14
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-project-boilerplate contains the following files

Loading the files please wait ....