Download the PHP package decodelabs/tagged without Composer
On this page you can find all versions of the php package decodelabs/tagged. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download decodelabs/tagged
More information about decodelabs/tagged
Files in decodelabs/tagged
Package tagged
Short Description PHP markup generation without the fuss
License MIT
Informations about the package tagged
Tagged
PHP markup generation without the fuss.
Tagged provides a simple, powerful and beautiful way to create HTML markup without the spaghetti.
Installation
Usage
Tagged uses Veneer to provide a unified frontage under DecodeLabs\Tagged
.
You can access all the primary HTML functionality via this static frontage without compromising testing and dependency injection.
HTML markup
Generate markup using a simple, flexible interface.
...creates:
Create individual tags without content:
Wrap HTML strings to be used where an instance of Markup
is needed:
Dump script data to Html:
Prepare arbitrary input for Markup output:
Attributes
Set attributes inline:
Set attributes via an array:
Set attributes with named arguments:
Nesting
You can nest elements in multiple ways:
Time and date
Format and wrap dates and intervals
Media embeds
Normalize embed codes shared from media sites:
Components
Tagged also supports a higher level component abstraction allowing for more complex markup generation via the same interface. Components are called using an @name
syntax:
See the components directory for a list of available components.
Licensing
Tagged is licensed under the MIT License. See LICENSE for the full license text.
All versions of tagged with dependencies
ext-intl Version *
symfony/polyfill-mbstring Version ^1.31
decodelabs/archetype Version ^0.3.8
decodelabs/coercion Version ^0.3
decodelabs/collections Version ^0.11
decodelabs/cosmos Version ^0.2.1
decodelabs/elementary Version ^0.6
decodelabs/exceptional Version ^0.5.3
decodelabs/glitch-support Version ^0.5.1
decodelabs/veneer Version ^0.12.3