A CakePHP Tools plugin containing lots of useful helpers, behaviors, components, shells, ...
MIT License
Published by dereuromark almost 5 years ago
Published by dereuromark about 5 years ago
Published by dereuromark about 5 years ago
Published by dereuromark about 5 years ago
Added ProgressHelper for calculating and displaying basic text-based progress bars.
The main advantage of the progress helper over default round() calculation is that it only fully displays
0 and 100 percent borders (including the char icon representation) if truly fully that min/max value.
So for 0.9999
as well as 0.0001
etc it will not yet display the completely full or empty bar.
If you want that, you need to pre-round before passing it in.
Published by dereuromark about 5 years ago
Published by dereuromark over 5 years ago
Published by dereuromark over 5 years ago
Published by dereuromark over 5 years ago
Fixed regression Tools component deep trimming.
Published by dereuromark almost 6 years ago
Utility::notBlank()
as more correct version of Utility::notEmpty()
Published by dereuromark almost 6 years ago
Published by dereuromark almost 6 years ago
Allow Slugged behavior to use custom slugger via 'mode'
config. Use any callable here.
It internally still uses the deprecated Inflector::slug()
, so you can also easily replace it now with the Text::slug()
method:
use Cake\Utility\Text;
...
$this->addBehavior('Tools.Slugged', ['mode' => [Text::class, 'slug']]);
Published by dereuromark almost 6 years ago
find('bits')
to include types exact
(default) and contain
.Published by dereuromark almost 6 years ago
Min CakePHP version is now 3.6.
Published by dereuromark about 6 years ago
2.x maintenance release
Fixed GoogleMaps helper to be able to use an API key Google.apiKey
via Configure.
This is required since 2018 and otherwise will not render the map.
Published by dereuromark about 6 years ago
Published by dereuromark over 6 years ago
Add TypographyHelper (upgraded from 2.x) to work alongside TypographicBehavior.
Add MissingTemplateException into 404 whitelist.
SluggedBehavior and comma is now working as expected.
Published by dereuromark over 6 years ago
Published by dereuromark over 6 years ago
Adjust ErrorHandler to not require a request object.
Published by dereuromark over 6 years ago
Add a custom finder find('bits')
for BitmaskedBehavior usage.
Published by dereuromark almost 7 years ago
Fixed BitmaskedBehavior for rows returned as array.