Download the PHP package rezahmady/setting-operation without Composer

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

SettingOperation

Backpack Setting Operation to save customize settings for each CRUD. Uses Backpackforlaravel. Works on Laravel 5.2 to Laravel 10.

Backpackforlaravel is cool admin panel for laravel.

Many times it is necessary to make settings for some CRUDs, for example, for the transactions CRUD, you need bank port settings, or for product management, you need settings related to transportation, taxes, etc.

You can even make many of your backpack settings dynamic with this add-on.

Installation

Via Composer

publish vendor :

migrate add-on table :

Why do you need this add-on ?

If you, like me, believe that each CRUD can be a separate module, then having the settings for each crud (module) is important.

The backpack has a settings add-on that I don't think is practical at all.Funny, you have to save the fields as json in the database. But in this add-on, like other operations such as CreateOperation and UpdateOperation, easily use the all backpack fields.

Usage

Step 1. In your CrudController, use the operation trait:

<?php

namespace App\Http\Controllers\Admin;

use Backpack\CRUD\app\Http\Controllers\CrudController;

class ProductCrudController extends CrudController
{
    use \Rezahmady\SettingOperation\SettingOperation;

Step 2. In your CrudController, add setupSettingOperation method and add your custom backpack fields:

    /**
    * Define what happens when the Setting operation is loaded.
    * 
    * @see https://github.com/rezahmady/setting-operation
    * @return void
    */
    protected function setupSettingOperation()
    {
        // backpack fields
    }

Step 3. To call the value of each field, you must use the Setting facade:

use Rezahmady\SettingOperation\Setting;

Setting::get(CRUD_TABLE_NAME.FIELD_NAME, DEFAULT);

fast update field To update or set new field you can use this:

use Rezahmady\SettingOperation\Setting;

Setting::set(CRUD_TABLE_NAME.FIELD_NAME, VALUE);

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.


All versions of setting-operation with dependencies

PHP Build Version
Package Version
Requires backpack/crud Version ^5.0|^6.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 rezahmady/setting-operation contains the following files

Loading the files please wait ....