Download the PHP package darling/php-text-types without Composer

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

PHPTextTypes

A collection of classes that represent various types of text.

Installation

Classes

The following is an overview of the classes provided by the PHPTextTypes library.

These classes can be used as is, or extended to define new types of text.

Darling\PHPTextTypes\classes\strings\Text

Text represents a string, can be cast to the string it represents, and can provide information about the string it represents.

Note: The Darling\PHPTextTypes\classes\strings\Text class is the parent of all other classes defined by this library.

Example:

https://github.com/sevidmusic/PHPTextTypes/blob/main/TextExample.php

Darling\PHPTextTypes\classes\strings\ClassString

A ClassString is the name of an existing Class prefixed by it's namespace.

Example:

Darling\PHPTextTypes\classes\strings\UnknownClass

An UnknownClass is a ClassString that represents an unknown class.

Example:

Darling\PHPTextTypes\classes\strings\SafeText

SafeText is used to provide a safe form of Text that may contain unsafe characters.

The following characters are considered safe:

Unsafe characters in the original Text will be replaced with underscores.

A consecutive sequence of 2 or more unsafe characters will be replaced by a single underscore.

A consecutive sequence of 2 or more underscores will be replaced by a single underscore.

A consecutive sequence of 2 or more hyphens will be replaced by a single hyphen.

A consecutive sequence of 2 or more periods will be replaced by a single period.

SafeText will never be empty, if the original Text is empty, then the SafeText will be the numeric character 0.

Example:

Darling\PHPTextTypes\classes\strings\AlphanumericText

AlphanumericText is SafeText that only contains alphanumeric characters.

Example:

Darling\PHPTextTypes\classes\strings\Name

A Name is SafeText that begins with an alphanumeric character, is at least 1 character in length, is no more than 70 characters in length, and only contains the following characters:

Example:

Darling\PHPTextTypes\classes\strings\Id

An Id is AlphanumericText whose length is between 60 and 80 characters.

Example:


All versions of php-text-types with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
darling/php-unit-test-utilities Version ^1.0
darling/php-darling-dev-tools Version ^1.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 darling/php-text-types contains the following files

Loading the files please wait ....