Download the PHP
package osaris-uk/app-settings without Composer
On this page you can find all versions of the php package
osaris-uk/app-settings. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor osaris-uk Package app-settings Short Description Database settings package for Laravel License
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.
This package integrates a simple way to store your Laravel app settings in your database.
After running the migrations, you are ready to start using the package.
If your application does not support auto-discovery you will need to register the service provider in config/app.php:
Model
The model for this package includes the mandatory field key, the value field is nullable. There are also several other optional fields included on this model to aid in creating a user interface, these fields are:
The only fields that are cached for use with the setting() helper are key & value.
Helper
This package includes a helper to access settings anywhere in your app using the defined key for your desired setting:
To update or create a new setting you can pass a value as the second argument:
You can also directly access the class by passing no arguments through. This is useful to access the other methods on the model, for example:
Available Methods
The model watches for the created, updated & deleted events and triggers setting()::clearCache() for each of these.
Requiresphp Version
^7.0|^8.0 doctrine/dbal Version
^2.0|^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 osaris-uk/app-settings contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.