Download the PHP package roboroads/lighthouse-settings without Composer

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

Lighthouse plugin for spatie/laravel-settings

A nice way to make Lighthouse receive and update typed settings from the laravel-settings plugin.

Install

After installing you might want to re-generate the ide-helper files:

Usage

First, create your settings as normal. Let's say we have the following settings file

Querying settings

Use @settings to tell Lighthouse to get settings using the same name as the type:

Note: if your type does not match the pattern App\Settings\TypeName (in this case App\Settings\GeneralSettings) you can use @settings(class: "\\Path\\To\\YourSettings").

Mutating settings

Use @settings to tell Lighthouse to update settings using the same name as the type:

Note: Except for @can, you can use @rules, @trim, etc. like you can when updating models.

Using @canSettings instead of @can

Since Lighthouse really wants to connect @can to an actual Model, you have to use @canSettings to use the ability to authorize the user for settings.

Optional configuration

If you want to tweak this plugin you can publish config/laravel-settings.php with:

settings-namespace

Change the default namespace this package looks in when searching for settings.


All versions of lighthouse-settings with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
nuwave/lighthouse Version >=5
spatie/laravel-settings Version >=2
illuminate/support Version >=8
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 roboroads/lighthouse-settings contains the following files

Loading the files please wait ...