PHP code example of aqua / blade-emerald

1. Go to this page and download the library: Download aqua/blade-emerald 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/ */

    

aqua / blade-emerald example snippets


class YourComponent extends Component {
    use Markup;
    ...

public function __construct(public $wrap) {...} // using php 8.0 constructor property promotion

class YourComponent extends Component {
    use Markup;

    protected static $wrapby = 'markup'; 👈

    public function __construct(public $markup, ...) {
                                        👆
    }
    ...