abetter / toolkit
A Better Laravel Toolkit, for exceptionally fast web applications.
Requires
- aws/aws-sdk-php: ^3.0
- deployer/deployer: ^6.7
- fzaninotto/faker: ^1.9
- itsgoingd/clockwork: ^4.0
- mrclay/jsmin-php: ^2.4
- patchwork/jsqueeze: ^2.0
- php-console/php-console: ^3.1
- scssphp/scssphp: ^1.4
- dev-master
- 1.6.18
- 1.6.17
- 1.6.16
- 1.6.15
- 1.6.14
- 1.6.13
- 1.6.12
- 1.6.11
- 1.6.10
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.29
- 1.5.28
- 1.5.27
- 1.5.26
- 1.5.25
- 1.5.24
- 1.5.23
- 1.5.22
- 1.5.21
- 1.5.20
- 1.5.19
- 1.5.18
- 1.5.17
- 1.5.16
- 1.5.15
- 1.5.14
- 1.5.13
- 1.5.12
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.998
- 1.4.997
- 1.4.996
- 1.4.995
- 1.4.994
- 1.4.993
- 1.4.992
- 1.4.991
- 1.4.99
- 1.4.98
- 1.4.97
- 1.4.96
- 1.4.95
- 1.4.94
- 1.4.93
- 1.4.92
- 1.4.91
- 1.4.90
- 1.4.33
- 1.4.32
- 1.4.31
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.70
- 1.2.69
- 1.2.68
- 1.2.67
- 1.2.66
- 1.2.65
- 1.2.64
- 1.2.63
- 1.2.62
- 1.2.61
- 1.2.60
- 1.2.59
- 1.2.58
- 1.2.57
- 1.2.56
- 1.2.55
- 1.2.54
- 1.2.53
- 1.2.52
- 1.2.51
- 1.2.50
- 1.2.49
- 1.2.48
- 1.2.47
- 1.2.46
- 1.2.45
- 1.2.44
- 1.2.43
- 1.2.42
- 1.2.41
- 1.2.40
- 1.2.39
- 1.2.38
- 1.2.37
- 1.2.36
- 1.2.35
- 1.2.34
- 1.2.33
- 1.2.32
- 1.2.31
- 1.2.30
- 1.2.29
- 1.2.28
- 1.2.27
- 1.2.26
- 1.2.25
- 1.2.24
- 1.2.23
- 1.2.22
- 1.2.21
- 1.2.20
- 1.2.19
- 1.2.18
- 1.2.17
- 1.2.16
- 1.2.15
- 1.2.14
- 1.2.13
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-11-10 22:54:42 UTC
README
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:
composer require abetter/toolkit
Laravel modifications
Add middleware to app/Http/Kernel.php:
protected $middleware = [ \ABetter\Toolkit\SandboxMiddleware::class, ];
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 johan@sjoland.com
Senior Product Developer: ABetter Story Sweden AB.
License
MIT license. Please see the license file for more information.