Download the PHP package phpffcms/ffcms-templex without Composer

On this page you can find all versions of the php package phpffcms/ffcms-templex. 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 ffcms-templex

Templex

Templex - native php template system build on top of php plates framework: thephpleague/plates. Templex used in phpffcms as a basic template engine with pack of html helpers that makes posible fast build html-code output.

Installation

Using composer:

Usage

To see complete examples please take a look on directory.

Initialize

Here you can see a simple example of template system initialization:

Use layouts

The major feature of any template system is a layouts. Plates provide a complete feature to use layouts in templating:

Sections extend

Section allow you to make dynamic templates with block override features. To understand how section extending works take a look at simple example:

and :

After initialization and executing the output will be:

The section in after rendering accept the result from ... section. You can make a multiple extend by section using instead of .

Html helpers

Templex provide simple and clear php-based html code generator. The main part of developing process in any application is to build html output of tables, listing, grids and forms.

In this section you will see the main features of html code generator helpers.

Listing

To draw a simple listing you should use and then call to add each one element.

Listing can be used inline or as named factory object. Inline object usage are prefered for pre-defined elements that should be displayed "right here":

Named object can be defined for more complex usage. For example - add elements of listing in cycle:

Complete example with some "magic": ` will compile to output:

Table

Tables often used to display structured data. Templex provide helper to draw table simple & fast. To draw table you should use $this->table([properties]) instance and then implement thead ->head([properties], [items]) features and tbody ->row([items], order) items and finally call ->display() to get html output.

As a listings, table can be used in inline or names style (careful! code below is symbolic):

So take a look at complete example:

lead to output:

If you want to use html syntax in text property you should pass in item array.

Selectize column

Table helper provide feature to display multiple checkboxes at table column index. If you want to add at each element of column checkbox input field, use selectize:

Note, that should be used before or called.

Sortable column

If you want to sort data in tables you can use sorter helper of table building. Sorter add up/down arrow at defined column index with named link.

Forms

Form helper provide features of fast form field building, styling and display.


All versions of ffcms-templex with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
league/plates Version 3.*@stable
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 phpffcms/ffcms-templex contains the following files

Loading the files please wait ....