PHP code example of electro-modules / matisse
1. Go to this page and download the library: Download electro-modules/matisse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
electro-modules / matisse example snippets
use Matisse\Components\Base\Component;
class HelloWorld extends Component
{
protected function render ()
{
echo "Hello World!";
}
}
use Matisse\Components\Base\Component;
use Matisse\Properties\Base\ComponentProperties;
class MessageProperties extends ComponentProperties
{
public $value = '';
}
class Message extends Component
{
const propertiesClass = TextProperties::class;
protected function render ()
{
echo $this->props->value;
}
}
$model = ['footerText' => 'Some footer text...'];