php-standard-library/os
Type-safe OS detection for PHP via an OperatingSystemFamily enum. Quickly identify Windows, macOS, Linux, and more without brittle string checks. Part of PHP Standard Library; lightweight and focused on reliable environment detection.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-standard-library/php-standard-library | 0.85 | PSL is a modern standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers consistent, well-typed APIs for async, collections, I/O, networking, crypto, terminal UI, and more—safer alternatives to built-ins with predictable errors and async-ready design. | 1,543 | 1,544 | 87 | 254K | 21 | 46.2 | 44.0 | MIT | 2 weeks ago | |
| boson-php/os-info | 0.81 | Lightweight PHP library to detect and describe the current operating system, exposing basic OS name/version/arch details for CLI and server environments. Useful for cross-platform scripts, installers, and runtime diagnostics. | 1 | 1 | 0 | 55 | 0 | 0.0 | 20.1 | MIT | — | |
| fi/osbundle | 0.80 | OsBundle (fi/osbundle) is a Symfony bundle providing integration components for Comune di Firenze projects. Install via Composer and add PSR-4 autoload mapping Fi\OsBundle\ to vendor/fi/osbundle, then require version 2.0.*. | 0 | 0 | 0 | 97 | 0 | 0.0 | 27.5 | — | — | |
| sebastian/environment | 0.79 | sebastian/environment helps PHP developers detect runtime details (PHP vs HHVM, OS, architecture, 32/64-bit, debugging extensions) to choose runtime-specific execution paths. Commonly used by testing tools to adapt behavior to the environment. | 6,776 | 6,786 | 37 | 13M | 1 | 51.9 | 53.9 | BSD-3-Clause | 1 week ago | |
| elao/enum | 0.79 | Opinionated extensions for PHP 8.1+ native enums with readable labels, flag/bitmask enums, and extra values. Includes integrations for Symfony (Forms, HTTP Kernel arg resolver, Translation, VarDumper), Doctrine ORM/ODM, and Faker. | 328 | 326 | 30 | 36K | 15 | 33.1 | 38.4 | MIT | 1 month ago | |
| php-standard-library/filesystem | 0.78 | Type-safe filesystem utilities for PHP Standard Library. Perform common file and directory operations with consistent APIs and proper exception handling, improving safety and clarity over raw PHP functions. Documentation and contribution links included. | 1 | 1 | 0 | 21K | 0 | 21.2 | 64.9 | MIT | 2 weeks ago | |
| php-standard-library/locale | 0.78 | PHP Standard Library Locale component providing locale-aware formatting and parsing utilities. Helps handle language/region settings, localized dates, numbers, and other internationalization tasks in PHP apps with a lightweight, straightforward API. | 1 | 1 | 0 | 28K | 0 | 21.2 | 64.9 | MIT | 2 weeks ago | |
| paillechat/php-enum | 0.78 | PHP 7+ enum library: define enums by extending Enum and declaring constants, then instantiate via static named calls (IssueType::ONE()). Instances are strict-equal singletons, work with in_array/type hints, and can convert to/from names. | 16 | 17 | 3 | 468 | 0 | 2.0 | 20.1 | MIT | 7 years ago | |
| php-standard-library/env | 0.77 | Tiny PHP utility for reading environment variables with sensible defaults and type casting. Helps centralize access to config via env(), supports required keys, fallback values, and safe handling when variables are missing or empty. | 0 | 0 | 0 | 12K | 0 | 21.2 | 64.8 | MIT | 2 weeks ago | |
| php-standard-library/type | 0.76 | Runtime type validation for PHP using “Parse, Don’t Validate”: coerce and assert unstructured input into well-typed data. Useful for APIs, configs, and user input with clear parsing rules, assertions, and predictable failures. | 1 | 1 | 0 | 31K | 0 | 21.2 | 64.8 | MIT | 2 weeks ago | |
| adrenalinkin/enum-mapper | 0.76 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| open-southeners/extended-php | 0.76 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 82 | 0 | 15.2 | 28.4 | MIT | 7 months ago | |
| php-school/terminal | 0.75 | php-school/terminal is a PHP library for building interactive terminal apps. It provides input/output helpers, ANSI styling, cursor control, and terminal state management, making it easy to create rich CLI UIs with prompts, menus, and formatted output. | 21 | 21 | 6 | 13K | 2 | 1.5 | 38.8 | — | 6 years ago | |
| wyrihaximus/test-utilities | 0.75 | A set of PHP test utilities for package development: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-made configuration defaults for PHPStan and Rector (paths and docblock-to-attribute conversions). | 7 | 7 | 1 | 51K | 6 | 29.9 | 65.4 | MIT | 1 month ago | |
| zetacomponents/system-information | 0.75 | Provides access to system and environment information via the eZ Components/Zeta Components library. Query OS details, hardware and memory stats, CPU and uptime, network interfaces, load, and related runtime metrics for monitoring or diagnostics in PHP apps. | 22 | 26 | 9 | 23K | 0 | 0.4 | 41.3 | NOASSERTION | — | |
| lasserafn/php-string-script-language | 0.74 | Detect which writing system a string uses with a simple PHP API. Check if text contains Arabic, Latin, Cyrillic, Thai, Han/Chinese, Japanese (Hiragana/Katakana), and many more scripts via boolean helpers like StringScript::isThai($text). | 20 | 22 | 1 | 81K | 0 | 1.3 | 49.5 | MIT | 2 years ago | |
| sokil/php-isocodes-db-only | 0.72 | Database-only package for sokil/php-isocodes: ISO 3166-1 countries, 3166-2 subdivisions, 639-3 languages, 4217 currencies, and 15924 scripts. No i18n/localized names. Updated monthly (2nd day). | 3 | 3 | 0 | 26K | 0 | 14.3 | 58.1 | MIT | 5 months ago |
How can I help you explore Laravel packages today?