Description
This library provides a range of utility classes that are used throughout the CakePHP framework
Cake Utility alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view Cake Utility alternatives based on common mentions on social networks and blogs.
-
Country List
:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats. -
Hprose-PHP
Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP -
PHPVerbalExpressions
PHP Regular expressions made easy -
dotenv-linter
⚡️Lightning-fast linter for .env files. Written in Rust 🦀 -
SuperClosure
Serialize closures. Not maintained. Consider using opis/closure. -
Pagerfanta
Pagination library for PHP applications with support for several data providers -
Essence
Extracts information about web pages, like youtube videos, twitter statuses or blog articles. -
sabre/vobject
:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects -
html2text
A PHP component to convert HTML into a plain text format -
RMT
RMT is a handy tool to help releasing new version of your software -
Token Bucket
Implementation of the Token Bucket algorithm in PHP. -
Prooph Service Bus
PHP Lightweight Message Bus supporting CQRS. -
Lodash-PHP
Easy to use utility functions for everyday PHP projects. This is a port of the Lodash JS library to PHP -
noCAPTCHA
:passport_control: Helper for Google's new noCAPTCHA (reCAPTCHA v2 & v3) -
Embera
A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support. -
PHP-GPIO
A PHP library to play with the Raspberry PI's GPIO pins -
ClassPreloader
Optimizes class loading performance by generating a single PHP file containing all of the autoloaded files. -
Metrics
Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics (functional) API that doesn't cause vendor lock-in. -
git-profile
Utility that helps you switch git configurations with ease. -
Slimdump
A tool for creating configurable dumps of large MySQL-databases. -
RedisSessionHandler
An alternative Redis session handler for PHP featuring per-session locking and session fixation protection -
html-object
A set of classes to create and manipulate HTML objects abstractions -
Opengraph
A PHP 5.3+ and PHP 7.3 framework for OpenGraph Protocol -
Sslurp
Sslurp is a simple library which aims to make properly dealing with SSL in PHP suck less. -
Procrastinator
Execute time consuming tasks as late as possible in a request -
Yell
PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.
Cloudways' Black Friday Offer - 1st Choice of Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Cake Utility or a related project?
README
CakePHP Utility Classes
This library provides a range of utility classes that are used throughout the CakePHP framework
What's in the toolbox?
Hash
A Hash
(as in PHP arrays) class, capable of extracting data using an intuitive DSL:
$things = [
['name' => 'Mark', 'age' => 15],
['name' => 'Susan', 'age' => 30],
['name' => 'Lucy', 'age' => 25]
];
$bigPeople = Hash::extract($things, '{n}[age>21].name');
// $bigPeople will contain ['Susan', 'Lucy']
Check the official Hash class documentation
Inflector
The Inflector class takes a string and can manipulate it to handle word variations such as pluralizations or camelizing.
echo Inflector::pluralize('Apple'); // echoes Apples
echo Inflector::singularize('People'); // echoes Person
Check the official Inflector class documentation
Text
The Text class includes convenience methods for creating and manipulating strings.
Text::insert(
'My name is :name and I am :age years old.',
['name' => 'Bob', 'age' => '65']
);
// Returns: "My name is Bob and I am 65 years old."
$text = 'This is the song that never ends.';
$result = Text::wrap($text, 22);
// Returns
This is the song
that never ends.
Check the official Text class documentation
Security
The security library handles basic security measures such as providing methods for hashing and encrypting data.
$key = 'wt1U5MACWJFTXGenFoZoiLwQGrLgdbHA';
$result = Security::encrypt($value, $key);
Security::decrypt($result, $key);
Check the official Security class documentation
Xml
The Xml class allows you to easily transform arrays into SimpleXMLElement or DOMDocument objects and back into arrays again
$data = [
'post' => [
'id' => 1,
'title' => 'Best post',
'body' => ' ... '
]
];
$xml = Xml::build($data);
Check the official Xml class documentation
*Note that all licence references and agreements mentioned in the Cake Utility README section above
are relevant to that project's source code only.