2017 © Pedro PelĂĄez
 

library strict-object

Base object, checking access to undefined properties and methods

image

granam/strict-object

Base object, checking access to undefined properties and methods

  • Saturday, April 21, 2018
  • by jaroslavtyc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15,635 Installations
  • PHP
  • 47 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 20 Versions
  • 9 % Grown

The README.md

Build Status, (*1)

A base object, throwing an exception in case of access to undefined property or method., (*2)

  1. You deserve to know...
  2. Usage
  3. Install

You deserve to know...

Be lazy. Be smart., (*3)

To achieve that, you need to know., (*4)

Know about access to an undefined property, to an undefined method., (*5)

It can be anything, but at first it is a problem., (*6)

And you should be lazy enough to want to know that happened immediately, rather than searching logs after., (*7)

Usage

Just extend the object..., (*8)

use Granam\StrictObject\StrictObject;

class Foo extends StrictObject {

    public $everythingOk = true;
    // body
}

...and your code then immediately stops on mistakes like, (*9)

// test.php
$foo = new Foo();

if (!$foo->everythinkOk) {
    // Did you noticed the typo? Maybe not, but StrictObject will!
}

...which results into PHP Fatal error: Uncaught exception 'ReadingAccess' on line 4 in file test.php Think twice about catching something like that! Remember, you need to know..., (*10)

Install

composer require granam/strict-object

The Versions

21/04 2018

dev-master

9999999-dev https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

read write php permissions access object strict

19/02 2017

3.0.x-dev

3.0.9999999.9999999-dev https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

read write php permissions access object strict

19/02 2017

3.0.1

3.0.1.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

read write php permissions access object strict

18/02 2017

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

read write php permissions access object strict

18/02 2017

2.0.2

2.0.2.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

read write php permissions access object strict

18/02 2017

3.0.0

3.0.0.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

read write php permissions access object strict

15/02 2017

2.0.1

2.0.1.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

read write php permissions access object strict

13/02 2017

2.0.0

2.0.0.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

read write php permissions access object strict

13/02 2017

1.2.4

1.2.4.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

read write php permissions access object strict

30/12 2016

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

read write php permissions access object strict

30/12 2016

1.2.3

1.2.3.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

read write php permissions access object strict

22/01 2016

1.2.2

1.2.2.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

read write php permissions access object strict

16/09 2015

1.2.1

1.2.1.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

read write php permissions access object strict

01/09 2015

1.2.0

1.2.0.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

read write php permissions access object strict

21/05 2015

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

php object strict

21/05 2015

1.1.1

1.1.1.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

php object strict

18/05 2015

1.1.0

1.1.0.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

php object strict

29/03 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

php object strict

29/03 2015

1.0.1

1.0.1.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

php object strict

29/03 2015

1.0.0

1.0.0.0 https://github.com/jaroslavtyc/granam-strict-object

Base object, checking access to undefined properties and methods

  Sources   Download

MIT

The Requires

 

The Development Requires

php object strict