Download the PHP package kiryi/pagyi without Composer

On this page you can find all versions of the php package kiryi/pagyi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pagyi

Kiryi's PAGYI

A page builder using a JSON configuration file and Markdown texts.

Installation

Usage

Constructor Definition

Parameters

initConfigFilepath
You can initialize your builder by passing a filepath to an INI file. If you don't want to use a file you can pass null and pass the other parameters instead (more information).

imgDir
The image directory relative to your project's root directory. Optional if you use an initialization file (more information).

imgPath
The image path relative to your base URL. Optional if you use an initialization file (more information).

baseUrl
The base URL of your web application. Optional if you use an initialization file (more information).

Method Definition build

Parameters

buildConfigFilepath
The JSON configuration filepath relative to your project's root directory.

textDir
The Markdown texts directory path relative to your project's root directory.

Return Values

Returns the fully rendered HTML of your configured page.

Initialization

You have to provide the builder at least three mandatory parameters.

baseUrl
The base URL of your web application.

imagePath
The image path relative to your base URL.

imageDirectory
The image directory relative to your project's root directory.

The parameters can be provided by using a custom configuration file with the following contents:

The filepath to the above INI file has then to be passed to the constructor.

If you have set up the configuration file, you have to provide the path to the constructor:

If you don't want to use an INI file at all, just pass the needed parameters to the constructor and set the filepath initConfigFilepath to null.

You can also overwrite a single parameter by passing it to the constructor even if you set up a configuration file.

CSS Rules

For a correct presentation of the page, copy the CSS rules from {pagyi}/asset/css/pagyi.css to your project's CSS file or include PAGYI's file into your web page.

JSON Configuration

The page is build up from sections defined in a JSON configuration file.

Layout Types

Property type tells PAGYI which layout to use. Default value is normal.

normal

left

right

center

Parameter no-padding

The additional parameter no-padding could be added to the types left and right. Normally the sections have some space between:

Parameter no-padding removes this space.

Combined with good images, it's possible to create a chessboard-looking design.

Images

Example

Let's assume the following directory structure

Your builderConfiguration.json file looks like

Then initialize the Page Builder

and build the page

You can now simply echo it

Even better is using Kiryi's VIEWYI to build a whole HTML5 web page

For more information about the VIEWYI set up and usage, please read VIEWY's README. Since PAGYI is using VIEWYI internally, it is a good choice to combine both.


All versions of pagyi with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
kiryi/pathyi Version ^1.0
kiryi/inyi Version ^1.0
kiryi/viewyi Version ^1.1
erusev/parsedown Version ^1.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kiryi/pagyi contains the following files

Loading the files please wait ....