PHP code example of jinexus-framework / jinexus-framework-skeleton

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

    

jinexus-framework / jinexus-framework-skeleton example snippets


namespace Application\Controller;

use JiNexus\Mvc\Controller\AbstractController;
use JiNexus\Mvc\Model\ViewModel;

class IndexController extends AbstractController
{
    public function indexAction(): ViewModel
    {
        return new ViewModel([
            'helloWorld' => 'Hello World!',
        ]);
    }
}