PHP Package: spatie/better-types

Better-types is a PHP library that provides improved data types and utility functions for efficient development.

Current Version: 1.0.1
Last Updated: 2025-03-08
PHP Requirement: ^8.2
Dependencies:
phpunit/phpunit
illuminate/support
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Better-types is a powerful PHP library designed to enhance data type handling and offer a wide array of utility functions, ensuring smoother and more reliable development processes. With a focus on flexibility and performance, this library streamlines various tasks, making it an ideal choice for developers seeking optimized solutions. Whether you're managing complex data structures or simplifying routine operations, Better-types offers a suite of tools to elevate your coding experience.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.0.1

Download Download v1.0.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/better-types/1.0.1/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';
require_once 'libs/illuminate/support/12.33.0/loader.php';

use Spatie\BetterTypes\ArrayHelper;
use Illuminate\Support\Str;

$obj = new ArrayHelper();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.