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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

PHP Build Version
Package Version
Requires php Version ^5.4 || ^7.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package morvren-achronos/useful contains the following files

Loading the files please wait ....