Download the PHP package neophp/regexbuilder-package without Composer

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

RegexBuilder Package

A dev-only regex tester for NeoPHP. Write a pattern, test it against sample text, and see matches highlighted live — entirely client-side, no server round-trip needed to evaluate a match.


Structure


Dev-only, by design

The standalone page's route is protected by DevOnlyMiddleware, which checks Config/app.config.php's environment key. Outside environment: dev, it returns a blocked response.

The RegexBuilder macro itself has no such restriction, since it makes no server calls — if you embed it in your own page (e.g. inside neo-admin-package), guard that page the same way you'd guard any other dev tool page in your project.


Installation

Register it in the project's Config/app.config.php:

No configuration file, no migration.


Usage

Standalone page

Visit /_regexbuilder/ (only reachable in dev). Type a pattern and flags, edit the test string, and matches highlight live below.

Embedding in your own page

RegexBuilder.render(instanceId = 'rb') accepts an optional instanceId to avoid collisions if rendered more than once on the same page.


PHP vs JavaScript regex differences

This package uses JavaScript's native RegExp, not PHP's PCRE (preg_match). The two dialects are very similar for everyday patterns, but not identical — some PCRE-specific syntax (certain lookbehind variations, possessive quantifiers, recursive patterns) is not supported by JavaScript's engine. A pattern that behaves correctly here should work in PHP for the vast majority of common cases, but always verify directly in your PHP code for anything advanced.


Theming

Every visual value is a CSS custom property scoped to .rb-layout:


License

MIT


All versions of regexbuilder-package with dependencies

PHP Build Version
Package Version
No informations.
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 neophp/regexbuilder-package contains the following files

Loading the files please wait ...