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.2(1y ago)225.9k—8.3%2[2 issues](https://github.com/lukaskleinschmidt/kirby-types/issues)1MITPHPPHP ^8.0

Since Mar 24Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (4)Versions (18)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

46

—

FairBetter than 93% of packages

Maintenance67

Regular maintenance activity

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

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 ~46 days

Recently: every ~129 days

Total

16

Last Release

460d 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

[cognesy/instructor-php

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

310107.9k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14689.4k1](/packages/distantnative-retour-for-kirby)[arnoson/kirby-vite

Vite helper for Kirby CMS

9759.2k3](/packages/arnoson-kirby-vite)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[xefi/faker-php

Faker allows you to generate realistic fake data for your php applications

15116.5k15](/packages/xefi-faker-php)

PHPackages © 2026

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