atom-fm / components
Server-rendered UI components for Atom Framework
Requires
- php: ^8.4
- atom-fm/framework: ^0.2
- atom-fm/profiler: ^0.1
- atom-fm/validation: ^0.1
- atom-fm/view: ^0.1
Requires (Dev)
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-26 19:27:53 UTC
README
Server-rendered widgets, styles, and browser controls for Atom Framework.
Install the package in your application.
composer require atom-fm/components
Enable it by adding its module to the application's module registry.
use Atom\Components\Components; use Atom\Integration\View\ComponentModule; $modules->add(new ComponentModule( Components::definitions(), Components::resourceDirectory(), Components::DEFAULT_RESOURCE_PATH ));
Load the supplied stylesheet in the layout. Load the component scripts after the framework's browser runtime for password reveal and the Lookup and DatePicker controls.
<ComponentsStyles /> <ClientScripts morphdom /> <ComponentsScripts />
Register the framework's Client module to use ClientScripts. The component and client resources are served under their respective module paths.
Develop in the monorepo
Run composer setup from the repository root to install the package and showcase. Run composer components:check for component PHP tests and static analysis.
Start the showcase from its directory.
php -S 127.0.0.1:8022 -t public
See the browser controls guide for the demo and browser tests.