Download the PHP package imarc/craft-kindling without Composer

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

Kindling

This is a Craft CMS plugin and Twig extension that provides some convienent logic for use building Craft sites.

This plugin has been updated for Craft 3. For Craft 2, please see the craft2 branch and the latest 1.x release.

Array Extension

This adds the twig filter intersect which simply maps to PHP's own array_intersect.

Cookie Extension

This add the twig function cookie which can be used to get or a set a cookie. If only one parameter is passed, it returns the value of the cookie if it exists. If more two or more parameters are passed, it has the same parameters as PHP's own setcookie().

Linkify

A simple twig filter, linkify, that searches a text string for URLs and email addresses and wraps them in anchor tags. Remember to use the |raw filer on the output.

{{ linkify(tweet.text)|raw }}

Inflection Extension

This add two twig filters: numberToWords and inflect.

numberToWords converts an integer between -999,999,999,999,999,999,999 and 999,999,999,999,999,999,999 into words. It has an optional argument if you'd like the result to be an adjective.

inflect Takes at least one argument, a formatter expression, that it uses with the quantity. It will try to pluralize the expression automatically, but you can also provide a second argument to specify the exact plural format.

In the formatter expression, you can use %d, %n, %a, or %%:

Pathing Variables Extension

Path classes provides a way to get classes generated from the current request path. For example,

Both of these are designed to be manipulated. The path_classes function takes two arguments, $offset and $length, and uses array_slice under the hood:

Both $offset and $length can be negative (just like array_slice). If you would rather get and manipulate an array with Twig, you can use path_classes to get back an array, and then use Twig's syntax for array slicing:

Lastly, there is also path_id(). You can use path_id as a variable or a function:

But what about the homepage? Try the ?: operator.

Putting it all together:

Lastly, if you store whatever you're going to use for the body ID to a variable, this is probably easier to work with than craft.request.path to check whether you're on that page (to say, hide/show parts of a twig layout.)

Wrap Embeds Extension

This is a simple twig filter, wrapembeds, that searches for <iframe> tags in the text passed in, and if it finds any, wraps them in a div with a class of "responsive_video".

Template Variables

executionTime Outputs the time required for the server to execute the page output

{{ craft.kindling.executionTime }}


All versions of craft-kindling with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
craftcms/cms Version ^3.0.2 || ^4.0.0
twig/twig Version ^3.3.10
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 imarc/craft-kindling contains the following files

Loading the files please wait ...