Download the PHP package millancore/pesto without Composer

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

Pesto

Modern PHP template engine that provides an intuitive and expressive way to build web application views. It offers a clean syntax using custom HTML attributes and supports advanced templating features like view composition, slots, conditional rendering, loops, and built-in security measures.

Pesto understands the context of {{ variables }} and escapes them according to their scope to avoid Cross-Site Scripting (XSS) issues.

Or, for greater clarity, use <template>, which will not be included in the final render.

Pesto templates support files with the .html or .php extension, allowing you to integrate PHP code if needed.

Installation & Usage

Pesto is available via Composer and is free of third-party dependencies

View Composition

Pesto makes it easy to reuse parts of your views

Template Tag

The <template> tag allows you to define php-* attributes that will be evaluated but not the tag included in the final render.

Partials & Slots

When working with views that are composed of other views, you can use partials and slots to avoid repetition.

Layout

View:

Nested Views

Pesto allows you to nest views, allowing you to reuse the same layout for multiple times in the same view.

Control Flow

Pesto provides two control flow directives: foreach and if, enough to build any kind of view.

If Attribute

The only rule importance for use php-elseif and php-else is the tag must be a sibling of the php-if tag.

php-if allows you to conditionally render a block of code.

Loops

Pesto provides a simple way to loop over arrays or objects.

Inline

Pesto also allows you to use inline control flow directives.

Filters

Pesto provides a simple way to apply filters to variables using the pipe operator, you can define your own filters.

List of Filters

String Filters

Chain Filters

You can chain multiple filters together.

Filters with Arguments

To pass arguments to a filter, you can use the : operator.

Add Filters

Add filter to Pesto is very simple, you can create a class with public methods and add the AsFilter Attribute.

on Pesto factory pass the class to the filters option.

Benchmarks

Pesto includes benchmarks comparing performance against Blade and Twig across four scenarios: simple rendering, loops, conditionals, and partials.

Benchmarks are powered by PHPBench with 100 iterations, 10 revolutions, and 5 warmup iterations.


All versions of pesto with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-dom Version *
ext-libxml Version *
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 millancore/pesto contains the following files

Loading the files please wait ...