Download the PHP
package johnpbloch/decisions without Composer
On this page you can find all versions of the php package
johnpbloch/decisions. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor johnpbloch Package decisions Short Description Not Options License
MIT
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.
Define values in a JSON file and they will override corresponding option values from the database. ALWAYS.
Requirements
PHP 5.3
Sorry
Not sorry.
Usage
You REALLY should use this as a must-use plugin, but that would require some know-how and extra setup. If you don't know how MU plugins work or how to get this set up as one, maybe you don't really need this plugin? Or you might want to better understand why you need it?
By default, this will look for a configuration file in ABSPATH . '.decisions.json'. You can change this location in your config file thusly:
Any options you want to be set by default go into the standard hash:
In a multisite network, you can add or override standard options with a site specific hash. The site options should be keyed by site domain + site path with slashes and protocol trimmed (so http://example.com/subsite/ becomes example.com/subsite). Site-specific options go under the sites key:
In multisite you can also add network-wide options using the network hash:
JSON gets decoded as associative arrays rather than objects. If you need an object, you can serialize the data and store the serialized string directly. All values get passed through maybe_unserialize before use.
Qs I Think Will Be FA'ed
JSON? Y U NO USE YAML/RAML/XML/LOLSPEAK?
PHP has core JSON decoding. Ain't nobody got time for userland libraries.
What about options fetched before this plugin runs?
I can't really help you there. That falls well outside the 80/20 rule. Maybe set the DB value directly and then short-circuit any attempt to update that key?
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 johnpbloch/decisions contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.