Download the PHP package xrow/regexpline without Composer

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

Datatype extension for eZ publish 4.x (License: GPL)

Provides a regular expression datatype for eZ publish.

What is it?

For end users it will look like the standard "Text line" datatype that ships with eZ publish.

The biggest difference is that the input will be validated against a regular expression. This enables you to make sure the input meets certain criteria.

It can act like a regular "Text line" datatype by allowing all input (regexp: /.*/).

Features

A number between square brackets denotes the version number where said feature has been introduced. If no indication is present, version 1.0 contains the feature.

Information

While editing a contentclass, you will be able to define how the content of a regexpline attribute will be validated.

You can choose two paths:

  1. Enter regular expressions directly in the class.
  2. Select one or more presets which have been defined in an INI file.

Path 1 is pretty straightforward. The interface will tell you what you can do. Each regular expression you enter can have an error message that describes what should be done to meet the criteria. If you specify multiple regular expressions, the input must match all three expressions.

Path 2 reads the settings from an INI file. You can define as many regular expressions provided you give each of them a unique identifier. With that very same identifier, you can build and array of error messages too. This way, you can accomplish the same thing as in Path 1 (custom messages per regular expression).

Something specific for Path 2 is if the regular expression is negated afterwards (input must NOT match the expression). The datatype will then look for the error message identifier by the regular expression's unique identifier concatenated with '_negate'. This is of course not needed if you take Path 1 (the regular expression will always be negated for that attribute and the error message can be constructed to reflect that).

Any subpatterns in the regular expressions chosen for an attribute will be available for use in the object name pattern. The datatype allows you to construct a custom string of these subpatterns. The custom string will then be used in real object name pattern if you construct the contentclass to do so.

Planned Features

These features are NOT available yet, but they're coming.

No planned features at the time of writing

Requirements

Installation

You can always find the latest version of this extension @ http://pubsvn.ez.no/community/trunk/extension/regexpline

If you can't use SVN, you can also download the most recently released version from the Contributions section @ http://ez.no/community/contribs

Bugs? Comments? Wishes?

Direct all (fan|bug|wish)mail at: hans melis gmail com

Please note that this datatype has been developed in my spare time, and is supplied as is. I'm not responsible for any data loss or failures. YMMV!

Tips & Tricks

  1. If you want to refer to the complete text that matched the regular expression in the object name pattern, you can use <0> as tag.

Copyright

Regular Expression datatype for eZ publish 4.x Copyright (C) 2005-2008 Hans Melis

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


All versions of regexpline with dependencies

PHP Build Version
Package Version
Requires ezsystems/ezpublish-legacy-installer Version ~2.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 xrow/regexpline contains the following files

Loading the files please wait ....