PHPackages                             spatie/php-type-graph - 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. spatie/php-type-graph

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

spatie/php-type-graph
=====================

Build a graph off all the types within your project

0.0.4(2y ago)91494MITPHPPHP ^8.1

Since Sep 2Pushed 2y ago2 watchersCompare

[ Source](https://github.com/spatie/php-type-graph)[ Packagist](https://packagist.org/packages/spatie/php-type-graph)[ Docs](https://github.com/spatie/php-type-graph)[ GitHub Sponsors](https://github.com/spatie)[ RSS](/packages/spatie-php-type-graph/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (8)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

Build a graph off all the types within your project
===================================================

[](#build-a-graph-off-all-the-types-within-your-project)

**This project is a work in progress, everything is probably going to change**

[![Latest Version on Packagist](https://camo.githubusercontent.com/aeb5d3416bfad2716fb3b5b04542364814c739091124e8967b47f15be17f9db5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f7068702d747970652d67726170682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/php-type-graph)[![Tests](https://github.com/spatie/php-type-graph/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/spatie/php-type-graph/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/0fbe19eafef64ca0e5d64bc2d4f094dce54c6ea7732a8b5533c6fdcb3696bdae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f7068702d747970652d67726170682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/php-type-graph)

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/de3a0d915323572107dfd3fd19fd5f3e93597155090aa8d751785344ddded7de/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7068702d747970652d67726170682e6a70673f743d31)](https://spatie.be/github-ad-click/php-type-graph)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/php-type-graph
```

Usage
-----

[](#usage)

```
$skeleton = new Spatie\PhpTypeGraph();
echo $skeleton->echoPhrase('Hello, Spatie!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Ruben Van Assche](https://github.com/rubenvanassche)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~177 days

Total

4

Last Release

867d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![rubenvanassche](https://avatars.githubusercontent.com/u/619804?v=4)](https://github.com/rubenvanassche "rubenvanassche (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![arnebr](https://avatars.githubusercontent.com/u/1068416?v=4)](https://github.com/arnebr "arnebr (2 commits)")

---

Tags

spatiephp-type-graph

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/spatie-php-type-graph/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-php-type-graph/health.svg)](https://phpackages.com/packages/spatie-php-type-graph)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/support

The Illuminate Support package.

630113.0M41.1k](/packages/illuminate-support)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.4M283](/packages/symfony-ai-platform)[spatie/typescript-transformer

This is my package typescript-transformer

3957.8M26](/packages/spatie-typescript-transformer)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[illuminate/config

The Illuminate Config package.

10944.5M2.5k](/packages/illuminate-config)

PHPackages © 2026

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