Download the PHP package jesspinkman/pure without Composer
On this page you can find all versions of the php package jesspinkman/pure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jesspinkman/pure
More information about jesspinkman/pure
Files in jesspinkman/pure
Download jesspinkman/pure
More information about jesspinkman/pure
Files in jesspinkman/pure
Vendor jesspinkman
Package pure
Short Description Create HTML Markups without HTML code, easily nest elements and set attributes
License MIT
Package pure
Short Description Create HTML Markups without HTML code, easily nest elements and set attributes
License MIT
Please rate this library. Is it a good library?
Informations about the package pure
Pure
Library to create, use and reuse components to generate html.
- Combine elements freely and seamlessly.
- Easily add attributes to any element with the use of magic __call.
- Create complexe structures that you can interact with by extending the class.
- Makes your code very clean and readable.
Also check BSPure, an extension to use Bootstrap components.
How
There are two main classes:
Pure\Component
This is the class that abstracts an html markup element
you combine them to create your html
use magic calls to define the markup attributes
Pure\Pure
This is the factory, use static magic calls to create components.
You can then chain magic calls on the component to create the component attributes
example:
output
Nesting:
output
Extend the Component class to create reusable components in your projects
output
Advanced example
let's create different reusable components (views)
- default Page view
- grid view
- product view
output
And build from here even more complexe structures...
All versions of pure with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package jesspinkman/pure contains the following files
Loading the files please wait ....