PHP code example of mattferris / component

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

    

mattferris / component example snippets



namespace My\Namespace;

use MattFerris\ComponentInterface;

class MyComponent implements ComponentInterface
{
    /**
     * Perform any component intialization tasks
     */
    public function init()
    {
        // ...
    }

    /**
     * Load the component
     */
    public function load()
    {
        // ...
    }
}