Download the PHP package ahmedash95/laravel-settings without Composer

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

Persistent Settings for Laravel 5

Build Status


Persistent settings package for Laravel 5.



Installation

Registering to use it with laravel

Add following lines to

ServiceProvider array

Alias array

Publishing config file

If you want to edit default config file, just publish it to your app folder.

php artisan vendor:publish --provider="Krucas\Settings\Providers\SettingsServiceProvider" --tag="config"

Usage

Configuration

Package comes with several configuration options.

Setting Description
Setting repository driver.
Enable or disable setting cache.
Enable or disable setting value encryption.
Enable or disable event firing.
Config of all repositories which can be used.
Key generator class.
Context serializer class.
Value serializer class.
Allows you to override values in Laravel config array.

Creating table for database driver

To use database driver you have to create table in your database. Package provides default table migration, to create it you need to execute artisan command:

Methods

Set value

Set setting value.

Get value

Get setting value, default value is returned when no value found.

Check value

Determine if setting exists.

Forget value

Forget setting value from repository.

Set context

Setting values may be used in certain context. Context can be set using method .

Context is reset after call of one these methods , , , . Example how to use settings for different contexts.

Helpers

Settings service instance

Resolve settings service instance.

Set value

Set setting value.

Set setting value for a context.

Get value

Get setting value, default value is returned when no value found.

Getting value for a context.

Events

Events gets fired if this is not disabled via config (enabled by default).

settings.checking: $key

Fired before checking if value is present in repository.

Parameter Type Parameter description
$key string Setting key.
$context null or Context Setting context.

settings.has: $key

Fired after checking if value is present in repository.

Parameter Type Parameter description
$key string Setting key.
$status bool If setting exists is passed, otherwise
$context null or Context Setting context.

settings.getting: $key

Fired before retrieving value from repository.

Parameter Type Parameter description
$key string Setting key.
$default mixed Default setting value.
$context null or Context Setting context.

settings.get: $key

Fired after retrieving value from repository.

Parameter Type Parameter description
$key string Setting key.
$value mixed Retrieved setting value.
$default mixed Default setting value.
$context null or Context Setting context.

settings.setting: $key

Fired before setting value to repository.

Parameter Type Parameter description
$key string Setting key.
$value mixed Setting value to be set.
$context null or Context Setting context.

settings.set: $key

Fired after setting value to repository.

Parameter Type Parameter description
$key string Setting key.
$value mixed Setting value to be set.
$context null or Context Setting context.

settings.forgetting: $key

Fired before forgetting value.

Parameter Type Parameter description
$key string Setting key.
$context null or Context Setting context.

settings.forget: $key

Fired after forgetting value.

Parameter Type Parameter description
$key string Setting key.
$context null or Context Setting context.

All versions of laravel-settings with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5|^7.0
illuminate/support Version ~5.1.0|~5.2.0|~5.3.0
illuminate/console Version ~5.1.0|~5.2.0|~5.3.0
illuminate/database Version ~5.1.0|~5.2.0|~5.3.0
illuminate/filesystem Version ~5.1.0|~5.2.0|~5.3.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 ahmedash95/laravel-settings contains the following files

Loading the files please wait ....