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.

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 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.

Build Status codecov

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:

  1. Keep a Changelog 1.0
  2. PSR-2
  3. PSR-11
  4. PSR-16
  5. Semantic Versioning 2.0
  6. SODO Design Pattern 0.1.0

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 Build Version
Package Version
Requires jstewmc/detect-environment Version ^2.0
php Version ^7.2
psr/container Version ^1.0
psr/log Version ^1.1
psr/simple-cache Version ^1.0
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 jstewmc/gravity contains the following files

Loading the files please wait ....