Download the PHP package schenke-io/pretty-php-array without Composer
On this page you can find all versions of the php package schenke-io/pretty-php-array. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download schenke-io/pretty-php-array
More information about schenke-io/pretty-php-array
Files in schenke-io/pretty-php-array
Download schenke-io/pretty-php-array
More information about schenke-io/pretty-php-array
Files in schenke-io/pretty-php-array
Vendor schenke-io
Package pretty-php-array
Short Description Write php array in a pretty way into an file
License MIT
Package pretty-php-array
Short Description Write php array in a pretty way into an file
License MIT
Please rate this library. Is it a good library?
Informations about the package pretty-php-array
WritePrettyArray: A PHP Class for Elegant Configuration File Generation
The WritePrettyArray
class simplifies the creation of
well-formatted PHP configuration files. By automatically
generating human-readable code, it's ideal for storing
data and integrating into CI/CD pipelines.
Key Method: toFile()
Parameters
$filePath
: The desired output file path.$data
: An associative array containing key-value pairs of data to be written.$comments
: An optional associative array where keys correspond to data keys, and values are arrays of comment headers and lines.$header
: An optional string to be added at the beginning of the file.
Comment structure
Comments are associated with specific data keys using the following format:
By using WritePrettyArray, you can:
- Streamline Configuration Management: Easily generate and maintain configuration files.
- Enhance Code Readability: Create well-structured and commented configuration files.
- Integrate into CI/CD: Automate configuration file generation as part of your build process.
All versions of pretty-php-array with dependencies
PHP Build Version
Package Version
The package schenke-io/pretty-php-array contains the following files
Loading the files please wait ....