Download the PHP package salehye/settings without Composer

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

Salehye Settings Package

A lightweight, flexible Laravel settings package with InertiaJS & Blade support, multilingual capabilities, and database-driven configuration.

Laravel PHP InertiaJS Blade License Tests

Latest Version on Packagist Total Downloads

โœจ Features

๐Ÿ“ฆ Installation

1. Require the package

2. Publish assets

3. Run migrations

4. Register Middleware (Optional)

Add the middleware to share settings with Inertia automatically:

Laravel 11.x/12.x (bootstrap/app.php):

๐Ÿš€ Usage Methods

Method 1: Helper Functions (Recommended) โญ

Method 2: Facade

Method 3: Magic Methods

Method 4: HasSettings Trait (In Controllers)

Method 5: Dependency Injection

๐ŸŽจ Blade Templates Integration

View Composer (Automatic)

Public settings are automatically shared with all Blade views:

Blade Directives

Blade Component

Publish Component Views

Then customize in resources/views/vendor/settings/components/setting.blade.php

๐Ÿ“Š Database Schema

๐ŸŽฏ Creating Settings

Method 1: Direct Database (Recommended)

Method 2: With Config Definitions

Add to config/settings.php:

๐ŸŒ InertiaJS Integration

Auto-Share Public Settings

After registering ShareSettingsMiddleware, all public settings are automatically shared:

Settings Controller

The package provides a controller for settings management:

Inertia Frontend Example (Vue 3)

๐Ÿ”ง Configuration

Cache Settings

Inertia Settings

๐Ÿง™โ€โ™‚๏ธ Advanced Usage

Type Casting

The package automatically handles type casting based on config definitions:

Custom Repository

Clear Cache

๐Ÿงช Testing

๐Ÿ“ Example: Complete Setup

1. Create Settings Seeder

2. Run Seeder

3. Use in Application

๐Ÿ“ฆ Package Structure

๐Ÿงช Testing

๐Ÿค Contributing

Contributions are welcome! Please see our Contributing Guide for details.

Quick Guide

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Create a Pull Request

Requirements

๐Ÿ“„ License

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

๐Ÿš€ Roadmap

๐Ÿ™ Support

If you find this package helpful, please consider giving it a โญ๏ธ on GitHub!

Support the Development


Built with โค๏ธ for the Laravel Community

๐Ÿ“ž Contact

๐Ÿ”— Links


All versions of settings with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
laravel/framework Version ^12.0
inertiajs/inertia-laravel Version ^2.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 salehye/settings contains the following files

Loading the files please wait ...