Download the PHP package prepr/laravel-settings without Composer

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

Laravel Settings

Latest Version on Packagist Total Downloads

A Laravel package that provides laravel applications settings module which needed in every application.

Supports laravel >= 5.2

Installation

1) composer

Add the following to your composer file.

"prepr/laravel-settings": "3.0"

or run the following command:

2) config/app.php [no need for this step in laravel 5.5 because of packages auto discovery feature]

add your new provider to the providers array:

and add Setting class to the aliases array:

3) publish

run the following command:

config/settings.php and resources/vendor/settings will be added to your laravel project.

4) migration

you can set table name in config/settings.php

the default table name is settings. then run the migration command

settings table will be migrated to your Database.

Package Options

after publishing the package new config file added config/settings.php update values as your business requirement:

How to use

the default route for settings is

your-domain/settings

it will shows a list of all settings you have and you can manage your settings from there.

in the code to get a setting value use the facade like that

Validate if the key exist:

for example:

also you can use astrisk to get group of settings. for example:

will return an array of all settings with keys started with MAIL such as:

in case of file type a full path will return:

such as:

uploads/settings/site_logo.png

===================================


All versions of laravel-settings with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
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 prepr/laravel-settings contains the following files

Loading the files please wait ....