Download the PHP package marjovanlier/stringmanipulation without Composer

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

String Manipulation Library for PHP

Table of Contents

Introduction

Welcome to the StringManipulation library, a high-performance PHP 8.3+ toolkit designed for complex and efficient string handling. Following a recent suite of O(n) optimisations, the library is now 2-5x faster, making it one of the most powerful and reliable solutions for developers who require speed and precision in their PHP applications.

This library specialises in Unicode handling, data normalisation, encoding conversion, and validation with comprehensive testing and quality assurance.

Packagist Version Packagist Downloads Packagist License PHP from Packagist Latest Stable PHPStan Enabled Phan Enabled Psalm Enabled codecov

Features

Performance Benchmarks

The library has undergone extensive performance tuning, resulting in 2-5x speed improvements through O(n) optimisation algorithms. Our benchmarks demonstrate the library's capability to handle high-volume data processing efficiently:

Method Performance Optimisation Technique
removeAccents() 981,436+ ops/sec Hash table lookups with strtr()
searchWords() 387,231+ ops/sec Single-pass combined mapping
nameFix() 246,197+ ops/sec Consolidated regex operations

Benchmarks measured on standard development environments. Actual performance may vary based on hardware, string length, and complexity.

Key Optimisation Features:

Installation

Install the package via Composer with the following command:

Usage

For more detailed examples of each feature, please refer to the corresponding sections below.

License

This library is licensed under the MIT License. For more information, please refer to the License File.

Detailed Examples

Name Standardisation

Search Words

This feature optimises strings for database queries by removing unnecessary characters and optimising for search engine algorithms.

Name Fix

Standardise last names by capitalising the first letter of each part of the name and handling prefixes correctly.

UTF-8 to ANSI Conversion

Convert UTF-8 encoded characters to their ANSI equivalents, facilitating compatibility with systems that do not support UTF-8.

Remove Accents

Strip accents and special characters from strings to normalise text, making it easier to search and compare.

Date Validation

Ensure date strings conform to specified formats and check for logical consistency, such as correct days in a month.

Advanced Usage

For more complex string manipulations, consider chaining functions to achieve unique transformations. For instance, you could first normalise a string, apply a search optimisation, and finally standardise the casing for a comprehensive text processing example.

This approach allows for flexible and powerful string manipulations by combining the library's functions to suit your specific needs.

Contributing

We welcome contributions to the StringManipulation library! If you're interested in helping, please follow these steps:

  1. Fork the repository and create your feature branch.
  2. Ensure your changes adhere to our coding standards and include tests if applicable.
  3. Submit a pull request with a detailed description of your changes.

Thank you for your interest in improving our library!

Testing & Quality Assurance

We are committed to delivering reliable, high-quality code. Our library is rigorously tested using a comprehensive suite of tools to ensure stability and correctness.

Docker-Based Testing (Recommended)

For a consistent and reliable testing environment, we recommend using Docker. Our Docker setup includes PHP 8.3 with all required extensions:

Local Testing

If you have a local PHP 8.3+ environment configured:

Our Quality Suite Includes:

System Requirements

Support

For support, please open an issue on our GitHub repository.


All versions of stringmanipulation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
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 marjovanlier/stringmanipulation contains the following files

Loading the files please wait ...