foxworn3365/fluorine

A simple library in PHP for handling arrays and strings object oriented

v0.3 2023-03-30 19:39 UTC

This package is auto-updated.

Last update: 2025-06-29 02:08:33 UTC


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