foxworn3365 / fluorine
A simple library in PHP for handling arrays and strings object oriented
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/foxworn3365/fluorine
Requires
- php: >=8.0
README
Speed up your development time with Fluorine: manage strings, arrays and objects quickly and in just a few lines!
PHP Vanilla
<?php $array = [ "foxworn3365", "paolo bonolis", "barbara d'urso", "jerry scotty", "pogiolo" ]; sort($array); foreach ($array as $value) { // .. }
Fluorine
<?php new NextArray([ "foxworn3365", "paolo bonolis", "barbara d'urso", "jerry scotty", "pogiolo" ])->sort()->foreach($value) { // .. });
Everything in a few lines: connected, simple and optimized
Thanks to Fluorine you can save up to 15% of Ram in medium and large projects!
Why Fluorine is so ⚡fast?
Objects consume less memory than arrays (associative or otherwise): that's why Fluorine bases everything on objects!
Don't believe it? This is how an array is handled:
\Fluorine\ClearObjet(): { "0":"value1", "1":"value2", "2":"value3" }
Installation
You can safely use composer to install this library:
composer require foxworn3365/fluorine