PHP code example of kiryi / pagyi
1. Go to this page and download the library: Download kiryi/pagyi 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/ */
kiryi / pagyi example snippets
__construct(
?string $initConfigFilepath,
?string $imgDir = null,
?string $imgPath = null,
?string $baseUrl = null
)
build(string $buildConfigFilepath, string $textDir): string
$pagyi = new \Kiryi\Pagyi\Builder({YOURFILEPATH});
$pagyi = new \Kiryi\Pagyi\Builder(
null,
'{YOURBASEURL}',
'{YOURIMAGEPATH}',
'{YOURIMAGEDIRECTORY}',
);
$pagyi = new \Kiryi\Pagyi\Builder(
null,
'public/img',
'img',
'http://pagyi-test.com',
);
$page = $pagyi->build(
'asset/json/builderConfiguration.json',
'asset/text',
);
echo $page;
$viewyi->assign('body', $page);
$viewyi->render('home');
$viewyi->display('head', 'PAGYI Test');
ini
[pagyi]
baseUrl = {YOURBASEURL}
imagePath = {YOURIMAGEPATH}
imageDirectory = {YOURIMAGEDIRECTORY}
asset
json
builderConfiguration.json
text
exampleTextFile01.md
exampleTextFile02.md
public
img
example01.png
example02.png
index.php