Download the PHP package flavorly/hybridly-share without Composer
On this page you can find all versions of the php package flavorly/hybridly-share. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flavorly/hybridly-share
More information about flavorly/hybridly-share
Files in flavorly/hybridly-share
Package hybridly-share
Short Description A Quick way to flash & share Hybridly Variables from anywhere, persisting on session & processes.
License MIT
Homepage https://github.com/flavorly/hybridly-share
Informations about the package hybridly-share
Hybridly Share ⚡
A Quick way to flash & share variables to Hybridly that persist on session or cache & across requests different requests.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
You can use the Hybridly Share helper anywhere from your code and share your variables directly to Hybridly. Keep in the mind that the values will only be kept on the current or next request lifecycle, they will be flushed once shared to Hybridly. You may also use closures that under-the-hood will be converted to Laravel Closure Serializer ( Previously Opis )
Why Hybridly Share?
This package is intended to be used with the Hybridly framework. Hybridly provides a nice way to share variables, but sometimes you might want the data to persist on the session or cache.
Few use cases :
- Sharing data before a redirect ( Ex: back()->with('foo','bar') can be replicated with back()->hybridly('foo','bar') )
- Sharing data from a request that will end up on a redirect or a new lifecycle.
- Sharing data from a service directly
- Sharing data from any point of your code before serving a request/page
- Sharing data from a command/job to a specific user
- Avoiding Hybridly Middleware pollution with sharing session variables back and forth.
- etc..
If you are looking for real-time sharing this package might not be your best choice, and would recommend using Laravel Echo paired together with Pusher or Soketi.
Testing
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- jon
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of hybridly-share with dependencies
laravel/framework Version ^10.0
hybridly/laravel Version ^v0.6.1
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0