Download the PHP package authorod/svitylo-anatomy-laravel without Composer
On this page you can find all versions of the php package authorod/svitylo-anatomy-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download authorod/svitylo-anatomy-laravel
More information about authorod/svitylo-anatomy-laravel
Files in authorod/svitylo-anatomy-laravel
Package svitylo-anatomy-laravel
Short Description Laravel and Livewire integration of the Svitylo 3D Anatomy Atlas: Blade components, ```anatomy embeds for league/commonmark and stored HTML, Symfony HtmlSanitizer rules and Livewire commands/events.
License CPAL-1.0
Homepage https://github.com/authorOd/3d-anatomy-atlas
Informations about the package svitylo-anatomy-laravel
authorod/svitylo-anatomy-laravel
Integration of the Svitylo 3D atlas with Laravel and Livewire:
- Blade components
<x-svitylo-anatomy>(the full atlas) and<x-svitylo-anatomy-embed>(an embed); - a league/commonmark extension: sh composer require authorod/svitylo-anatomy-laravel npm install @authorod/svitylo-3d-anatomy-atlas npx svitylo-anatomy export-assets public/anatomy-data php artisan vendor:publish --tag=svitylo-anatomy-config # optional js import '@authorod/svitylo-3d-anatomy-atlas'; // Only with Livewire: the JS bridge ships with this Composer package (an ES module without dependencies, types alongside). import { installLivewireBridge } from '../../vendor/authorod/svitylo-anatomy-laravel/resources/js/livewire.js';
installLivewireBridge(); js import { syncAnatomyTheme } from '../../vendor/authorod/svitylo-anatomy-laravel/resources/js/theme.js';
syncAnatomyTheme(); // { root, darkClass } — another element or class; returns a function that stops it blade {{-- Markdown (CommonMark + GFM): raw HTML is escaped, unsafe links are dropped --}} @anatomyMarkdown($note->body)
{{-- Stored HTML: the sanitizer first, then the embeds --}} @anatomyHtml($sanitizedHtml)
The order "sanitize, then transform" means that only the package creates embed markup: the
sanitizer removes an embed written into a note by hand (with a foreign data-url). allowEmbeds()
is for pipelines that sanitize embeds that are already rendered: it allows only their attributes,
always sets layout="embed", and sets data-url to the folder you pass
(AnatomySanitizer::allowEmbeds($config, config('svitylo-anatomy.data_url'))) or drops it, so an
embed in the input can never load data from another host.
Blade components
<x-svitylo-anatomy> passes its other attributes to the <svitylo-anatomy> element
(API). <x-svitylo-anatomy-embed> takes the fields of an sh
composer install && composer test # PHPUnit + Testbench (Laravel 11–13, Livewire 4)
pnpm test:laravel:e2e # from the root: Livewire browser tests on the workbench app
`workbench/` is the test application: a note in a Livewire component, an atlas with commands and
events, and pages with `@persist`.
## Licence and contributions
The project's own code is licensed under [CPAL-1.0](LICENSE.md). Independent code in
a Larger Work may remain closed; CPAL source and attribution obligations apply to
the covered atlas code and its modifications. Data and dependencies retain their
own licences. See the repository's [licensing guide](https://github.com/authorOd/3d-anatomy-atlas/blob/HEAD/docs/licensing.md) and
[language contribution guide](https://github.com/authorOd/3d-anatomy-atlas/blob/HEAD/CONTRIBUTING.md). Partial translation drafts
can be proposed through a PR; a new language also needs runtime integration.All versions of svitylo-anatomy-laravel with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/view Version ^11.0 || ^12.0 || ^13.0
league/commonmark Version ^2.6