Skip to content

Latest commit

 

History

117 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeMonster UI for Annabel Razor

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

Current release: codemonster-ru/ui-razor@1.1.0.

Requirements

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

Installation

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.

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.

License

MIT

About

Read-only Composer split of codemonster-ru/ui packages/razor

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages