Download the PHP package locomotivemtl/charcoal-contrib-content-builder without Composer
On this page you can find all versions of the php package locomotivemtl/charcoal-contrib-content-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download locomotivemtl/charcoal-contrib-content-builder
More information about locomotivemtl/charcoal-contrib-content-builder
Files in locomotivemtl/charcoal-contrib-content-builder
Package charcoal-contrib-content-builder
Short Description Utils for content builder style attachments, using group attachment widget.
License MIT
Homepage https://locomotive.ca
Informations about the package charcoal-contrib-content-builder
Charcoal ContentBuilder
A Charcoal service provider content builder.
Table of Contents
- Installation
- Dependencies
- Configuration
- Usage
- Development
- API Documentation
- Development Dependencies
- Coding Style
- Credits
- License
Installation
The preferred (and only supported) method is with Composer:
Dependencies
- Charcoal-core ~0.3
- Charcoal-cms ~0.5
- Charcoal-attachment ~0.9
Required
- PHP 5.6+: PHP 7 is recommended.
Configuration
Use the ContentBuilderInterface
on a model or an instance of TemplateableInterface
.
Configure Attachment groups use the usual method. ex :
Usage
Attach any interfaces that are based on this structural model :
This will dynamically add an attachment group to the model.
You can provide the interface to the template controller if the model implements TemplateableInterface
.
This will dynamically add attachments groups on the model depending of the template context.
This can be very useful for section
object, for example, to allow different attachments groups easily based on the template.
Development
To install the development environment:
To run the scripts (phplint, phpcs, and phpunit):
API Documentation
- The auto-generated
phpDocumentor
API documentation is available at:
https://locomotivemtl.github.io/charcoal-contrib-content-builder/docs/master/ - The auto-generated
apigen
API documentation is available at:
https://codedoc.pub/locomotivemtl/charcoal-contrib-content-builder/master/
Development Dependencies
- [php-coveralls/php-coveralls][phpcov]
- [phpunit/phpunit][phpunit]
- [squizlabs/php_codesniffer][phpcs]
Coding Style
The charcoal-contrib-content-builder module follows the Charcoal coding-style:
- PSR-1
- PSR-2
- PSR-4, autoloading is therefore provided by Composer.
- phpDocumentor comments.
- .editorconfig for coding standards.
Coding style validation / enforcement can be performed with
composer phpcs
. An auto-fixer is also available withcomposer phpcbf
.
Credits
License
Charcoal is licensed under the MIT license. See LICENSE for details.
All versions of charcoal-contrib-content-builder with dependencies
locomotivemtl/charcoal-core Version ~0.3
locomotivemtl/charcoal-cms Version ~0.5
locomotivemtl/charcoal-attachment Version ~0.10