2017 © Pedro Peláez
 

library warp

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

image

sukohi/warp

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  • Monday, April 18, 2016
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Warp

A PHP package mainly developed for Laravel to remember URLs to redirect through session.
(This is for Laravel 5+. For Laravel 4.2), (*1)

Installation

Add this package name in composer.json, (*2)

"require": {
  "sukohi/Warp": "2.*"
}

Execute composer command., (*3)

composer update

Register the service provider in app.php, (*4)

'providers' => [
    ...Others...,  
    Sukohi\Warp\WarpServiceProvider::class,
]

Also alias, (*5)

'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., (*6)

Copyright 2015 Sukohi Kuhoh, (*7)

The Versions

18/04 2016

dev-master

9999999-dev

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

18/04 2016

2.0.x-dev

2.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

18/04 2016

2.0.3

2.0.3.0

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

18/04 2016

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

18/04 2016

1.0.3

1.0.3.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

02/10 2015

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

02/10 2015

2.0.2

2.0.2.0

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

25/09 2015

2.0.1

2.0.1.0

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

11/08 2015

2.0.0

2.0.0.0

A PHP package mainly developed for Laravel to remember URLs to redirect through session.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

08/06 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi