Download the PHP package mossengine/helper without Composer
On this page you can find all versions of the php package mossengine/helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mossengine/helper
More information about mossengine/helper
Files in mossengine/helper
Package helper
Short Description PHP Class that streamlines usages of static method helpers without needing to load in or define all the helper classes
License MIT
Homepage https://github.com/Mossengine/Helper
Informations about the package helper
Mossengine/Helper
A PHP library for calling many different helpers from a single point.
About
Helper functions are an important part of any project, however, depending on the implementation they can come at a small or great cost to system resources such as memory.
When you have an included functions file full of functions that you use throughout the project but not all at any one time, the cost you have here is memory allocation to store the functions ready for calling... Other practices with using Helper classes with smaller sets of dedicated static methods are an improvement, but you're still using memory to store those methods that are not needed.
This package allows you to call specific functions under certain categories without needing to load into memory anything more than what you need, it uses a dynamic loading style and also specifically designed helper classes for each specific method so that we only need to load what's needed.
A comparison of memory allocation between a full class of helper methods and this individual loading solution, the results was a 20KB allocation of memory vs 6KB. Larger sets of helper class methods can expect memory allocation sizes higher than 20KB... especially for more complex helper methods with more than a few lines of code.
Installation
Using composer to install
Adding to package.json
Usage
Call helper method on a specific helper class
Helpers
There are other helper classes you can use with this helper library
Mossengine/HelpersArray A library of array based helper methods to manipulate and analyse array structures.
Mossengine/HelpersStatement A library of statement based helper methods to compare and evaluate variable structures against each other.
Documentation
Read the docs for more details on Helper and how to call and extend with your own helper classes and methods
All versions of helper with dependencies
ramsey/uuid Version ^3.4.1
illuminate/support Version ^5.2.32
ext-json Version *