PHPackages                             zeeshanu/yell - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zeeshanu/yell

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zeeshanu/yell
=============

A php package that yells when you try to access a property that doesn't exist in a class!

1.0.0(10y ago)1916MITPHP &gt;=5.3.0

Since Jun 22Compare

[ Source](https://github.com/zeeshanu/yell)[ Packagist](https://packagist.org/packages/zeeshanu/yell)[ Docs](https://github.com/zeeshanu/)[ RSS](/packages/zeeshanu-yell/feed)WikiDiscussions Synced 6d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

📢 Yell
======

[](#loudspeaker-yell)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4498038f74e25766562d2eae00ede2b10f87cb3afac329b664482d88ee894fb2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a65657368616e752f79656c6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zeeshanu/yell/?branch=master)[![Code Climate](https://camo.githubusercontent.com/70a8115092e68da199002249572f79265725db5f26c506d281444087e40c4db0/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3537366162326431383935356233303039303030313962632f6261646765732f31376565356165326332633232363531643666392f6770612e737667)](https://codeclimate.com/repos/576ab2d18955b300900019bc/feed)[![Latest Stable Version](https://camo.githubusercontent.com/f653a8877d3265048f205884650e85baa2d7a4ad337b54aeea8b09bf4b813b30/68747470733a2f2f706f7365722e707567782e6f72672f7a65657368616e752f79656c6c2f762f737461626c652e737667)](https://packagist.org/packages/zeeshanu/yell)[![License](https://camo.githubusercontent.com/1b65edfb078cc7eb97ec51919b380c0e116d49336eddd4b206f97b5da1ebb8e0/68747470733a2f2f706f7365722e707567782e6f72672f7a65657368616e752f79656c6c2f6c6963656e7365)](https://packagist.org/packages/zeeshanu/yell)

PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.

Requirement
-----------

[](#requirement)

PHP &gt;= 5.4.0.

Installation
------------

[](#installation)

You can install the library using the following ways:

Using Composer
--------------

[](#using-composer)

You can install this through [Composer](http://getcomposer.org/), a dependency manager for PHP. Just run the below command:

```
composer require zeeshanu/yell

```

For further details you can find the package at [Packagist](https://packagist.org/packages/zeeshanu/yell).

Manual way
----------

[](#manual-way)

- Copy `src` to your codebase, perhaps to the vendor directory.
- Add the `Zeeshanu\Yell\Scream` class to your autoloader or require the file directly.

Getting Started
---------------

[](#getting-started)

I'm going to create take an example to demonstrate the usage.

For example, you have a `Person` class like below:

```
class Person
{
    public $name;
    public $age;
}

$person = new Person();

$person->name = 'John Doe';
$person->age = 23;

// Will silently set the property `profession` on `Person` without any issue
$person->profession = 'Teacher';
```

Here is how you can make your object strict i.e. not allow any other properties except `$name` and `$age` and throw exceptions for any other properties. Just `use Zeeshanu\Yell\Scream` trait in your class as follows

```
use Zeeshanu\Yell\Scream;

class Person
{
    use Scream;

    public $name;
    public $age;
}

$person = new Person();

$person->name = 'John Doe';
$person->age = 23;

// An exception will be thrown when showing message "Trying to set undefined property $profession in class Person"
$person->profession = 'Teacher';
```

Feedback
--------

[](#feedback)

If you notice that there might be some improvements in code you can create a pull request or report an issue. You can also contact me at [](mailto:ziishaned@gmail.com).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3705d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93f670b66ad848731a36e428e51d2ba2e50f881121257b4ce3e8783344673f09?d=identicon)[zeeshanahmad](/maintainers/zeeshanahmad)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zeeshanu-yell/health.svg)

```
[![Health](https://phpackages.com/badges/zeeshanu-yell/health.svg)](https://phpackages.com/packages/zeeshanu-yell)
```

###  Alternatives

[epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

3824.6M13](/packages/epartment-nova-dependency-container)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
