Download the PHP package rah/zem_nth without Composer

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

h1. zem_nth

"Download":https://github.com/gocom/zem_nth/releases | "Packagist":https://packagist.org/packages/rah/zem_nth | "Twitter":http://twitter.com/gocom | "Donate":http://rahforum.biz/donate/zem_nth

Step in a list. The zem_nth plugin adds a conditional tag to "Textpattern CMS":http://textpattern.com, which can be used to matches every nth item in a group of items based on the given step and group of. This tag works similarly to the ":nth-child":https://developer.mozilla.org/en-US/docs/CSS/:nth-child pseudo-selector found in CSS.

h2. Installing

Using "Composer":http://getcomposer.org:

bc. $ composer require rah/zem_nth:*

Or "download":https://github.com/gocom/zem_nth/releases a plugin package.

h2. Tag attributes

bc. ...every third...

...first and second...

</txp:zem_nth>

The tag can also be used as a single, self-closing tag to return the current counter value:

bc.

Attributes are as follows:

step The step to jump. Example: @step="2"@ Default: @"2"@

of Step of how many. Example: @off="4"@ Default: @undefined@

id The identifier assigned to the counter. By default counters are identified by their contents. If you need multiple counters for identical code blocks, you can use the @id@ attribute to set your own identifier to prevent collisions. The @id@ attribute can also be used to connect two counters with different contents that wouldn't normally be connected. Example: @id="article_sidebar_stripes"@ Default: @undefined@

start The value the counter starts from. This allows resuming a previous counter, or just to add padding. Example: @start="25"@ Default: @"0"@

reset If set to @1@, resets the current counter back to the starting value set with @start@. Example: @reset="1"@ Default: @"0"@

h2. Toolshed notice

This is a toolshed project. Experimental and not part of the main supported product line of Rah. Not yet at least. Please use at your own risk.

h2. Examples

h3. Striped article list

Adds even and odd classes to posts.

bc. <div class="oddeven</txp:zem_nth>">

    <txp:body />
</div>

</txp:article_custom>

h3. Return current counter value

Display article number.

bc.

#:

</txp:article_custom>

h2. Changelog

h3. Version 0.3.0 - 2014/03/18

  • Fixed: Prevent possible collisions within the step, contained statement and of when calculating identifier.
  • Added: If used as a self-closing tag, returns the current counter value.
  • Now requires PHP 5.2.0 or newer.

h3. Version 0.2.2 - 2013/05/05

  • Fixed: Reported version number.

h3. Version 0.2.1 - 2013/05/05

  • Fixed: Composer package requirements.

h3. Version 0.2.0 - 2013/05/05

  • Added: @@ support.
  • Added: @id@ attribute. Allows avoiding collisions and starting new counters, where the contents and the attributes are the identical, but the counter should restart from zero. Can also be used to connect counters that wouldn't normally match.
  • Added: @start@ attribute. Allows changing the counter's starting value.
  • Added: @reset@ attribute. Resets the counter back to zero.

h3. Version 0.1.0 - 2004/08/26

  • Initial release.

All versions of zem_nth with dependencies

PHP Build Version
Package Version
Requires textpattern/lock Version >=4.0.7
textpattern/installer 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 rah/zem_nth contains the following files

Loading the files please wait ....