1. Go to this page and download the library: Download pinahq/framework 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/ */
pinahq / framework example snippets
\Pina\Config::get(‘db’, ‘user’);
namespace Pina\Modules\Images;
use Pina\ModuleInterface;
use Pina\Event;
class Module implements ModuleInterface
{
public function getPath()
{
return __DIR__;
}
public function getNamespace()
{
return __NAMESPACE__;
}
public function getTitle()
{
return 'Images';
}
public function boot()
{
Event::subscribe($this, 'image.resize');
}
public function http()
{
return [
'cp/images',
'images',
];
}
public function cli()
{
return [
'image',
];
}
}
function __($string)
{
return \Pina\Language::translate($string, __NAMESPACE__);
}