All Projects → karriereat → state

karriereat / state

Licence: other
Store a certain application state in the session or cache.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to state

sign-in-with-apple-js-node-example
Sign in with Apple using Apple JS and REST API
Stars: ✭ 48 (+182.35%)
Mutual labels:  login
atomic-state
A decentralized state management library for React
Stars: ✭ 54 (+217.65%)
Mutual labels:  state
StateMachine system for Godot
Flexible and lightweight StateMachine for Godot
Stars: ✭ 19 (+11.76%)
Mutual labels:  state
CockyGrabber
C# library for the collection of browser information such as cookies, logins, and more
Stars: ✭ 46 (+170.59%)
Mutual labels:  login
fastlogin
ssh快速登录工具
Stars: ✭ 45 (+164.71%)
Mutual labels:  login
laravel-magiclink
Create link for authenticate in Laravel without password or get private content
Stars: ✭ 135 (+694.12%)
Mutual labels:  login
Meteor-Remember-Me
Meteor accounts extension with remember me functionality
Stars: ✭ 13 (-23.53%)
Mutual labels:  login
SimpleStateMachineLibrary
📚 A simple library for realization state machines in C# code
Stars: ✭ 30 (+76.47%)
Mutual labels:  state
single-spa-login-example-with-npm-packages
⚡ Single-spa application example which imports registered applications from NPM packages 📦 and manages authentication features as login 🔐
Stars: ✭ 98 (+476.47%)
Mutual labels:  login
flutter dribble signup challenge
A dribble login UI challenge in Flutter
Stars: ✭ 43 (+152.94%)
Mutual labels:  login
auth-flow-react-apollo-saga
Full stack login/register flow with React, Apollo, Redux, Redux-saga and MongoDB.
Stars: ✭ 22 (+29.41%)
Mutual labels:  login
captive-login
Captive-portal login utility for headless environments written in pure bash.
Stars: ✭ 23 (+35.29%)
Mutual labels:  login
windows-Credential-Provider-library
This repository will be updated with all the examples and links that I can find with relevant knowledge & information about CP in MS Windows vista up to version 10.
Stars: ✭ 122 (+617.65%)
Mutual labels:  login
react-wisteria
Managing the State with the Golden Path
Stars: ✭ 18 (+5.88%)
Mutual labels:  state
Nanny-State
simple state management
Stars: ✭ 68 (+300%)
Mutual labels:  state
graph-crdt
Commutative graphs made for real-time, offline-tolerant replication
Stars: ✭ 47 (+176.47%)
Mutual labels:  state
palladium
User authentication and registration component
Stars: ✭ 40 (+135.29%)
Mutual labels:  login
instagramauth
An Android library that makes it easy to authenticate your app users with Instagram.
Stars: ✭ 24 (+41.18%)
Mutual labels:  login
node-facebook-twitter-google-github-login
Node, Express, Mongoose, Passport, Facebook, Twitter, Google and Github Authentication (Login)
Stars: ✭ 31 (+82.35%)
Mutual labels:  login
user login and register
user login and register system in django
Stars: ✭ 43 (+152.94%)
Mutual labels:  login

    Packagist Downloads

State package for Laravel

This laravel package allows to store a certain application state in either the session or inside a cache.

Installation

Run composer require karriere/state to install this package.

Usage

To enable the package you need to reference the StoreServiceProvider class inside your config/app.php file in the providers section:

'providers' => [
    ...
    Karriere\State\StateServiceProvider::class,
    ...
];

To store the application state you create a state object and store it:

$state = $stateFactory->build('state-name', ['key' => 'value']);
$store->put($state);

// pass on $state->identifier()

In a later situation where you have the state identifier you can access the states data by:

$state = $store->get($identifier);

if(!$state->isEmpty()) {
  // use either $state->collection() or $state->raw() to access the state data
}

Configuration

To install the configuration file you simply use:

php artisan vendor:publish

Options

  • storage: session|cache
  • storage-prefix: prefix that is added to the store identifier
  • expires-after: defines the expires after time in seconds, only used for CacheStore

License

Apache License 2.0 Please see LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].