PHPackages                             aviator/makeable - 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. aviator/makeable

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

aviator/makeable
================

Static constructor trait and interface.

0.1.0(8y ago)34.3k5MITPHPPHP &gt;=7.0.0

Since Nov 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/danielsdeboer/makeable)[ Packagist](https://packagist.org/packages/aviator/makeable)[ Docs](https://github.com/danielsdeboer/makeable)[ RSS](/packages/aviator-makeable/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (5)

[![Build Status](https://camo.githubusercontent.com/a40f6be8c442b9f98e686174012fea036b5f6c8b4fe3f554d5fac967eb8073be/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c736465626f65722f6d616b6561626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/danielsdeboer/makeable)[![Latest Stable Version](https://camo.githubusercontent.com/1d8d1e7e3102294abd37bf0f53c0a108ef76e0c1675f6ca59c315580cdaf4e45/68747470733a2f2f706f7365722e707567782e6f72672f61766961746f722f6d616b6561626c652f762f737461626c65)](https://packagist.org/packages/aviator/makeable)[![License](https://camo.githubusercontent.com/e4288ead380d286ce0831d77ed9c6a87722248c0136b605cff4ce0f652d863fd/68747470733a2f2f706f7365722e707567782e6f72672f61766961746f722f6d616b6561626c652f6c6963656e7365)](https://packagist.org/packages/aviator/makeable)

Overview
--------

[](#overview)

This package provides a static constructor interface, and a trait that implements the interface.

### Installation

[](#installation)

Via Composer:

```
composer require aviator/makeable

```

### Testing

[](#testing)

Via Composer:

```
composer test

```

### Usage

[](#usage)

Use the trait:

```
class Something
{
    use MakeableTrait;
}
```

Then the class can be instantiated using `Class::make(...$args)`:

```
$instance = Something::make($arg1, $arg2);
```

The interface is optional, though it can be useful in composite interfaces to specify that a static constructor should be present:

```
interface SomeInterface extends Makeable, SomeOtherInterface
{
    /* ... etc */
}
```

Since the static constructor simply returns `new static(...$args)`, it can be used in abstract classes and parent classes without having to re-use it on child classes:

```
abstract class Seuss
{
    use MakeableTrait;
}

class ThingOne extends Seuss {};
class ThingTwo extends ThingOne {};

// Get an instance of ThingOne
$instance = ThingOne::make();

// Get an instance of ThingTwo
$instance = ThingTwo::make();
```

Other
-----

[](#other)

### License

[](#license)

This package is licensed with the [MIT License (MIT)](LICENSE).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebd3fe214b5768e700ae43c7fdc4b83d249972a6a97a0faef372d0ec19256eca?d=identicon)[danielsdeboer](/maintainers/danielsdeboer)

---

Top Contributors

[![danielsdeboer](https://avatars.githubusercontent.com/u/13170241?v=4)](https://github.com/danielsdeboer "danielsdeboer (3 commits)")

---

Tags

constructorphpphp7staticphpconstructorstaticPHP7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aviator-makeable/health.svg)

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

PHPackages © 2026

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