Search by

This package is abandoned and no longer maintained. The author suggests using the codemonster-ru/ui-razor package instead.

CodeMonster UI components and assets for Annabel Razor.

Package info

github.com/codemonster-ru/ui-razor

pkg:composer/codemonster-ru/ui

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

v1.1.0 2026-08-14 19:14 UTC

This package is auto-updated.

Last update: 2026-11-27 13:43:09 UTC


README

Composer adapter providing CodeMonster UI components and packaged frontend assets for Annabel Razor.

Releases on Packagist.

Requirements

  • PHP 8.2 or newer.
  • codemonster-ru/razor 2.1 or newer within the 2.x line.

Get started

composer require codemonster-ru/ui-razor:^1.1.0

The package does not require Node.js in production.

Register the CodeMonster UI provider during application bootstrap:

use Codemonster\Razor\Components\ComponentRegistry;
use Codemonster\Ui\UiComponentProvider;

$components = new ComponentRegistry();
$components->register(new UiComponentProvider());

The provider owns the cm prefix. Components are available through tags such as <cm-button>.

Packaged frontend artifacts can be copied to an application public directory without Node.js:

use Codemonster\Ui\Assets\AssetManifest;
use Codemonster\Ui\Assets\AssetPublisher;

$publisher = new AssetPublisher(AssetManifest::packaged());
$publishedPaths = $publisher->publish(__DIR__ . '/public/vendor/codemonster-ui');

Every file is declared by the package manifest and verified by SHA-256 before publication. The packaged css/tokens/tokens.css and css/css/styles.css entries are the complete stylesheet pair; keep their relative imported files together when serving them directly.

Documentation

These guides link to the CodeMonster UI revision from which this package snapshot was split.

See the cross-platform Button guide for complete Vue and Annabel Razor usage. See the Card guide for nested default and named-slot composition. See the form components guide for native submission, choice controls, and server rerender. See the Accordion guide for runtime installation and progressive enhancement. See the display components guide for the non-interactive display cohort. See the navigation components guide for Link, Breadcrumbs, and progressive enhancement. See the overlay components guide for server-rendered Dialog, Drawer, Popover, and Tooltip usage. See the advanced input guide for native form submission and CommandPalette enhancement. See the Table and DataTable guide for trusted table composition and server-owned data requests. See the layout primitives guide for trusted semantic composition with Container, Stack, Inline, Section, and Grid.

Development

composer install
composer check

composer check runs PHPStan at maximum level followed by PHPUnit.

Follow the contribution guide to propose changes. Report vulnerabilities through the security policy.

License

MIT