PHPackages                             jidaikobo/a11yc - 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. jidaikobo/a11yc

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

jidaikobo/a11yc
===============

Static accessibility checker core for A11YC

7.1.0(2mo ago)164MITPHPPHP &gt;=7.4

Since Mar 2Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/jidaikobo-shibata/a11yc)[ Packagist](https://packagist.org/packages/jidaikobo/a11yc)[ RSS](/packages/jidaikobo-a11yc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (4)Used By (0)

a11yc
=====

[](#a11yc)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

`a11yc` is the core accessibility checking library extracted from A11YC.

This package is a PHP library, not the old standalone web application. It provides HTML and URL analysis APIs that can be embedded in other applications such as the standalone UI layer or the `jwp-a11y` WordPress plugin.

Requirements
------------

[](#requirements)

- PHP 7.4 or later
- Composer

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

[](#installation)

```
composer require jidaikobo/a11yc
```

If you are working on this repository directly:

```
composer install
```

Compiled Resources
------------------

[](#compiled-resources)

Runtime resource loading now expects precompiled PHP arrays in `resources/compiled/`.

The distributed package should include:

- `resources/compiled/ja.php`
- `resources/compiled/en.php`

When you change resource source files under `resources/`, rebuild the compiled files before committing or packaging:

```
composer compile-resources
```

This command regenerates the compiled PHP arrays from the YAML source files.

At runtime, `a11yc` uses the compiled files first. If they are missing, the library raises an error unless YAML fallback is explicitly enabled for development.

Development-Only YAML Fallback
------------------------------

[](#development-only-yaml-fallback)

For local development only, you can allow direct YAML loading with a Git-ignored `config.development.php` file in the package root:

```
