2017 © Pedro Peláez
 

library memento

image

sukohi/memento

  • Wednesday, August 19, 2015
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Memento

A PHP package mainly developed for Laravel to check result using boolean value.
(This is for Laravel 5+. For Laravel 4.2), (*1)

Installation

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

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

Execute composer command., (*3)

composer update

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

'providers' => array(  
    ...Others...,  
    Sukohi\Memento\MementoServiceProvider::class,
)

Also alias, (*5)

'aliases' => array(  
    ...Others...,  
    'Memento'   => Sukohi\Memento\Facades\Memento::class
)

Usage

$boolean = true;
$memento = \Memento::set($boolean)
            ->set(function(){

                return \Item::where('id', 1)->exists();

            });

if($memento->allTrue()) {

    echo 'All True';

}

if($memento->allFalse()) {

    echo 'All False';

}

if($memento->hasTrue()) {

    echo 'Has True';

}

if($memento->hasFalse()) {

    echo 'Has False';

}

License

This package is licensed under the MIT License., (*6)

Copyright 2015 Sukohi Kuhoh, (*7)

The Versions

19/08 2015

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

05/08 2015

2.0.x-dev

2.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to check result using boolean value.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

05/08 2015

2.0.2

2.0.2.0

A PHP package mainly developed for Laravel to check result using boolean value.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

05/08 2015

dev-master

9999999-dev

A PHP package mainly developed for Laravel to check result using boolean value.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar Sukohi

05/08 2015

2.0.1

2.0.1.0

A PHP package mainly developed for Laravel to check result using boolean value.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar Sukohi

05/08 2015

2.0.0

2.0.0.0

A PHP package mainly developed for Laravel to check result using boolean value.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

04/08 2015

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

04/08 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi