PHPackages                             wearelaradev/callables - 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. wearelaradev/callables

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

wearelaradev/callables
======================

Callables trait

011PHP

Since Apr 11Pushed 2y agoCompare

[ Source](https://github.com/laradev/callables)[ Packagist](https://packagist.org/packages/wearelaradev/callables)[ RSS](/packages/wearelaradev-callables/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Features
--------

[](#features)

This php package allows any php object to create magic getter, setter and adder functions. This avoids creating a multitude of methods that are not always optimal to read.

Getting started
---------------

[](#getting-started)

```
    composer require wearelaradev/callables
```

Usage
-----

[](#usage)

```
use Laradev\Callables\Callables;

class MyObject
{
    use Callables;

    public string $foo = "foo";
    protected string $bar = "bar";
    private string $toto = "toto";
    private array $arr = [];
}

var_dump((new MyObject())->getBar());
//output: "bar"

$obj = (new MyObject())
    ->setFoo("foo1")
    ->setToto("toto1")
    ->addArr("test")
;

var_dump(["foo" => $obj->getFoo(), "toto" => $obj->getToto(), "arr" => $obj->getArr()]);
// output: ["foo" => "foo1", "toto" => "toto1", "arr" => ["test"]];
```

Additional information
----------------------

[](#additional-information)

If you encounter a bug or have any ideas for improvement, don't hesitate to send me a PR or contact me via email at  :)

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a9c29f3d9dfa6243801e195f0c08ccd97b02cfbf213544c0cd1f8e9516c7284?d=identicon)[wearelaradev](/maintainers/wearelaradev)

---

Top Contributors

[![Stollpy](https://avatars.githubusercontent.com/u/74556273?v=4)](https://github.com/Stollpy "Stollpy (9 commits)")

### Embed Badge

![Health badge](/badges/wearelaradev-callables/health.svg)

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

###  Alternatives

[philippfrenzel/yii2masonry

Yii2 Masonry Integration for Yii2

1316.3k](/packages/philippfrenzel-yii2masonry)

PHPackages © 2026

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