PHP code example of fapost / foundation

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

    

fapost / foundation example snippets


protected function registerExtensions(CoreRegistrarInterface $registrar): void
{
    $registrar->registerNodeHandler(SyncEmployeeHandler::class);
    $registrar->registerDataAccessor('hr', HrDataAccessor::class);
}

public function getManifest(): SolutionManifest
{
    return SolutionManifest::make(
        id: 'hr',
        version: '2.1.0',