Download the PHP package spatie/valuestore without Composer
On this page you can find all versions of the php package spatie/valuestore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/valuestore
More information about spatie/valuestore
Files in spatie/valuestore
Package valuestore
Short Description Easily store some values
License MIT
Homepage https://github.com/spatie/valuestore
Informations about the package valuestore
Easily store some loose values
This package makes it easy to store and retrieve some loose values. Stored values are saved as a json file.
It can be used like this:
Read the usage section of this readme to learn about the other methods.
In this post on Laravel News, Tim MacDonald shares how you can use this package to power a settings
function.
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
Usage
To create a Valuestore use the make
method.
You can also pass some values as a second argument. These will be added to the valuestore using the put
method.
All values will be saved as json in the given file.
When there are no values stored, the file will be deleted.
You can call the following methods on the Valuestore
put
get
has
all
allStartingWith
forget
flush
flushStartingWith
pull
increment
decrement
push
prepend
count
Changelog
Please see CHANGELOG for more information about what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Postcardware
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.
We publish all received postcards on our company website.
Credits
- Freek Van der Herten
- Jolita Grazyte
- All Contributors
License
The MIT License (MIT). Please see License File for more information.