alsvanzelf / gaps
Stop minding the gap. Extend php with these polyfills and missing functionality. Right now, `array_splice_preserve_keys`.
Installs: 1 402
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.2.4
This package is auto-updated.
Last update: 2022-10-02 08:55:34 UTC
README
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