PHPackages                             abetter/toolkit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. abetter/toolkit

ActiveLibrary[Framework](/categories/framework)

abetter/toolkit
===============

A Better Laravel Toolkit, for exceptionally fast web applications.

1.6.18(4y ago)14511[1 issues](https://github.com/abetterstory/abetter-toolkit/issues)[2 PRs](https://github.com/abetterstory/abetter-toolkit/pulls)1MITPHPCI failing

Since May 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/abetterstory/abetter-toolkit)[ Packagist](https://packagist.org/packages/abetter/toolkit)[ RSS](/packages/abetter-toolkit/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (8)Versions (173)Used By (1)

A Better Toolkit
================

[](#a-better-toolkit)

[![Packagist Version](https://camo.githubusercontent.com/561e1b0c32d84b449954304996e0320f5e6de108be726b00a9edc9f1dc671e98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616265747465722f746f6f6c6b69742e737667)](https://packagist.org/packages/abetter/toolkit)[![Latest Stable Version](https://camo.githubusercontent.com/30b3fc461989b854a1b4bd0a99c7fcd00ee2cff5a8a5c482812cd257e47d475c/68747470733a2f2f706f7365722e707567782e6f72672f616265747465722f746f6f6c6b69742f762f737461626c652e737667)](https://packagist.org/packages/abetter/toolkit)[![Total Downloads](https://camo.githubusercontent.com/280fe32cfd2c855385170c5929ace6522ae43c3c9416a92515c7b32340ec0340/68747470733a2f2f706f7365722e707567782e6f72672f616265747465722f746f6f6c6b69742f646f776e6c6f6164732e737667)](https://packagist.org/packages/abetter/toolkit)[![License](https://camo.githubusercontent.com/4cd43a42d3a17b95f6e9fd601e14b0e96900d909f701aa19e8a09db0565ccd9a/68747470733a2f2f706f7365722e707567782e6f72672f616265747465722f746f6f6c6b69742f6c6963656e73652e737667)](https://packagist.org/packages/abetter/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
------------

[](#requirements)

- PHP 7.2+
- Imagick 3+
- MySQL 5.7+
- Composer 1.6+
- Laravel 5.8+
- Deployer 6+
- Node 10.0+
- NPM 6.4+

---

Installation
------------

[](#installation)

Via Composer:

```
composer require abetter/toolkit
```

#### Laravel modifications

[](#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
----------

[](#directives)

#### @component : Improved directive for injecting components

[](#component--improved-directive-for-injecting-components)

```
@component('',[])
@component('',TRUE)
@component('')  @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--improved-directive-for-injecting-class-as-variable)

```
@inject('','')
@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--insert-wrapped-block-section)

```
@block('')
@block('block--typography')
@endblock

```

#### @style : Embedd sass/css in html source code

[](#style--embedd-sasscss-in-html-source-code)

```
@style('')
@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--embedd-js-in-html-source-code)

```
@script('')
@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--embedd-svg-in-html-source-code)

```
@svg('')
@svg('/images/logo.svg')

```

#### @lipsum : Insert mockup text

[](#lipsum--insert-mockup-text)

```
@lipsum('')
@lipsum('medium')

```

#### @pixsum : Insert mockup image

[](#pixsum--insert-mockup-image)

```
@pixsum('','')
@pixsum('photo:tech')
@pixsum('photo:tech','img:w500')

```

#### @logosum : Insert mockup svg logo

[](#logosum--insert-mockup-svg-logo)

```
@logosum('')
@logosum('My Brand Name')

```

---

Contributors
============

[](#contributors)

[Johan Sjöland](https://www.abetterstory.com/%5D)
Senior Product Developer: ABetter Story Sweden AB.

License
-------

[](#license)

MIT license. Please see the [license file](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~140 days

Total

172

Last Release

1646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a82ce146c604f52fb87f37ecdbce1cab95301b4a60f3e07e36b9f720d2742c7?d=identicon)[abetter](/maintainers/abetter)

---

Top Contributors

[![sjoland](https://avatars.githubusercontent.com/u/5939589?v=4)](https://github.com/sjoland "sjoland (15 commits)")

---

Tags

bladelaravelperformancespeed

### Embed Badge

![Health badge](/badges/abetter-toolkit/health.svg)

```
[![Health](https://phpackages.com/badges/abetter-toolkit/health.svg)](https://phpackages.com/packages/abetter-toolkit)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[opencart/opencart

OpenCart

8.1k35.9k7](/packages/opencart-opencart)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M11](/packages/bref-laravel-bridge)[october/rain

October Rain Library

1601.7M63](/packages/october-rain)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
