Libraries tagged by array functions
serhatozles/yii2-arraysearch
290 Downloads
This function is searching inside of array.
rehfeld/comparator
4 Downloads
Helps you write concise array sorting callbacks for php's usort function
raheelarifkhans/json-to-html-converter
2 Downloads
This PHP function takes a JSON object and converts it into a structured HTML detail page. The function handles nested objects and arrays, displaying them appropriately in a user-friendly format.
f2/globals
10 Downloads
Provides a function `F2\globals(string $namespace):array` that allow you to save data without polluting the `$_GLOBALS` superglobal.
henderjon/simple_scan_args
132 Downloads
a simple function to parse an $argv array
eclipxe/construct-named-parameters
47 Downloads
Helper functions to create objects using an array as named parameters
timo/createhtmltable
3 Downloads
a small function to create an html table with arrays u need
techworker/php-fn-sortby
13 Downloads
Small function that can be used to sort an array of any shape. PHP7 only.
sectsect/wp-split-single-page
11 Downloads
Supply some functions and Pagination for split single page for each array of custom field without on your template.
pixweber/xmlfiletoarray
1 Downloads
A very simple function to load your XML file and convert it into PHP array. Easy and effective.
landlib/treealgorithms
29 Downloads
This group of methods for work with tree structure. Provide methods build tree from flat array, find node in the tree by id, walk tree and execulte callback function for each node. Node of the tree has fields like as id, parent_id, children. Concrete names of the tree node fields can be configured with TreeAlgorithms properties idFieldName, parentIdFieldName, childsFieldName. Also exists javascript release, search lamzin-andrey/landlib on github.
johncube/deepl
5 Downloads
this package contain function which calls deepl api in order to translate your text. It takes 4 arguments. key - your deepl api key. text - string which you want to translate or array of strings. target_lang - languague into which you want to translate. source_lang (optional) - source language. By default deepl will try to detect language by itself
camilord/nz-companies-register
23 Downloads
This helper package/component is useful when you have a form needs with real and valid NZ company names. I created this because MBIE don't have a working API yet. So this component will use their web search function and scrape the search result data into reusable output, ARRAY. Hope this will save your time and effort writing the same thing.
ashleydawson/canonically-flatten-tree
3202 Downloads
Pure function to flatten a tree (n-dimensional array) into a canonicalised list array
alexanevsky/output-normalizer-bundle
36 Downloads
Provides functions which allows to flexibly customize the output of objects and entities to an array or JSON by defining normalization rules in classes.