Download the PHP package sukohi/warp without Composer
On this page you can find all versions of the php package sukohi/warp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor sukohi
Package warp
Short Description A PHP package mainly developed for Laravel to remember URLs to redirect through session.
License MIT
Package warp
Short Description A PHP package mainly developed for Laravel to remember URLs to redirect through session.
License MIT
Please rate this library. Is it a good library?
Informations about the package warp
Warp
A PHP package mainly developed for Laravel to remember URLs to redirect through session.
(This is for Laravel 5+. For Laravel 4.2)
Installation
Add this package name in composer.json
"require": {
"sukohi/Warp": "2.*"
}
Execute composer command.
composer update
Register the service provider in app.php
'providers' => [
...Others...,
Sukohi\Warp\WarpServiceProvider::class,
]
Also alias
'aliases' => [
...Others...,
'Warp' => Sukohi\Warp\Facades\Warp::class
]
Usage
\Warp::set('my_place');
\Warp::set('my_place', $current_url = ''); // or You can set URL you want to keep.
// After moving some pages
$url = \Warp::get('my_place');
$url = \Warp::get('my_place', $alternative_url = 'http://example.com'); // You also can set alternative(default) URL.
$url = \Warp::get('my_place', $alternative_url, $forget_flag = true); // If $forget_flag is false, URL you set will not be removed.
with Route name
Warp::set('your.route.name'); // the argument is optional. If in the case, route name automatically will be set.
// After moving some pages
$url = Warp::route('your.route.name');
License
This package is licensed under the MIT License.
Copyright 2015 Sukohi Kuhoh
All versions of warp with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
~5.0
The package sukohi/warp contains the following files
Loading the files please wait ....