dragon-code/pretty-array
Framework-agnostic PHP utility to export arrays into a readable, pretty PHP representation. Preserves numeric keys correctly (unlike symfony/var-exporter), making it ideal for generated config/translation files and other array dumps you want to commit or inspect.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| yiisoft/arrays | 0.81 | yiisoft/arrays is a small PHP helper library for working with arrays. It provides safe, convenient methods to get and set values (including nested paths), filter and merge data, and simplify common array operations in Yii and any PHP project. | 56 | 57 | 29 | 58K | 4 | 13.5 | 46.5 | BSD-3-Clause | 6 months ago | |
| laragraph/utils | 0.81 | Laravel utilities for building GraphQL servers: shared primitives and helpers used by GraphQL packages. Install via Composer and use as a lightweight foundation for SDL-first (Lighthouse) or code-first (graphql-laravel) setups. | 21 | 21 | 8 | 555K | 0 | 20.2 | 62.6 | MIT | 3 months ago | |
| phpmd/phpmd | 0.80 | PHPMD (PHP Mess Detector) scans PHP code for potential problems like overly complex methods, unused parameters, and suspicious code. It’s a CLI tool with configurable rulesets, Baseline support, and CI-friendly output formats to keep codebases clean. | 2,426 | 2,503 | 351 | 2M | 68 | 45.5 | 60.6 | BSD-3-Clause | 2 years ago | |
| illuminate/support | 0.80 | — | 582 | 629 | 157 | 2M | 0 | 7.6 | 48.5 | MIT | — | |
| nilportugues/sql-query-formatter | 0.79 | Lightweight PHP SQL formatter that turns messy, computer-generated queries into clean, human-readable plain text. Preserves data-binding placeholders like :variable and ? while reformatting, making SQL easier to read and debug without adding colors or markup. | 38 | 39 | 8 | 14K | 1 | 2.0 | 35.2 | MIT | 10 years ago | |
| camspiers/json-pretty | 0.78 | Pretty-print JSON in PHP 5.3. camspiers/json-pretty provides a simple JsonPretty class with a prettify() method to format arrays/JSON into readable, indented output. Install via Composer and use in a few lines. | 22 | 23 | 8 | 6K | 1 | 0.7 | 23.6 | MIT | 10 years ago | |
| novadaemon/filament-pretty-json | 0.78 | — | 47 | 46 | 14 | 36K | 1 | 0.8 | 39.6 | MIT | — | |
| mmoreram/php-formatter | 0.78 | PHP code formatter with CLI and configurable rules to standardize style across a project. Formats files or entire directories, helps enforce clean, consistent code, and integrates easily into development workflows and CI. | 168 | 169 | 17 | 2K | 2 | 3.0 | 10.7 | MIT | 8 years ago | |
| alexmanno/serializer | 0.77 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | Apache-2.0 | — | |
| jfcherng/php-diff | 0.76 | PHP library to generate diffs between two strings with multiple renderers: unified/context/text, JSON, and rich HTML (inline, side-by-side, combined). Includes helper CSS (or your own) and customizable differ/renderer options. Requires PHP 8.3+ and ext-iconv. | 474 | 475 | 51 | 208K | 5 | 31.9 | 43.5 | BSD-3-Clause | 2 months ago | |
| webignition/json-pretty-print | 0.76 | Pretty-print JSON strings with consistent, readable formatting. Includes a formatter you can embed in tools or CLIs to clean up minified or messy JSON, with sensible indentation and whitespace handling for clearer diffs, logs, and debugging output. | 13 | 14 | 3 | 569 | 0 | 0.2 | 22.4 | MIT | — | |
| digitalrevolution/utils | 0.76 | — | 1 | 1 | 8 | 3K | 1 | 27.6 | 51.6 | MIT | 1 month ago | |
| andrew-gos/serializer | 0.76 | Extensible PHP 8.2+ serializer that normalizes arrays/objects and encodes to JSON or XML. Register custom normalizers and encoders via a configurable Serializer. Pure encoders avoid mutating input and handle XML duplication/circular references. | 0 | 0 | 0 | 31 | 0 | 6.1 | 20.3 | MIT | 9 months ago | |
| respect/string-formatter | 0.76 | Flexible PHP string formatting library with chainable formatters and templated placeholders. Mask, pattern, date, number, and more to transform/format values (e.g., credit cards, phones, amounts) via FormatterBuilder or PlaceholderFormatter modifiers. | 4 | 3 | 2 | 3K | 2 | 17.6 | 43.5 | ISC | 3 months ago | |
| spatie/array-to-xml | 0.76 | Simple PHP utility to convert arrays into XML strings. Supports custom root element names and configurable key handling (e.g., converting spaces to underscores). Ideal for quickly generating XML output from structured array data. | 0 | 1,221 | — | 2M | — | 32.4 | 48.4 | — | — | |
| doctrine/sql-formatter | 0.76 | Formats SQL queries into readable, consistently indented output. Helps debug logs, review generated SQL, and improve diffs by standardizing whitespace and keywords. Supports multiple SQL dialect features and runs as a lightweight PHP library. | 1,868 | 1,873 | 27 | 5M | 9 | 31.1 | 57.0 | MIT | 3 months ago |
How can I help you explore Laravel packages today?