Download the PHP package rodrigomanara/alpha without Composer

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

Alpha - PHP String Character Analysis Library

Latest Stable Version License PHP Version

A lightweight PHP library for analyzing and categorizing character types within strings. Easily count vowels, consonants, digits, special characters, and more.

Features

Installation

Install via Composer (recommended):

Or add to your composer.json:

Then run:

Requirements

Quick Start

Usage Examples

Basic Character Counting

Case Analysis

Special Characters

Word Statistics

Working with Results

Complete Analysis Workflow

API Reference

Character Analysis Methods

checkVowels(string $string): int

Counts lowercase vowels (a, e, i, o, u) in the given string.

checkConsonates(string $string): int

Counts lowercase consonants (non-vowel letters) in the given string.

checkNumber(string $str): int

Counts numeric digits (0-9) in the given string.

upper(string $string): int

Counts uppercase letters (A-Z) in the given string.

lower(string $string): int

Counts lowercase letters (a-z) in the given string.

noalpha(string $string): int

Counts non-alphanumeric characters (special characters, spaces, punctuation) in the given string.

calculateWordLetterAverage(string $string): int

Calculates the average number of characters per word in the given string.

Result Management Methods

set(string $key, string $value): void

Stores or accumulates character findings by type.

get(string $key): array

Retrieves stored characters of a specific type.

getAll(): array

Retrieves all collected character results.

Testing

This library includes a comprehensive test suite with 30+ tests covering all functionality.

Running Tests

First, install development dependencies:

Run all tests:

Run tests with coverage report:

View test documentation:

Important Notes

Character Case Sensitivity

The library only counts lowercase vowels and consonants (a-z, not A-Z). Use the upper() and lower() methods separately for case analysis.

Examples

Method Naming

Note: The method is named checkConsonates (not "checkConsonants") for historical reasons, but functions identically to a consonant counter.

Performance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Rodrigo Manara

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please ensure:

Changelog

Version 1.1.3

Support

For issues, feature requests, or questions:

Roadmap


Ready to use! Install via Composer and start analyzing strings today.


All versions of alpha 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 rodrigomanara/alpha contains the following files

Loading the files please wait ...