Download the PHP package hallindavid/manny without Composer
On this page you can find all versions of the php package hallindavid/manny. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hallindavid/manny
More information about hallindavid/manny
Files in hallindavid/manny
Package manny
Short Description a package of manipulators that hopefully come in useful for those of us who always forget regex when we need it (manny is short for manipulation)
License MIT
Informations about the package manny
Manny (Short for Manipulators)
a light-weight PHP package of useful common manipulators/formatters.
Installation with Composer
if using Laravel, the Manny alias should be autodiscovered and usable easily like this.
for other frameworks, you will likely need to do
Manny::phone
Manny::phone - a Canada/US phone formatter - rebuilt better than before from hallindavid/phonehelper
Definition
Example
Extending Manny::phone
It's pretty easy to extend the phone class - here is an example
Manny::mask
A mask function for formatting fixed-length data. (great for real-time-masking with livewire/livewire)
Definition
Pattern creation
A
should be a placeholder for an alphabetical character
1
should be a placeholder for a numeric character
all other characters are treated as formatting characters
Example
Manny::yoink
use yoink to pull specific key-values from an associative array, and (optionally) pass in defaults.
Definition
Example
Manny::stripper
a preg_replace abstraction easy-to-remember parameters to reduce frequent googling
Definition
Example
Manny::keep
an alias for the Manny::stripper
with the same functionality (since you are really "keeping" all the characters you define in the options, it makes for better code readability)
Example
Manny::crumble
a preg_replace abstraction easy-to-remember parameters to reduce frequent googling
Definition
Example
Manny::percent
This is a quick-use tool for generating percents. It cleans up bad data before processing, and has an opinionated workflow (eg. 0/0 = 100%)
Definition
Example
Testing
There are a tonne of tests for the packaged formats - to run them, pull the package then
Support
To say thanks, you can share the project on social media or
Issues
Please report all issues in the GitHub Issue tracker
Contributing
Shoot me an email, or DM me on twitter and I am happy to allow other contributors.