PHPackages                             davtk/nette-schema-reflection - 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. davtk/nette-schema-reflection

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

davtk/nette-schema-reflection
=============================

Tuned Nette Schema

02PHP

Since Feb 5Pushed 3y agoCompare

[ Source](https://github.com/davtk/nette-schema-reflection)[ Packagist](https://packagist.org/packages/davtk/nette-schema-reflection)[ RSS](/packages/davtk-nette-schema-reflection/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Original Nette schema:

Additional functionality:
-------------------------

[](#additional-functionality)

### Instantiate object via Reflection

[](#instantiate-object-via-reflection)

Let's imagine following class:

```
class Foo
{
    public function __construct(
        public int $a,
        public int $b,
    ) {
    }
}
```

Casting to this class will result in ArgumentCountError because Schema is instantiating the class using new keyword.

I solved this with adding second argument to `castTo: castTo(string $type, bool $usingReflection = false): self` - default behavior is not changed, so it's not causing BC break.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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://avatars.githubusercontent.com/u/11147846?v=4)[Daniel Vítek](/maintainers/vitek-dev)[@vitek-dev](https://github.com/vitek-dev)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (70 commits)")[![integer](https://avatars.githubusercontent.com/u/160891?v=4)](https://github.com/integer "integer (3 commits)")[![greeny](https://avatars.githubusercontent.com/u/3734204?v=4)](https://github.com/greeny "greeny (2 commits)")[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (2 commits)")[![josefsabl](https://avatars.githubusercontent.com/u/1252386?v=4)](https://github.com/josefsabl "josefsabl (1 commits)")[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (1 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (1 commits)")

### Embed Badge

![Health badge](/badges/davtk-nette-schema-reflection/health.svg)

```
[![Health](https://phpackages.com/badges/davtk-nette-schema-reflection/health.svg)](https://phpackages.com/packages/davtk-nette-schema-reflection)
```

###  Alternatives

[deved/magento2-disable-customer-registration

Disable Customer Registration

50136.3k](/packages/deved-magento2-disable-customer-registration)[globalis/robo-task

Robo task common collection

1225.7k2](/packages/globalis-robo-task)

PHPackages © 2026

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