Download the PHP package farzai/support without Composer
On this page you can find all versions of the php package farzai/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download farzai/support
More information about farzai/support
Files in farzai/support
Package support
Short Description A collection of useful PHP functions, helpers, and classes.
License MIT
Homepage https://github.com/farzai/support-php
Informations about the package support
Support Package - PHP
A collection of useful PHP helper functions and utilities with full type safety and comprehensive documentation.
Features
- 🔒 Fully Typed - Complete PHP 8.0+ type declarations for enhanced IDE support
- 📝 Well Documented - Comprehensive PHPDoc comments with examples
- ✅ Thoroughly Tested - High test coverage with edge case testing
- 🔍 Static Analysis - PHPStan Level 8 compliant
- 🎯 Zero Dependencies - Only requires Carbon for date/time utilities
- 🌐 UTF-8 Safe - Multi-byte string operations throughout
Requirements
- PHP 8.0 or higher
- ext-mbstring
Installation
You can install the package via composer:
Table of Contents
- Array Utilities
- String Utilities
- Date/Time Utilities
- Helper Functions
Array Utilities
The Arr class provides utilities for working with arrays using dot notation.
get()
Get an item from an array using dot notation:
exists()
Check if a key exists in an array using dot notation:
accessible()
Check if a value is array accessible:
String Utilities
The Str class provides a rich set of string manipulation methods.
Case Conversion
Case Checking
String Operations
Random String Generation
All random methods use cryptographically secure randomness:
Date/Time Utilities
The Carbon class extends the popular Carbon library with additional convenience methods.
Creating Instances
Date Checking
Date Formatting
Day Boundaries
Date Differences
Helper Functions
Global helper functions in the Farzai\Support namespace.
tap()
Execute a callback on a value and return the value:
now()
Get the current date/time:
class_basename()
Get the class name without namespace:
Development
Running Tests
Running Tests with Coverage
Code Formatting
Static Analysis
Run All Checks
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- parsilver
- All Contributors
License
The MIT License (MIT). Please see License File for more information.