Download the PHP package jstewmc/gravity without Composer
On this page you can find all versions of the php package jstewmc/gravity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package gravity
Gravity
Gravity lets other developers define settings and services in your dependency injection container using files in their packages. By pulling everything together, Gravity makes it easy to build and share small, configurable services.
Usage
As a package author, you'll define services and settings in your repository using the set()
method:
As a package consumer, you'll request services and settings in your project using the get()
method:
Gravity works entirely within your local filesystem. When you call the pull()
method, Gravity will find the current project's root directory; search it, as well as your vendor
directory, for Gravity files; load each file's service and setting definitions into the manager; and, return the manager to you. That's it!
Documentation
Gravity's documentation is available online or in the docs
directory.
We strive to maintain great documentation. If you see a mistake or have a suggestion, feel free to fork and fix it!
Installation
Gravity requires PHP 7.2+.
Gravity is multi-platform, and we strive to make it run equally well on Windows, Linux, and OSX.
Gravity must be installed via Composer. To do so, add the following line to the require
section of your composer.json
file (where x
is the latest major version), and run composer update
:
Examples
You can run most examples in the documentation by cloning the repository to your computer, navigating to it on your filesystem, and using the PHP command line.
Most examples use assert()
statements, and will output nothing when successful, unless stated otherwise.
Compliance
This library strives to adhere to the following standards:
If you spot an error, please let us know!
License
This library is licensed under the MIT license.
Credits
This library was originally developed by Harry Wallin.
We hope you enjoy it!
All versions of gravity with dependencies
php Version ^7.2
psr/container Version ^1.0
psr/log Version ^1.1
psr/simple-cache Version ^1.0