Download the PHP package andreas-glaser/php-helpers without Composer

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

PHP Helpers

A comprehensive collection of PHP helper functions and classes to simplify common programming tasks.

Requirements

Installation

Features

Array Helper (ArrayHelper.php)

A powerful utility class for array manipulation and operations.

Key Functions:

String Helper (StringHelper.php)

Comprehensive string manipulation and comparison utilities.

Key Functions:

Date Helper (DateHelper.php)

Date and time manipulation and validation utilities.

Key Functions:

HTML Helper (HtmlHelper.php)

HTML element generation and attribute handling utilities.

Key Functions:

Text Formatting Elements:
Semantic Elements:
Structural Elements:
Media Elements:
Interactive Elements:
Progress & Measurement Elements:

JSON Helper (JsonHelper.php)

JSON validation and manipulation utilities.

Key Functions:

Number Helper (NumberHelper.php)

Number formatting and manipulation utilities.

Key Functions:

Random Helper (RandomHelper.php)

Random value generation utilities.

Key Functions:

Value Helper (ValueHelper.php)

Value validation and type checking utilities.

Key Functions:

Counter Helper (CounterHelper.php)

Counter implementation for tracking and incrementing values.

Key Functions:

CSV Helper (CsvHelper.php)

CSV file handling and manipulation utilities.

Key Functions:

Email Helper (EmailHelper.php)

Email validation and formatting utilities.

Key Functions:

IO Helper (IOHelper.php)

File system operations and temporary file handling.

Key Functions:

Timer Helper (TimerHelper.php)

Time measurement and execution timing utilities.

Key Functions:

Color Helper (Color/HexHelper.php)

Color manipulation and conversion utilities.

Key Functions:

HTTP Helpers

Request Helper (Http/RequestHelper.php)

Request environment detection and comprehensive HTTP request analysis utilities.

Key Functions:

Environment Detection:
HTTP Method Analysis:
Request Type Detection:
Client Information:
Content Analysis:
Header Management:
Security and Validation:
Utility Methods:

URL Helper (Http/UrlHelper.php)

Comprehensive URL manipulation, validation, and generation utilities for HTTP requests.

Current URL/URI Methods:
URL Parsing and Validation:
URL Manipulation:
Path Manipulation:
Domain and Host Utilities:
Encoding and Decoding:
URL Conversion and Transformation:
Utility Methods:
Constants:

HTML Helpers

Form Helper (Html/FormHelper.php)

HTML form element generation utilities.

Key Functions:

Attributes Helper (Html/AttributesHelper.php)

A powerful utility class for managing HTML attributes with proper escaping and validation.

Key Features:
Main Methods:

Bootstrap Helper (Html/BootstrapHelper.php)

Bootstrap-specific HTML generation utilities.

Key Functions:

Table Helper (Html/Table/TableHelper.php)

HTML table generation utilities.

Key Functions:

List Helpers

Base List Helper (Html/Lists/BaseListHelper.php)

Base class for HTML list generation.

Key Functions:

Unordered List Helper (Html/Lists/UnorderedListHelper.php)

HTML unordered list generation utilities.

Key Functions:

Ordered List Helper (Html/Lists/OrderedListHelper.php)

HTML ordered list generation utilities.

Key Functions:

Description List Helper (Html/Lists/DescriptionListHelper.php)

HTML description list generation utilities.

Key Functions:

View Helper (View/PHPView.php)

PHP template rendering and view management utilities.

Key Functions:

Network Helper (Validate/NetworkHelper.php)

Network-related validation utilities.

Key Functions:

DNS Operations:
Socket and Port Operations:

Validation Helpers

Expect Helper (Validate/Expect.php)

Type validation utilities that throw exceptions on type mismatches. All methods throw UnexpectedTypeException if the value doesn't match the expected type.

Basic Type Validation:
Special Type Validation:
Built-in PHP Type Validation:

IOExpect Helper (Validate/IOExpect.php)

File system validation utilities that throw exceptions on validation failures. All methods throw IOException if the validation fails.

Path Existence and Type Validation:
Permission Validation:
Directory Content Validation:
File Content and Properties Validation:

Testing

The library includes comprehensive unit tests for all components. Each helper class has a corresponding test class that verifies its functionality:

Run the tests using:

Usage

Contributing

  1. Fork the repository
  2. Create your 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

License

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

Author

Support

If you find this library helpful, please consider giving it a star on GitHub!


All versions of php-helpers with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
ext-mbstring Version *
ext-json Version *
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 andreas-glaser/php-helpers contains the following files

Loading the files please wait ....