Download the PHP package jameslevi/silhouette without Composer

On this page you can find all versions of the php package jameslevi/silhouette. 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 silhouette

Silhouette

Is a simple configuration management library that supports multiple configuration file formats.

Features

  1. Supports php array and json format.
  2. Facade implementation to beautifully access your configuration data.
  3. Easy integration with other frameworks or even without framework at all.

Installation

  1. You can install via composer.

  2. Include the autoloader at the upper part of your code.

Getting Started

  1. Import the config class into your project.

  2. Create a new config file in php or json. But for this example let's try a php file that returns an array.

  3. Instantiate a new config object.

  4. You can now get data using "get" method.

You can also get data using object keys.

  1. You can also set add new value into your config.

  2. You can edit config data using "set" method.

You can also set data using object keys.

  1. You can check if keyword exists using "has" method.

  2. You can remove a configuration data using "remove" method.

  3. You can return your configuration data in array.

  4. You can also return json format of your configuration data.

Config Injection

You can also make a config object without loading a config file.

Facade

  1. Create a class that extends silhouette facade class then override the parent constructor by passing the config path.

  2. You can now get each configurations by calling it's static methods.

You must call properties that are in snake case to camel case.

  1. You can edit configuration value by providing the first argument of the method called.

  2. You can add, edit or delete configuration data using config "context".

Muted Configuration Object

Configuration objects that only returns data.

You can also mute config object in facade.

Contribution

For issues, concerns and suggestions, you can email James Crisostomo via [email protected].

License

This package is an open-sourced software licensed under MIT License.


All versions of silhouette with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
jameslevi/objectify Version ^1.0
jameslevi/string 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 jameslevi/silhouette contains the following files

Loading the files please wait ....