jbboehr/yumemi-apocrypha

Curated PHPStan unit annotations for third-party PHP packages.

Maintainers

Package info

github.com/jbboehr/yumemi-apocrypha.php

Type:phpstan-extension

pkg:composer/jbboehr/yumemi-apocrypha

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

dev-master 2026-08-10 09:28 UTC

This package is auto-updated.

Last update: 2026-08-11 02:30:45 UTC


README

Yumemi

Yumemi Apocrypha

Build Built with Nix License: AGPL-3.0-only WITH romic-exception AI burn

Curated PHPStan unit annotations for third-party PHP packages, built on Yumemi.

The package is under active development and has no tagged release. It currently covers selected unit-bearing APIs in:

Composer package Supported versions
nesbot/carbon 2.62.1+ in 2.x; 3.x
james-heinrich/getid3 1.9.22+ in 1.x; 2.0.0-beta6+ in 2.x
guzzlehttp/guzzle 7, 8
illuminate/cache 11, 12, 13
illuminate/cookie 11, 12, 13
illuminate/filesystem 11, 12, 13
illuminate/http 11, 12, 13
illuminate/process 11, 12, 13
illuminate/queue 11, 12, 13
illuminate/support 11, 12, 13
laravel/framework 11, 12, 13
mjaschen/phpgeo 4, 5, 6
symfony/http-foundation 6.4+ in 6.x; 7.x; 8.x
symfony/stopwatch 6, 7, 8

laravel/framework supplies the listed Illuminate packages through Composer replacements. Configuration continues to use the precise illuminate/* integration names; applications do not need to install those components separately.

composer require --dev jbboehr/yumemi:dev-master jbboehr/yumemi-apocrypha:dev-master \
    phpstan/extension-installer

Select an integration in phpstan.neon:

parameters:
    yumemiApocrypha:
        integrations:
            - illuminate/cache
<?php

use Illuminate\Contracts\Cache\Store;

use function jbboehr\Yumemi\unit;

function cacheReportForOneMinute(Store $cache): void
{
    //! Store::put() expects unit_int<'second'>, 1&unit_int<'minute'> given
    $cache->put('report', 'ready', unit(1, 'minute'));
}

//! marks the expected PHPStan diagnostic used by documentation testing; it is not Yumemi syntax.

Documentation

See the documentation index for installation, integration coverage, and maintenance policy.

License

Yumemi Apocrypha is licensed under AGPL-3.0-only WITH romic-exception. See LICENSE.md and the Romic Exception. Contributions follow the terms in CONTRIBUTING.md. The bundled integration declarations describe third-party APIs; see the third-party notices.