gaps
Stop minding the gap. Extend php with these polyfills and missing functionality.
Filled
array_splice_preserve_keys()
: anarray_splice
which does preverse the keys of the replacement array
Polyfilled
empty_expression()
: anempty
which works on expressions (when below PHP 5.5.0)
Installation
Use Composer. Add alsvanzelf/gaps
to your project's composer.json
:
{
"require": {
"alsvanzelf/gaps": "dev-master"
}
}
Start your file with
use alsvanzelf\gaps\gaps;
use alsvanzelf\gaps\polyfills;
And use the methods where you need:
gaps::method_name();
polyfills::method_name();
Contributing
Pull Requests or issues are welcome!
Licence
MIT