Download the PHP package abetter/toolkit without Composer
On this page you can find all versions of the php package abetter/toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abetter/toolkit
More information about abetter/toolkit
Files in abetter/toolkit
Package toolkit
Short Description A Better Laravel Toolkit, for exceptionally fast web applications.
License MIT
Informations about the package toolkit
A Better Toolkit
ABetter Toolkit is a package of new and modified directives for faster development of component-based web applications, with focus on scalable static caching.
Requirements
- PHP 7.2+
- Imagick 3+
- MySQL 5.7+
- Composer 1.6+
- Laravel 5.8+
- Deployer 6+
- Node 10.0+
- NPM 6.4+
Installation
Via Composer:
Laravel modifications
Add middleware to app/Http/Kernel.php:
Note: The middleware helps Blade clear the view cache when developing many nested components.
Directives
@component : Improved directive for injecting components
@component('<view.name>',[<variables>])
@component('<view.name>',TRUE)
@component('<view.name>') <slot-here> @endcomponent
Component names will be auto-resolved if the blade file has same basename as folder.
You can auto-terminate a @component with TRUE as the second paramater, to avoid writing out @endcomponent, e.g when not using any slots or nested content.
@inject : Improved directive for injecting class as variable
@inject('<variable>','<relative-class-file>')
@inject('Menu','Menu.class.php')
@inject('Menu')
Class-files will be auto-resolved if it's located in the component folder.
@block : Insert wrapped block section
@block('<class-name>')
@block('block--typography')
@endblock
@style : Embedd sass/css in html source code
@style('<relative-filename>')
@style('menu.scss')
Embedded Sass/CSS files will be rendered as external files in development mode to support browsersync live, but will be embedded in html source on Stage/Production for better caching.
@script : Embedd js in html source code
@script('<relative-filename>')
@script('menu.js')
Embedded JS files will be rendered as external files in development mode to support browsersync live, but will be embedded in html source on Stage/Production for better caching.
@svg : Embedd svg in html source code
@svg('<filename-relative-to-resources>')
@svg('/images/logo.svg')
@lipsum : Insert mockup text
@lipsum('<variables>')
@lipsum('medium')
@pixsum : Insert mockup image
@pixsum('<variables>','<options>')
@pixsum('photo:tech')
@pixsum('photo:tech','img:w500')
@logosum : Insert mockup svg logo
@logosum('<variables>')
@logosum('My Brand Name')
Contributors
Johan Sjöland [email protected]
Senior Product Developer: ABetter Story Sweden AB.
License
MIT license. Please see the license file for more information.
All versions of toolkit with dependencies
itsgoingd/clockwork Version ^4.0
deployer/deployer Version ^6.7
fzaninotto/faker Version ^1.9
mrclay/jsmin-php Version ^2.4
patchwork/jsqueeze Version ^2.0
php-console/php-console Version ^3.1
scssphp/scssphp Version ^1.4