Download the PHP package ivopetkov/html-server-components-bearframework-addon without Composer
On this page you can find all versions of the php package ivopetkov/html-server-components-bearframework-addon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ivopetkov/html-server-components-bearframework-addon
More information about ivopetkov/html-server-components-bearframework-addon
Files in ivopetkov/html-server-components-bearframework-addon
Package html-server-components-bearframework-addon
Short Description HTML Server Components addon for Bear Framework
License MIT
Homepage https://github.com/ivopetkov/html-server-components-bearframework-addon
Informations about the package html-server-components-bearframework-addon
HTML Server Components
Addon for Bear Framework
This addon brings HTML Server Components to Bear Framework.
Download and install
Install via Composer
Download an archive
Download the latest release from the GitHub page and include the autoload file.
Enable the addon
Enable the addon for your Bear Framework application.
Documentation
A reference to the HTML Server Components object (IvoPetkov\BearFramework\Addons\HTMLServerComponents) is available at $app->components
Examples
Let's create a demo component file at app/components/footer.php
Convert components code into HTML code
Create aliases
Classes
IvoPetkov\BearFramework\Addons\HTMLServerComponents
HTML Server Components utilities
Methods
Adds an alias
Parameters
$alias
The alias
$original
The original source name
Returns
No value is returned
Converts components code (if any) into HTML code
Parameters
$content
The content to be processed
$options
Compiler options
Returns
The result HTML code
Creates a component from the file specified and processes the content
Parameters
$file
The file to be run as component
$attributes
Component object attributes
$innerHTML
Component object innerHTML
$variables
List of variables that will be passes to the file. They will be available in the file scope.
$options
Compiler options
Returns
The result HTML code
License
HTML Server Components addon for Bear Framework is open-sourced software. It's free to use under the MIT license. See the license file for more information.
Author
This addon is created by Ivo Petkov. Feel free to contact me at @IvoPetkovCom or ivopetkov.com.
All versions of html-server-components-bearframework-addon with dependencies
bearframework/bearframework Version 1.*
ivopetkov/html-server-components-compiler Version 1.*