PHPackages                             lukaskleinschmidt/kirby-types - 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. lukaskleinschmidt/kirby-types

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

lukaskleinschmidt/kirby-types
=============================

Kirby Types

2.0.3(3mo ago)238.0k—4.4%2[2 issues](https://github.com/lukaskleinschmidt/kirby-types/issues)1MITPHPPHP ^8.0

Since Mar 24Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/lukaskleinschmidt/kirby-types)[ Packagist](https://packagist.org/packages/lukaskleinschmidt/kirby-types)[ RSS](/packages/lukaskleinschmidt-kirby-types/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (19)Used By (1)

Kirby Types
===========

[](#kirby-types)

Additional and extended type hints for your IDE.
Adds the `kirby types:create` command to your project.
This command will create a file in your projects root directory that your IDE will pick.

> **Note**Make sure you have the [`getkirby/cli`](https://github.com/getkirby/cli) installed to use the command

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

[](#installation)

TypesK3K41.1.2✔️❌2.0.1❌✔️Require this package with composer using the following command.

```
composer require --dev lukaskleinschmidt/kirby-types:^1.1

```

Usage
-----

[](#usage)

Simply run `kirby types:create` to create the type hints file.

### Command Options

[](#command-options)

You can set the `filename`, `force` and `include` option when running the command.

```
kirby types:create --filename my-ide-helper --force --include
```

Options
-------

[](#options)

You can use the following options in your `config.php`.
These are the plugin's default options.

```
return [
    'lukaskleinschmidt.types' => [
        'aliases'    => [],
        'decorators' => [],
        'filename'   => 'types.php',
        'force'      => false,
        'include'    => [
            'aliases',
            'blueprints',
            'decorators',
            'methods',
        ],
    ],
];
```

### Aliases

[](#aliases)

You can add your own aliases you want to include.

```
return [
    'lukaskleinschmidt.types' => [
        'aliases' => [
            'MyClass' => \LukasKleinschmidt\MyClass::class,
        ],
    ],
];
```

### Decorators

[](#decorators)

You can modify methods and their DocBlock to improve IDE type hints.
The plugin has some [default decorators](https://github.com/lukaskleinschmidt/kirby-types/blob/main/config.php) already defined.

```
use LukasKleinschmidt\Types\Method;
use Kirby\Cms\Layout;

return [
    'lukaskleinschmidt.types' => [
        'decorators' => [
            Layout::class => [
                'columns' => [
                    '@return \Kirby\Cms\LayoutColumns|\Kirby\Cms\LayoutColumn[]',
                ],
            ],
        ],
    ],
];
```

License
-------

[](#license)

MIT

Credits
-------

[](#credits)

- [Lukas Kleinschmidt](https://github.com/lukaskleinschmidt)

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance80

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

Every ~69 days

Recently: every ~232 days

Total

17

Last Release

96d ago

Major Versions

1.1.1 → 2.0.02023-09-13

v1.x-dev → 2.0.22025-02-12

### Community

Maintainers

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

---

Top Contributors

[![lukaskleinschmidt](https://avatars.githubusercontent.com/u/10027897?v=4)](https://github.com/lukaskleinschmidt "lukaskleinschmidt (36 commits)")[![tobimori](https://avatars.githubusercontent.com/u/29142128?v=4)](https://github.com/tobimori "tobimori (3 commits)")

### Embed Badge

![Health badge](/badges/lukaskleinschmidt-kirby-types/health.svg)

```
[![Health](https://phpackages.com/badges/lukaskleinschmidt-kirby-types/health.svg)](https://phpackages.com/packages/lukaskleinschmidt-kirby-types)
```

###  Alternatives

[craftcms/cms

Craft CMS

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

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M88](/packages/mcp-sdk)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12525.9M148](/packages/phpdocumentor-reflection)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.4M289](/packages/symfony-ai-platform)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318123.0k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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