2017 © Pedro Peláez
 

library charcoal-core

Charcoal Web Framework

image

locomotivemtl/charcoal-core

Charcoal Web Framework

  • Friday, June 15, 2018
  • by mducharme
  • Repository
  • 10 Watchers
  • 5 Stars
  • 13,968 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 37 Versions
  • 7 % Grown

The README.md

Charcoal Core

Build Status, (*1)

The charcoal-core module contains a few core charcoal namespaces: \Charcoal\Loader, \Charcoal\Model, \Charcoal\Source and \Charcoal\Validator., (*2)

How to Install

The preferred (and only supported) way of installing charcoal-core is with composer:, (*3)

★ composer require locomotivemtl/charcoal-core

For a complete, ready-to-use Charcoal project, start from the boilerplate:, (*4)

★ composer create-project locomotivemtl/charcoal-project-boilerplate:@dev --prefer-source

Dependencies and Requirements

Charcoal depends on:, (*5)

  • PHP** 5.6+
    • PHP 7 is recommended, for performance and security.
  • ext-pdo
  • ext-mbstring
  • psr/log
  • psr/cache
  • locomotivemtl/charcoal-config
  • locomotivemtl/charcoal-factory
  • locomotivemtl/charcoal-property
  • locomotivemtl/charcoal-view

Loader

Model

Source

Validator

The validator namespace is obsolete and should not be used. Its usage is currently being removed from everywhere in charcoal., (*6)

Development

To install the development environment:, (*7)

★ composer install --prefer-source

To run the tests:, (*8)

★ composer test

API documentation

Development dependencies

  • phpunit/phpunit
  • squizlabs/php_codesniffer
  • satooshi/php-coveralls

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-core module follows the Charcoal coding-style:, (*9)

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

Authors

License

Charcoal is licensed under the MIT license. See LICENSE for details., (*11)

Changelog

  • Unreleased.

TODOs

  • Remove the dependency on charcoal-app

The Versions