Download the PHP package inanepain/inane without Composer
On this page you can find all versions of the php package inanepain/inane. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inanepain/inane
More information about inanepain/inane
Files in inanepain/inane
Package inane
Short Description Offers: File Metadata, Server http file with resume, Enum, zf2 config reader, observer pattern, zf3 custom config autoload and string tools, array merge
License UNLICENSE
Homepage http://vaieen.local:8000/inane/tools
Informations about the package inane
Inane: Tools
$Id$ ($Date$)
For a brief few notes on what's Inane Class check out the InaneClasses Wiki. Will be fleshing this out over time. But don't hold your breath. If you want something specific... Ask!
Check out the CHANGELOG if you wanna see the road travelled thus far.
Installing Inane Classes
Requirements
- PHP >= 8.0
- laminas/laminas-http >= 2.8
Installation
OR
Stuff to add to composer.json
then simply run:
Configuration
LogTrait
Database:
module.php:
Dumper
A simple dump tool that neatly stacks its collapsed dumps on the bottom of the page.
option: Dumper::enabled
Set it to false to stop ALL output from Dumper. Instant quiet.
Quick & Easy:
When Dumper starts it registers a global function dd
which is a shortcut for the Dumper::dump
. Calling Dumper::dumper()
once early in your apps life cycle means you can use dd
from then on out.
Or you can create your own dd
function where it fits best for you.
Chaining
Dumper::dump
only takes one set of dumps at a time: item to dump, an optional label and options.
To dump multiple variables simply bracket it right after the first set.
E.G.:
Silence Attribute
Dumper has a Silence attribute that can be applied to classes and methods to... silence dumper within class/method. Silencing a class prevents any dumper output regardless of any method silences within.
parameter:
on
: default -true
. sets silence on or off.
tip:
Using a global constant you can easily set the state from a central point.
e.g.: simplified code
Feedback
Hey, got any ideas or suggestions.
Email me [email protected]