Download the PHP package daun/statamic-latte without Composer

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

Statamic Latte

Latest Version on Packagist Test Status Code Coverage License

Use the Latte templating language on Statamic sites.

✨ Features

🛠️ Installation

Run the following command from your project root:

Alternatively, you can search for this addon in the Tools > Addons section of the Statamic control panel and install it from there.

🎨 Usage

Once installed, you're ready to use Latte views in your frontend. Just save or rename your views using the extension .latte and reference them as usual. Of course, you can use both side-by-side as long as you're making sure there's only ever one identically named view.

Antlers

Latte

Tags

Statamic Tags can be used via the s helper function:

Antlers

Latte

Modifiers

Statamic Modifiers can also be used as filters in Latte:

Antlers

Latte

Mix & Match

If you ever need to combine Latte and Antlers code, you can use the antlers tag in your Latte views to render Antlers code inline. This can be useful for complex built-in tags or quick prototyping by copy-pasting examples from the docs.

Layout

Just like in Antlers templates, the correct layout file will be used based on the data available in your entries and blueprints.

By default, it will look for /resources/views/layout.latte, but you can configure specific entries and collections to use different layouts instead by setting layout: other_layout on the entry or collection config file.

Caching

Cache

Use the cache tag to cache parts of a view.

Nocache

The nocache tag can be used to exempt part of a view from static caching.

Limitations

The nocache tag is only supported for application-level static caching. Full file-based caching requires JavaScript for nocache to work, which isn't yet implemented in this addon. See Caching Strategies for details.

Nesting cache and nocache is also not yet supported. The following will not work:

License

MIT


All versions of statamic-latte with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
daun/laravel-latte Version ^1.0
laravel/framework Version ^9.0 || ^10.0 || ^11.0 || ^12.0
statamic/cms Version ^4.0 || ^5.0
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 daun/statamic-latte contains the following files

Loading the files please wait ....