Download the PHP package morvren-achronos/useful without Composer
On this page you can find all versions of the php package morvren-achronos/useful. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package useful
useful
Useful is a PHP library collection with a focus on simplicity. Take what you want, ignore the rest.
Goals:
Utility
Useful provides convenience that is not easily found anywhere else.
It solves common challenges that are not well addressed by the PHP language, common frameworks or popular libraries.
Simplicity
Useful can be used quickly without lots of reading and training.
Class hierarchy is flat. Each class does one thing. All classes are immediately useful to application developers.
Easy integration
Useful does not require you to do anything in one particular way.
It has few dependencies, and dependencies are clearly marked. Every class stands on its own and can be used on its own.
Requirements
PHP 5 >= 5.4 or PHP 7; or PHP 5 >= 5.0 with special handling (see No namespaces below).
Most classes should work anywhere that PHP does. Exceptions are clearly marked.
Installation
Composer
Useful supports Composer. If you do too, great, install Useful using it and go.
Example:
Manual
You can clone from Github, or just copy in the files.
Clone from Github:
You can even paste in a single class; Useful classes have no interdependencies, so if you only want one just take it and use it.
Usage
Composer autoload
If you use Composer then Useful code will autoload automatically. All classes are in the \Useful
namespace.
Example:
Include Useful's autoloader
It's a simple PSR-4 autoloader for the \Useful
namespace.
No namespaces: Legacy loader
Useful supports PHP 5 back to (in theory) 5.0 via its "legacy loading" system.
Note, the test suite requires PHP 7. Author has used parts of Useful on PHP 5.1. Your mileage may vary.
PHP 5.1-compatible SPL autoloader
The legacy autoloader uses a classname prefix (Useful_Foo
) instead of namespace (\Useful\Foo
).
PHP 5.0 loader
PHP 5.0 does not have spl_autoload_register()
. That's ok. The legacy loader can be used to load a class directly without namespace.
Tests
Uses PHPUnit. Test coverage is [2019-04] @TODO very incomplete for some classes.
All versions of useful with dependencies
ext-curl Version *