Installation
Composer
Section titled “Composer”composer require yarunoka/laravelRequires PHP 8.4 or newer and Laravel 13. The package brings
yarunoka/core with it, and the service provider is registered by
package auto-discovery — there is no bootstrapping step.
Publishing the config
Section titled “Publishing the config”php artisan vendor:publish --tag=yarunoka-configThis copies config/yarunoka.php into your application. Publishing is
optional: without it, the defaults apply — the timezone falls back to
app.timezone, and the calendar is empty. What the keys mean is the
subject of Configuration.
Resolving public holidays with yasumi
Section titled “Resolving public holidays with yasumi”Wherever the DSL accepts a resolver name, a name of the form
yasumi-{Provider} is resolved by
yasumi when that library is
installed — no resolver of your own to write:
composer require azuyalabs/yasumi{Provider} is a yasumi provider name (Japan, USA, …). Without the
library installed, such a name is simply an unregistered resolver, and
using it fails validation — nothing resolves silently to an empty list.
Verifying the installation
Section titled “Verifying the installation”The bridge binds the engine’s entry points into the container, so resolving one and parsing a document proves the wiring:
use Yarunoka\YrnkParser;
$document = app(YrnkParser::class)->parse('{ "version": "1.0", "timezone": "Asia/Tokyo", "schedules": [{"days": [25], "times": ["10:00"]}]}');
$document->timezone->getName(); // "Asia/Tokyo"count($document->schedules); // 1