Download the PHP package charcoal/app without Composer
On this page you can find all versions of the php package charcoal/app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package app
Charcoal App
The App package provides integration with Slim and Pimple for building user-facing Web applications and APIs.
Installation
Overview
The App package is a collection of modules, routes (templates
, actions
and scripts
), handlers, and services tied together with a config, a service container, and service providers.
The framework features (internally and externally) the following:
- PSR-3 logger
- PSR-6 cache system[†]
- PSR-7 kernel (web, API, CLI)
- PSR-11 container
- Translation layer[†]
- File system layer
- Database layer
- View layer[†]
Notes:
- [†] Provided by external Charcoal components.
Components
The main components of the Charcoal App are:
- Config
- App
Module- Routes & Request Controllers
- Action
- Script
- Template
- Route API
- Routable Objects
- Charcoal Binary
- PHPUnit Tests
Learn more about components.
Service Providers
Dependencies and extensions are handled by a dependency container, using Pimple, which can be defined via service providers (Pimple\ServiceProviderInterface
).
Included Providers
The Charcoal App comes with several providers out of the box. All of these are within the Charcoal\App\ServiceProvider
namespace:
AppServiceProvider
DatabaseServicePovider
FilesystemServiceProvider
LoggerServiceProvider
External Providers
The Charcoal App requires a few providers from independent components. The following use their own namespace and are automatically injected via the AppServiceProvider
:
CacheServiceProvider
TranslatorServiceProvider
ViewServiceProvider
Learn more about service providers.
Usage
Typical front-controller (www/index.php
):
For a complete project example using charcoal/app
, see the charcoal/boilerplate.
Resources
All versions of app with dependencies
ext-pdo Version *
league/climate Version ^3.2
league/flysystem Version ^1.0
charcoal/cache Version ^5.0
charcoal/config Version ^5.0
charcoal/factory Version ^5.0
charcoal/translator Version ^5.0
charcoal/view Version ^5.0
monolog/monolog Version ^1.17
psr/http-message Version ^1.0
psr/log Version ^1.0
slim/slim Version ^3.7
vlucas/phpdotenv Version ^5.4