Download the PHP package fusionary/craftcms-bootstrap without Composer
On this page you can find all versions of the php package fusionary/craftcms-bootstrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package craftcms-bootstrap
Craft CMS Bootstrap
What it does
Reduces boilerplate for bootstrapping and configuration by abstracting common tasks to a simple api. Used by Fusionary's Craft CMS Boilerplate.
Bootstrap
e.g
@webroot/index.php
- Reduces your app bootstrap boilerplate code to a single chainable statement.
- This is especially helpful for achieving consistency when dealing with multiple access points (e.g. multi-site, console app)
- Sets PHP constants, with sensible fallbacks.
- Gracefully loads .env file environment variables.
Configuration files
e.g.
@root/config/general.php
or any configuration files
- Retrieves environment variables with fallbacks and content-aware type conversion. For example:
export MY_BOOL=true
→bool
export MY_INT=3
→int
- Provides access to HTTP request headers (via
yii\web\Request
), should your configuration rely on it. - Provides method to map your entire config to any matching/prefixed environment variables.
- For example,
$config['allowAutoUpdates']
will matchCRAFT_ALLOW_AUTO_UPDATES
from environment
- For example,
Prerequisites
Installation
API Documentation
Class Reference / API Documentation
Examples
Web app
e.g.
@root/public/index.php
Multi-site web app
e.g.
@root/public/site-handle/index.php
Console app
e.g.
@root/craft
Environment variable mapping
Passing your config through Config::mapMultiEnvConfig
or Config::mapConfig
will map all settings to corresponding environment variables (if they exist).
Settings are converted from their Craft/PHP versions (camel-case) to their environment variable versions (all-caps, snake-case, prefixed — e.g. CRAFT_, DB_).
General config
e.g. @root/config/general.php
Database config
e.g. @root/config/db.php
Generate documentation
Acknowledgements
"Boot" icon by Ben Davis from The Noun Project
All versions of craftcms-bootstrap with dependencies
illuminate/support Version ^5.6
cekurte/environment Version ^0.3.0
vlucas/phpdotenv Version ^2.4