diff --git a/.docheader b/.docheader index 5602c914..52654312 100644 --- a/.docheader +++ b/.docheader @@ -1,5 +1,5 @@ /** - * @see https://github.com/zendframework/zend-config for the canonical source repository - * @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (http://www.zend.com) - * @license https://github.com/zendframework/zend-config/blob/master/LICENSE.md New BSD License + * @see https://github.com/laminas/laminas-config for the canonical source repository + * @copyright https://github.com/laminas/laminas-config/blob/master/COPYRIGHT.md + * @license https://github.com/laminas/laminas-config/blob/master/LICENSE.md New BSD License */ diff --git a/.gitattributes b/.gitattributes index 5d72b06d..aa0971a2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,7 +3,6 @@ /.gitattributes export-ignore /.gitignore export-ignore /.travis.yml export-ignore -/composer.lock export-ignore /docs/ export-ignore /mkdocs.yml export-ignore /phpcs.xml export-ignore diff --git a/.gitignore b/.gitignore index 245087af..87904ecb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ /clover.xml +/composer.lock /coveralls-upload.json /docs/html/ +/laminas-mkdoc-theme.tgz +/laminas-mkdoc-theme/ /phpunit.xml /vendor/ -/zf-mkdoc-theme.tgz -/zf-mkdoc-theme/ diff --git a/.travis.yml b/.travis.yml index 771f905e..44e42121 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,30 +8,23 @@ env: global: - COMPOSER_ARGS="--no-interaction" - COVERAGE_DEPS="php-coveralls/php-coveralls" - - TESTS_ZEND_CONFIG_YAML_ENABLED=true - - TESTS_ZEND_CONFIG_YAML_LIB_INCLUDE="Spyc.php" - - TESTS_ZEND_CONFIG_WRITER_YAML_CALLBACK="Spyc::YAMLDump" - - TESTS_ZEND_CONFIG_READER_YAML_CALLBACK="Spyc::YAMLLoadString" + - TESTS_LAMINAS_CONFIG_YAML_ENABLED=true + - TESTS_LAMINAS_CONFIG_YAML_LIB_INCLUDE="Spyc.php" + - TESTS_LAMINAS_CONFIG_WRITER_YAML_CALLBACK="Spyc::YAMLDump" + - TESTS_LAMINAS_CONFIG_READER_YAML_CALLBACK="Spyc::YAMLLoadString" matrix: + fast_finish: true include: - php: 5.6 env: - DEPS=lowest - - php: 5.6 - env: - - DEPS=locked - - LEGACY_DEPS="phpunit/phpunit" - php: 5.6 env: - DEPS=latest - php: 7 env: - DEPS=lowest - - php: 7 - env: - - DEPS=locked - - LEGACY_DEPS="phpunit/phpunit" - php: 7 env: - DEPS=latest @@ -40,27 +33,18 @@ matrix: - DEPS=lowest - php: 7.1 env: - - DEPS=locked + - DEPS=latest - CS_CHECK=true - TEST_COVERAGE=true - - php: 7.1 - env: - - DEPS=latest - php: 7.2 env: - DEPS=lowest - - php: 7.2 - env: - - DEPS=locked - php: 7.2 env: - DEPS=latest - php: 7.3 env: - DEPS=lowest - - php: 7.3 - env: - - DEPS=locked - php: 7.3 env: - DEPS=latest diff --git a/CHANGELOG.md b/CHANGELOG.md index c0f6ca30..3e9c36b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,12 +28,12 @@ All notable changes to this project will be documented in this file, in reverse ### Added -- [#54](https://github.com/zendframework/zend-config/pull/54) adds support for PHP 7.3. -- [#58](https://github.com/zendframework/zend-config/pull/58) adds +- [zendframework/zend-config#54](https://github.com/zendframework/zend-config/pull/54) adds support for PHP 7.3. +- [zendframework/zend-config#58](https://github.com/zendframework/zend-config/pull/58) adds `$processSections` to INI reader, allowing control over whether sections should be parsed or not -- [#63](https://github.com/zendframework/zend-config/pull/63) adds .yml to - Zend\Config\Factory as an alternative extension for yaml +- [zendframework/zend-config#63](https://github.com/zendframework/zend-config/pull/63) adds .yml to + Laminas\Config\Factory as an alternative extension for yaml ### Changed @@ -55,11 +55,11 @@ All notable changes to this project will be documented in this file, in reverse ### Added -- [#47](https://github.com/zendframework/zend-config/pull/47) adds `Zend\Config\Writer\JavaProperties`, a complement to - `Zend\Config\Reader\JavaProperties`, for writing JavaProperties files from configuration. The writer supports +- [zendframework/zend-config#47](https://github.com/zendframework/zend-config/pull/47) adds `Laminas\Config\Writer\JavaProperties`, a complement to + `Laminas\Config\Reader\JavaProperties`, for writing JavaProperties files from configuration. The writer supports specifying an alternate key/value delimiter (the default is ":") via the constructor. -- [#46](https://github.com/zendframework/zend-config/pull/46) adds a constructor option to the JavaProperties reader to allow +- [zendframework/zend-config#46](https://github.com/zendframework/zend-config/pull/46) adds a constructor option to the JavaProperties reader to allow users to indicate keys and values from the configuration should be trimmed of whitespace: ```php @@ -69,10 +69,10 @@ All notable changes to this project will be documented in this file, in reverse ); ``` -- [#45](https://github.com/zendframework/zend-config/pull/45) adds the ability to specify an alternate key/value delimiter to +- [zendframework/zend-config#45](https://github.com/zendframework/zend-config/pull/45) adds the ability to specify an alternate key/value delimiter to the JavaProperties config reader via the constructor: `$reader = new JavaProperties("=");`. -- [#42](https://github.com/zendframework/zend-config/pull/42) adds support for PHP 7.1 and 7.2. +- [zendframework/zend-config#42](https://github.com/zendframework/zend-config/pull/42) adds support for PHP 7.1 and 7.2. ### Changed @@ -84,7 +84,7 @@ All notable changes to this project will be documented in this file, in reverse ### Removed -- [#42](https://github.com/zendframework/zend-config/pull/42) removes support for HHVM. +- [zendframework/zend-config#42](https://github.com/zendframework/zend-config/pull/42) removes support for HHVM. ### Fixed @@ -94,12 +94,12 @@ All notable changes to this project will be documented in this file, in reverse ### Added -- [#37](https://github.com/zendframework/zend-config/pull/37) adds a new method, +- [zendframework/zend-config#37](https://github.com/zendframework/zend-config/pull/37) adds a new method, `enableKeyProcessing()`, and constructor argument, `$enableKeyProcessing = false`, to each of the `Token` and `Constant` processors. These allow enabling processing of tokens and/or constants encountered in configuration key values. -- [#37](https://github.com/zendframework/zend-config/pull/37) adds the ability +- [zendframework/zend-config#37](https://github.com/zendframework/zend-config/pull/37) adds the ability for the `Constant` processor to process class constants, including the `::class` pseudo-constant. @@ -119,41 +119,41 @@ All notable changes to this project will be documented in this file, in reverse ### Added -- [#36](https://github.com/zendframework/zend-config/pull/36) adds support for +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) adds support for [PSR-11](http://www.php-fig.org/psr/psr-11/). -- [#36](https://github.com/zendframework/zend-config/pull/36) adds the class - `Zend\Config\StandaloneReaderPluginManager` for managing config reader plugins. +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) adds the class + `Laminas\Config\StandaloneReaderPluginManager` for managing config reader plugins. This implementation implements the PSR-11 `ContainerInterface`, and uses a hard-coded list of reader plugins. -- [#36](https://github.com/zendframework/zend-config/pull/36) adds the class - `Zend\Config\StandaloneWriterPluginManager` for managing config writer plugins. +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) adds the class + `Laminas\Config\StandaloneWriterPluginManager` for managing config writer plugins. This implementation implements the PSR-11 `ContainerInterface`, and uses a hard-coded list of writer plugins. ### Changes -- [#36](https://github.com/zendframework/zend-config/pull/36) updates the - `Zend\Config\Factory::getReaderPluginManager()` method to lazy-load a +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) updates the + `Laminas\Config\Factory::getReaderPluginManager()` method to lazy-load a `StandaloneReaderPluginManager` by default, instead of a `ReaderPluginManager`, allowing usage out-of-the-box without requiring - zend-servicemanager. + laminas-servicemanager. -- [#36](https://github.com/zendframework/zend-config/pull/36) updates the - `Zend\Config\Factory::setReaderPluginManager()` method to typehint against +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) updates the + `Laminas\Config\Factory::setReaderPluginManager()` method to typehint against `Psr\Container\ContainerInterface` instead of `ReaderPluginManager`. If you were extending and overriding that method, you will need to update your signature. -- [#36](https://github.com/zendframework/zend-config/pull/36) updates the - `Zend\Config\Factory::getWriterPluginManager()` method to lazy-load a +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) updates the + `Laminas\Config\Factory::getWriterPluginManager()` method to lazy-load a `StandaloneWriterPluginManager` by default, instead of a `WriterPluginManager`, allowing usage out-of-the-box without requiring - zend-servicemanager. + laminas-servicemanager. -- [#36](https://github.com/zendframework/zend-config/pull/36) updates the - `Zend\Config\Factory::setWriterPluginManager()` method to typehint against +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) updates the + `Laminas\Config\Factory::setWriterPluginManager()` method to typehint against `Psr\Container\ContainerInterface` instead of `WriterPluginManager`. If you were extending and overriding that method, you will need to update your signature. @@ -164,8 +164,8 @@ All notable changes to this project will be documented in this file, in reverse ### Removed -- [#36](https://github.com/zendframework/zend-config/pull/36) removes usage of - zend-json as a JSON de/serializer in the JSON writer and reader; the +- [zendframework/zend-config#36](https://github.com/zendframework/zend-config/pull/36) removes usage of + laminas-json as a JSON de/serializer in the JSON writer and reader; the component now requires ext/json is installed to use these features. ### Fixed @@ -176,12 +176,12 @@ All notable changes to this project will be documented in this file, in reverse ### Added -- [#6](https://github.com/zendframework/zend-config/pull/6) adds the ability for +- [zendframework/zend-config#6](https://github.com/zendframework/zend-config/pull/6) adds the ability for the `PhpArray` writer to optionally translate strings that evaluate to known classes to `ClassName::class` syntax; the feature works for both keys and values. -- [#21](https://github.com/zendframework/zend-config/pull/21) adds revised - documentation, and publishes it to https://zendframework.github.io/zend-config/ +- [zendframework/zend-config#21](https://github.com/zendframework/zend-config/pull/21) adds revised + documentation, and publishes it to https://docs.laminas.dev/laminas-config/ ### Deprecated @@ -193,11 +193,11 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- [#8](https://github.com/zendframework/zend-config/pull/8), - [#18](https://github.com/zendframework/zend-config/pull/18), and - [#20](https://github.com/zendframework/zend-config/pull/20) update the +- [zendframework/zend-config#8](https://github.com/zendframework/zend-config/pull/8), + [zendframework/zend-config#18](https://github.com/zendframework/zend-config/pull/18), and + [zendframework/zend-config#20](https://github.com/zendframework/zend-config/pull/20) update the code base to make it forwards-compatible with the v3.0 versions of - zend-stdlib and zend-servicemanager. Primarily, this involved: + laminas-stdlib and laminas-servicemanager. Primarily, this involved: - Updating the `AbstractConfigFactory` to implement the new methods in the v3 `AbstractFactoryInterface` definition, and updating the v2 methods to proxy to those. @@ -207,5 +207,5 @@ All notable changes to this project will be documented in this file, in reverse the new `InvokableFactory`); additionally, they each now implement both `validatePlugin()` from v2 and `validate()` from v3. - Pinning to stable versions of already updated components. - - Selectively omitting zend-i18n-reliant tests when testing against - zend-servicemanager v3. + - Selectively omitting laminas-i18n-reliant tests when testing against + laminas-servicemanager v3. diff --git a/COPYRIGHT.md b/COPYRIGHT.md new file mode 100644 index 00000000..c4fc4fee --- /dev/null +++ b/COPYRIGHT.md @@ -0,0 +1,2 @@ +Copyright (c) 2019, Laminas Foundation. +All rights reserved. (https://getlaminas.org/) diff --git a/LICENSE.md b/LICENSE.md index d44ab5dc..09f53edc 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,19 +1,19 @@ -Copyright (c) 2005-2018, Zend Technologies USA, Inc. +Copyright (c) 2019, Laminas Foundation All rights reserved. -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -- Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or - other materials provided with the distribution. +- Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -- Neither the name of Zend Technologies USA, Inc. nor the names of its - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. +- Neither the name of Laminas Foundation nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED diff --git a/README.md b/README.md index af9b930e..c80fb109 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# zend-config +# laminas-config -[![Build Status](https://secure.travis-ci.org/zendframework/zend-config.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-config) -[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-config/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-config?branch=master) +[![Build Status](https://travis-ci.org/laminas/laminas-config.svg?branch=master)](https://travis-ci.org/laminas/laminas-config) +[![Coverage Status](https://coveralls.io/repos/github/laminas/laminas-config/badge.svg?branch=master)](https://coveralls.io/github/laminas/laminas-config?branch=master) -zend-config is designed to simplify access to configuration data within +laminas-config is designed to simplify access to configuration data within applications. It provides a nested object property-based user interface for accessing this configuration data within application code. The configuration data may come from a variety of media supporting hierarchical data storage. -- File issues at https://github.com/zendframework/zend-config/issues -- Documentation is at https://docs.zendframework.com/zend-config/ +- File issues at https://github.com/laminas/laminas-config/issues +- Documentation is at https://docs.laminas.dev/laminas-config/ diff --git a/composer.json b/composer.json index 4bc32edc..de6012f2 100644 --- a/composer.json +++ b/composer.json @@ -1,59 +1,60 @@ { - "name": "zendframework/zend-config", + "name": "laminas/laminas-config", "description": "provides a nested object property based user interface for accessing this configuration data within application code", "license": "BSD-3-Clause", "keywords": [ - "zf", - "zendframework", + "laminas", "config" ], + "homepage": "https://laminas.dev", "support": { - "docs": "https://docs.zendframework.com/zend-config/", - "issues": "https://github.com/zendframework/zend-config/issues", - "source": "https://github.com/zendframework/zend-config", - "rss": "https://github.com/zendframework/zend-config/releases.atom", - "chat": "https://zendframework-slack.herokuapp.com", - "forum": "https://discourse.zendframework.com/c/questions/components" + "docs": "https://docs.laminas.dev/laminas-config/", + "issues": "https://github.com/laminas/laminas-config/issues", + "source": "https://github.com/laminas/laminas-config", + "rss": "https://github.com/laminas/laminas-config/releases.atom", + "chat": "https://laminas.dev/chat", + "forum": "https://discourse.laminas.dev" + }, + "config": { + "sort-packages": true + }, + "extra": { + "branch-alias": { + "dev-master": "3.3.x-dev", + "dev-develop": "3.4.x-dev" + } }, "require": { "php": "^5.6 || ^7.0", "ext-json": "*", - "zendframework/zend-stdlib": "^2.7.7 || ^3.1", + "laminas/laminas-stdlib": "^2.7.7 || ^3.1", + "laminas/laminas-zendframework-bridge": "^1.0", "psr/container": "^1.0" }, "require-dev": { + "laminas/laminas-coding-standard": "~1.0.0", + "laminas/laminas-filter": "^2.7.2", + "laminas/laminas-i18n": "^2.7.4", + "laminas/laminas-servicemanager": "^2.7.8 || ^3.3", "malukenho/docheader": "^0.1.6", - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2", - "zendframework/zend-coding-standard": "~1.0.0", - "zendframework/zend-filter": "^2.7.2", - "zendframework/zend-i18n": "^2.7.4", - "zendframework/zend-servicemanager": "^2.7.8 || ^3.3" + "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2" }, "conflict": { "container-interop/container-interop": "<1.2.0" }, "suggest": { - "zendframework/zend-filter": "^2.7.2; install if you want to use the Filter processor", - "zendframework/zend-i18n": "^2.7.4; install if you want to use the Translator processor", - "zendframework/zend-servicemanager": "^2.7.8 || ^3.3; if you need an extensible plugin manager for use with the Config Factory" + "laminas/laminas-filter": "^2.7.2; install if you want to use the Filter processor", + "laminas/laminas-i18n": "^2.7.4; install if you want to use the Translator processor", + "laminas/laminas-servicemanager": "^2.7.8 || ^3.3; if you need an extensible plugin manager for use with the Config Factory" }, "autoload": { "psr-4": { - "Zend\\Config\\": "src/" + "Laminas\\Config\\": "src/" } }, "autoload-dev": { "psr-4": { - "ZendTest\\Config\\": "test/" - } - }, - "config": { - "sort-packages": true - }, - "extra": { - "branch-alias": { - "dev-master": "3.3.x-dev", - "dev-develop": "3.4.x-dev" + "LaminasTest\\Config\\": "test/" } }, "scripts": { @@ -67,5 +68,8 @@ "test": "phpunit --colors=always", "test-coverage": "phpunit --colors=always --coverage-clover clover.xml", "license-check": "docheader check src/" + }, + "replace": { + "zendframework/zend-config": "self.version" } } diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 50cc84c9..00000000 --- a/composer.lock +++ /dev/null @@ -1,2228 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "1d1ae0b765714f40c27a14b577d1845e", - "packages": [ - { - "name": "psr/container", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "time": "2017-02-14T16:28:37+00:00" - }, - { - "name": "zendframework/zend-stdlib", - "version": "3.1.0", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-stdlib.git", - "reference": "debedcfc373a293f9250cc9aa03cf121428c8e78" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-stdlib/zipball/debedcfc373a293f9250cc9aa03cf121428c8e78", - "reference": "debedcfc373a293f9250cc9aa03cf121428c8e78", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0" - }, - "require-dev": { - "athletic/athletic": "~0.1", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "^2.6.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1-dev", - "dev-develop": "3.2-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\Stdlib\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "homepage": "https://github.com/zendframework/zend-stdlib", - "keywords": [ - "stdlib", - "zf2" - ], - "time": "2016-09-13T14:38:50+00:00" - } - ], - "packages-dev": [ - { - "name": "container-interop/container-interop", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/container-interop/container-interop.git", - "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8", - "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8", - "shasum": "" - }, - "require": { - "psr/container": "^1.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Interop\\Container\\": "src/Interop/Container/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Promoting the interoperability of container objects (DIC, SL, etc.)", - "homepage": "https://github.com/container-interop/container-interop", - "time": "2017-02-14T19:40:03+00:00" - }, - { - "name": "doctrine/instantiator", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", - "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", - "shasum": "" - }, - "require": { - "php": "^7.1" - }, - "require-dev": { - "athletic/athletic": "~0.1.8", - "ext-pdo": "*", - "ext-phar": "*", - "phpunit/phpunit": "^6.2.3", - "squizlabs/php_codesniffer": "^3.0.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", - "keywords": [ - "constructor", - "instantiate" - ], - "time": "2017-07-22T11:58:36+00:00" - }, - { - "name": "malukenho/docheader", - "version": "0.1.6", - "source": { - "type": "git", - "url": "https://github.com/malukenho/docheader.git", - "reference": "b3857387fe5e6b0928b67875ea09ebb5745d5b8b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/malukenho/docheader/zipball/b3857387fe5e6b0928b67875ea09ebb5745d5b8b", - "reference": "b3857387fe5e6b0928b67875ea09ebb5745d5b8b", - "shasum": "" - }, - "require": { - "php": "~5.5|^7.0", - "symfony/console": "~2.0|^3.0", - "symfony/finder": "~2.0|^3.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.7", - "squizlabs/php_codesniffer": "^2.8" - }, - "bin": [ - "bin/docheader" - ], - "type": "library", - "autoload": { - "psr-4": { - "DocHeader\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jefersson Nathan", - "email": "malukenho@phpse.net" - } - ], - "description": "A small library to check header docs", - "homepage": "https://github.com/malukenho/docheader", - "keywords": [ - "Code style", - "code standard", - "license" - ], - "time": "2017-05-03T05:22:55+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.7.0", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", - "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0" - }, - "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^4.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, - "files": [ - "src/DeepCopy/deep_copy.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "time": "2017-10-19T19:58:43+00:00" - }, - { - "name": "phar-io/manifest", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", - "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-phar": "*", - "phar-io/version": "^1.0.1", - "php": "^5.6 || ^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2017-03-05T18:14:27+00:00" - }, - { - "name": "phar-io/version", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", - "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Library for handling version information and constraints", - "time": "2017-03-05T17:38:23+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", - "shasum": "" - }, - "require": { - "php": ">=5.5" - }, - "require-dev": { - "phpunit/phpunit": "^4.6" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "time": "2017-09-11T18:02:19+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "4.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "94fd0001232e47129dd3504189fa1c7225010d08" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", - "reference": "94fd0001232e47129dd3504189fa1c7225010d08", - "shasum": "" - }, - "require": { - "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0", - "phpdocumentor/type-resolver": "^0.4.0", - "webmozart/assert": "^1.0" - }, - "require-dev": { - "doctrine/instantiator": "~1.0.5", - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^6.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-11-30T07:14:17+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "0.4.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", - "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", - "shasum": "" - }, - "require": { - "php": "^5.5 || ^7.0", - "phpdocumentor/reflection-common": "^1.0" - }, - "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^5.2||^4.8.24" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "time": "2017-07-14T14:27:02+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "1.7.5", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/dfd6be44111a7c41c2e884a336cc4f461b3b2401", - "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", - "sebastian/comparator": "^1.1|^2.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0" - }, - "require-dev": { - "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.7.x-dev" - } - }, - "autoload": { - "psr-0": { - "Prophecy\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "time": "2018-02-19T10:16:54+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "6.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "774a82c0c5da4c1c7701790c262035d235ab7856" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/774a82c0c5da4c1c7701790c262035d235ab7856", - "reference": "774a82c0c5da4c1c7701790c262035d235ab7856", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-xmlwriter": "*", - "php": "^7.1", - "phpunit/php-file-iterator": "^1.4.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.0", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^3.1", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0" - }, - "suggest": { - "ext-xdebug": "^2.6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2018-04-06T15:39:20+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2017-11-27T13:52:08+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2015-06-21T13:50:34+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b8454ea6958c3dee38453d3bd571e023108c91f", - "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f", - "shasum": "" - }, - "require": { - "php": "^7.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2018-02-01T13:07:23+00:00" - }, - { - "name": "phpunit/php-token-stream", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/21ad88bbba7c3d93530d93994e0a33cd45f02ace", - "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": "^7.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "time": "2018-02-01T13:16:43+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "7.1.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "6a17c170fb92845896e1b3b00fcb462cd4b3c017" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6a17c170fb92845896e1b3b00fcb462cd4b3c017", - "reference": "6a17c170fb92845896e1b3b00fcb462cd4b3c017", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "myclabs/deep-copy": "^1.6.1", - "phar-io/manifest": "^1.0.1", - "phar-io/version": "^1.0", - "php": "^7.1", - "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^6.0.1", - "phpunit/php-file-iterator": "^1.4.3", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.0", - "phpunit/phpunit-mock-objects": "^6.1", - "sebastian/comparator": "^2.1", - "sebastian/diff": "^3.0", - "sebastian/environment": "^3.1", - "sebastian/exporter": "^3.1", - "sebastian/global-state": "^2.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^1.0", - "sebastian/version": "^2.0.1" - }, - "require-dev": { - "ext-pdo": "*" - }, - "suggest": { - "ext-xdebug": "*", - "phpunit/php-invoker": "^2.0" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "7.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2018-04-10T11:40:22+00:00" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "6.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/70c740bde8fd9ea9ea295be1cd875dd7b267e157", - "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.5", - "php": "^7.1", - "phpunit/php-text-template": "^1.2.1", - "sebastian/exporter": "^3.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "time": "2018-04-11T04:50:36+00:00" - }, - { - "name": "psr/log", - "version": "1.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2016-10-10T12:19:37+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", - "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "time": "2017-03-04T06:30:41+00:00" - }, - { - "name": "sebastian/comparator", - "version": "2.1.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", - "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", - "shasum": "" - }, - "require": { - "php": "^7.0", - "sebastian/diff": "^2.0 || ^3.0", - "sebastian/exporter": "^3.1" - }, - "require-dev": { - "phpunit/phpunit": "^6.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "time": "2018-02-01T13:46:46+00:00" - }, - { - "name": "sebastian/diff", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/e09160918c66281713f1c324c1f4c4c3037ba1e8", - "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8", - "shasum": "" - }, - "require": { - "php": "^7.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0", - "symfony/process": "^2 || ^3.3 || ^4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], - "time": "2018-02-01T13:45:15+00:00" - }, - { - "name": "sebastian/environment", - "version": "3.1.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5", - "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5", - "shasum": "" - }, - "require": { - "php": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "time": "2017-07-01T08:51:00+00:00" - }, - { - "name": "sebastian/exporter", - "version": "3.1.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "234199f4528de6d12aaa58b612e98f7d36adb937" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937", - "reference": "234199f4528de6d12aaa58b612e98f7d36adb937", - "shasum": "" - }, - "require": { - "php": "^7.0", - "sebastian/recursion-context": "^3.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2017-04-03T13:19:02+00:00" - }, - { - "name": "sebastian/global-state", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", - "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", - "shasum": "" - }, - "require": { - "php": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "time": "2017-04-27T15:39:26+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5", - "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5", - "shasum": "" - }, - "require": { - "php": "^7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2017-08-03T12:35:26+00:00" - }, - { - "name": "sebastian/object-reflector", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "773f97c67f28de00d397be301821b06708fca0be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", - "reference": "773f97c67f28de00d397be301821b06708fca0be", - "shasum": "" - }, - "require": { - "php": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "time": "2017-03-29T09:07:27+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", - "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", - "shasum": "" - }, - "require": { - "php": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2017-03-03T06:23:57+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "shasum": "" - }, - "require": { - "php": ">=5.6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2015-07-28T20:34:47+00:00" - }, - { - "name": "sebastian/version", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2016-10-03T07:35:21+00:00" - }, - { - "name": "squizlabs/php_codesniffer", - "version": "2.9.1", - "source": { - "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62", - "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62", - "shasum": "" - }, - "require": { - "ext-simplexml": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": ">=5.1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "bin": [ - "scripts/phpcs", - "scripts/phpcbf" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - } - }, - "autoload": { - "classmap": [ - "CodeSniffer.php", - "CodeSniffer/CLI.php", - "CodeSniffer/Exception.php", - "CodeSniffer/File.php", - "CodeSniffer/Fixer.php", - "CodeSniffer/Report.php", - "CodeSniffer/Reporting.php", - "CodeSniffer/Sniff.php", - "CodeSniffer/Tokens.php", - "CodeSniffer/Reports/", - "CodeSniffer/Tokenizers/", - "CodeSniffer/DocGenerators/", - "CodeSniffer/Standards/AbstractPatternSniff.php", - "CodeSniffer/Standards/AbstractScopeSniff.php", - "CodeSniffer/Standards/AbstractVariableSniff.php", - "CodeSniffer/Standards/IncorrectPatternException.php", - "CodeSniffer/Standards/Generic/Sniffs/", - "CodeSniffer/Standards/MySource/Sniffs/", - "CodeSniffer/Standards/PEAR/Sniffs/", - "CodeSniffer/Standards/PSR1/Sniffs/", - "CodeSniffer/Standards/PSR2/Sniffs/", - "CodeSniffer/Standards/Squiz/Sniffs/", - "CodeSniffer/Standards/Zend/Sniffs/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Greg Sherwood", - "role": "lead" - } - ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", - "keywords": [ - "phpcs", - "standards" - ], - "time": "2017-05-22T02:43:20+00:00" - }, - { - "name": "symfony/console", - "version": "v3.3.10", - "source": { - "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "116bc56e45a8e5572e51eb43ab58c769a352366c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/116bc56e45a8e5572e51eb43ab58c769a352366c", - "reference": "116bc56e45a8e5572e51eb43ab58c769a352366c", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/debug": "~2.8|~3.0", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/dependency-injection": "<3.3" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~3.3", - "symfony/dependency-injection": "~3.3", - "symfony/event-dispatcher": "~2.8|~3.0", - "symfony/filesystem": "~2.8|~3.0", - "symfony/process": "~2.8|~3.0" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/filesystem": "", - "symfony/process": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.3-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Console Component", - "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" - }, - { - "name": "symfony/debug", - "version": "v3.3.10", - "source": { - "type": "git", - "url": "https://github.com/symfony/debug.git", - "reference": "eb95d9ce8f18dcc1b3dfff00cb624c402be78ffd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/eb95d9ce8f18dcc1b3dfff00cb624c402be78ffd", - "reference": "eb95d9ce8f18dcc1b3dfff00cb624c402be78ffd", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "psr/log": "~1.0" - }, - "conflict": { - "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" - }, - "require-dev": { - "symfony/http-kernel": "~2.8|~3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.3-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Debug\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Debug Component", - "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" - }, - { - "name": "symfony/finder", - "version": "v3.3.10", - "source": { - "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "773e19a491d97926f236942484cb541560ce862d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/773e19a491d97926f236942484cb541560ce862d", - "reference": "773e19a491d97926f236942484cb541560ce862d", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.3-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Finder\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Finder Component", - "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.6.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", - "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.6-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "time": "2017-10-11T12:05:26+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", - "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^7.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "time": "2017-04-07T12:08:54+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.3.0", - "source": { - "type": "git", - "url": "https://github.com/webmozart/assert.git", - "reference": "0df1908962e7a3071564e857d86874dad1ef204a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", - "reference": "0df1908962e7a3071564e857d86874dad1ef204a", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "time": "2018-01-29T19:49:41+00:00" - }, - { - "name": "zendframework/zend-coding-standard", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-coding-standard.git", - "reference": "893316d2904e93f1c74c1384b6d7d57778299cb6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-coding-standard/zipball/893316d2904e93f1c74c1384b6d7d57778299cb6", - "reference": "893316d2904e93f1c74c1384b6d7d57778299cb6", - "shasum": "" - }, - "require": { - "squizlabs/php_codesniffer": "^2.7" - }, - "type": "library", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "description": "Zend Framework coding standard", - "keywords": [ - "Coding Standard", - "zf" - ], - "time": "2016-11-09T21:30:43+00:00" - }, - { - "name": "zendframework/zend-filter", - "version": "2.7.2", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-filter.git", - "reference": "b8d0ff872f126631bf63a932e33aa2d22d467175" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-filter/zipball/b8d0ff872f126631bf63a932e33aa2d22d467175", - "reference": "b8d0ff872f126631bf63a932e33aa2d22d467175", - "shasum": "" - }, - "require": { - "php": "^5.5 || ^7.0", - "zendframework/zend-stdlib": "^2.7 || ^3.0" - }, - "require-dev": { - "pear/archive_tar": "^1.4", - "phpunit/phpunit": "^6.0.10 || ^5.7.17", - "zendframework/zend-coding-standard": "~1.0.0", - "zendframework/zend-crypt": "^2.6 || ^3.0", - "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3", - "zendframework/zend-uri": "^2.5" - }, - "suggest": { - "zendframework/zend-crypt": "Zend\\Crypt component, for encryption filters", - "zendframework/zend-i18n": "Zend\\I18n component for filters depending on i18n functionality", - "zendframework/zend-servicemanager": "Zend\\ServiceManager component, for using the filter chain functionality", - "zendframework/zend-uri": "Zend\\Uri component, for the UriNormalize filter" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev", - "dev-develop": "2.8-dev" - }, - "zf": { - "component": "Zend\\Filter", - "config-provider": "Zend\\Filter\\ConfigProvider" - } - }, - "autoload": { - "psr-4": { - "Zend\\Filter\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "description": "provides a set of commonly needed data filters", - "homepage": "https://github.com/zendframework/zend-filter", - "keywords": [ - "filter", - "zf2" - ], - "time": "2017-05-17T20:56:17+00:00" - }, - { - "name": "zendframework/zend-i18n", - "version": "2.7.4", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-i18n.git", - "reference": "d3431e29cc00c2a1c6704e601d4371dbf24f6a31" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-i18n/zipball/d3431e29cc00c2a1c6704e601d4371dbf24f6a31", - "reference": "d3431e29cc00c2a1c6704e601d4371dbf24f6a31", - "shasum": "" - }, - "require": { - "php": "^7.0 || ^5.6", - "zendframework/zend-stdlib": "^2.7 || ^3.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0.8 || ^5.7.15", - "zendframework/zend-cache": "^2.6.1", - "zendframework/zend-coding-standard": "~1.0.0", - "zendframework/zend-config": "^2.6", - "zendframework/zend-eventmanager": "^2.6.2 || ^3.0", - "zendframework/zend-filter": "^2.6.1", - "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3", - "zendframework/zend-validator": "^2.6", - "zendframework/zend-view": "^2.6.3" - }, - "suggest": { - "ext-intl": "Required for most features of Zend\\I18n; included in default builds of PHP", - "zendframework/zend-cache": "Zend\\Cache component", - "zendframework/zend-config": "Zend\\Config component", - "zendframework/zend-eventmanager": "You should install this package to use the events in the translator", - "zendframework/zend-filter": "You should install this package to use the provided filters", - "zendframework/zend-i18n-resources": "Translation resources", - "zendframework/zend-servicemanager": "Zend\\ServiceManager component", - "zendframework/zend-validator": "You should install this package to use the provided validators", - "zendframework/zend-view": "You should install this package to use the provided view helpers" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev", - "dev-develop": "2.8-dev" - }, - "zf": { - "component": "Zend\\I18n", - "config-provider": "Zend\\I18n\\ConfigProvider" - } - }, - "autoload": { - "psr-4": { - "Zend\\I18n\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "homepage": "https://github.com/zendframework/zend-i18n", - "keywords": [ - "i18n", - "zf2" - ], - "time": "2017-05-17T17:00:12+00:00" - }, - { - "name": "zendframework/zend-servicemanager", - "version": "3.3.0", - "source": { - "type": "git", - "url": "https://github.com/zendframework/zend-servicemanager.git", - "reference": "c3036efb81f71bfa36cc9962ee5d4474f36581d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-servicemanager/zipball/c3036efb81f71bfa36cc9962ee5d4474f36581d0", - "reference": "c3036efb81f71bfa36cc9962ee5d4474f36581d0", - "shasum": "" - }, - "require": { - "container-interop/container-interop": "^1.2", - "php": "^5.6 || ^7.0", - "psr/container": "^1.0", - "zendframework/zend-stdlib": "^3.1" - }, - "provide": { - "container-interop/container-interop-implementation": "^1.2", - "psr/container-implementation": "^1.0" - }, - "require-dev": { - "mikey179/vfsstream": "^1.6", - "ocramius/proxy-manager": "^1.0 || ^2.0", - "phpbench/phpbench": "^0.10.0", - "phpunit/phpunit": "^5.7 || ^6.0.6", - "zendframework/zend-coding-standard": "~1.0.0" - }, - "suggest": { - "ocramius/proxy-manager": "ProxyManager 1.* to handle lazy initialization of services", - "zendframework/zend-stdlib": "zend-stdlib ^2.5 if you wish to use the MergeReplaceKey or MergeRemoveKey features in Config instances" - }, - "bin": [ - "bin/generate-deps-for-config-factory", - "bin/generate-factory-for-class" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.3-dev", - "dev-develop": "3.4-dev" - } - }, - "autoload": { - "psr-4": { - "Zend\\ServiceManager\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "homepage": "https://github.com/zendframework/zend-servicemanager", - "keywords": [ - "service-manager", - "servicemanager", - "zf" - ], - "time": "2017-03-01T22:08:02+00:00" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": "^5.6 || ^7.0", - "ext-json": "*" - }, - "platform-dev": [] -} diff --git a/docs/CODE_OF_CONDUCT.md b/docs/CODE_OF_CONDUCT.md deleted file mode 100644 index 02fafcd1..00000000 --- a/docs/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,43 +0,0 @@ -# Contributor Code of Conduct - -This project adheres to [The Code Manifesto](http://codemanifesto.com) -as its guidelines for contributor interactions. - -## The Code Manifesto - -We want to work in an ecosystem that empowers developers to reach their -potential — one that encourages growth and effective collaboration. A space that -is safe for all. - -A space such as this benefits everyone that participates in it. It encourages -new developers to enter our field. It is through discussion and collaboration -that we grow, and through growth that we improve. - -In the effort to create such a place, we hold to these values: - -1. **Discrimination limits us.** This includes discrimination on the basis of - race, gender, sexual orientation, gender identity, age, nationality, technology - and any other arbitrary exclusion of a group of people. -2. **Boundaries honor us.** Your comfort levels are not everyone’s comfort - levels. Remember that, and if brought to your attention, heed it. -3. **We are our biggest assets.** None of us were born masters of our trade. - Each of us has been helped along the way. Return that favor, when and where - you can. -4. **We are resources for the future.** As an extension of #3, share what you - know. Make yourself a resource to help those that come after you. -5. **Respect defines us.** Treat others as you wish to be treated. Make your - discussions, criticisms and debates from a position of respectfulness. Ask - yourself, is it true? Is it necessary? Is it constructive? Anything less is - unacceptable. -6. **Reactions require grace.** Angry responses are valid, but abusive language - and vindictive actions are toxic. When something happens that offends you, - handle it assertively, but be respectful. Escalate reasonably, and try to - allow the offender an opportunity to explain themselves, and possibly correct - the issue. -7. **Opinions are just that: opinions.** Each and every one of us, due to our - background and upbringing, have varying opinions. The fact of the matter, is - that is perfectly acceptable. Remember this: if you respect your own - opinions, you should respect the opinions of others. -8. **To err is human.** You might not intend it, but mistakes do happen and - contribute to build experience. Tolerate honest mistakes, and don't hesitate - to apologize if you make one yourself. diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md deleted file mode 100644 index 968db1f0..00000000 --- a/docs/CONTRIBUTING.md +++ /dev/null @@ -1,201 +0,0 @@ -# CONTRIBUTING - -## RESOURCES - -If you wish to contribute to this project, please be sure to -read/subscribe to the following resources: - - - [Coding Standards](https://github.com/zendframework/zend-coding-standard) - - [Forums](https://discourse.zendframework.com/c/contributors) - - [Chat](https://zendframework-slack.herokuapp.com) - - [Code of Conduct](CODE_OF_CONDUCT.md) - -If you are working on new features or refactoring -[create a proposal](https://github.com/zendframework/zend-config/issues/new). - -## RUNNING TESTS - -To run tests: - -- Clone the repository: - - ```console - $ git clone git://github.com/zendframework/zend-config.git - $ cd zend-config - ``` - -- Install dependencies via composer: - - ```console - $ composer install - ``` - - If you don't have `composer` installed, please download it from https://getcomposer.org/download/ - -- Run the tests using the "test" command shipped in the `composer.json`: - - ```console - $ composer test - ``` - -You can turn on conditional tests with the `phpunit.xml` file. -To do so: - - - Copy `phpunit.xml.dist` file to `phpunit.xml` - - Edit `phpunit.xml` to enable any specific functionality you - want to test, as well as to provide test values to utilize. - -## Running Coding Standards Checks - -First, ensure you've installed dependencies via composer, per the previous -section on running tests. - -To run CS checks only: - -```console -$ composer cs-check -``` - -To attempt to automatically fix common CS issues: - -```console -$ composer cs-fix -``` - -If the above fixes any CS issues, please re-run the tests to ensure -they pass, and make sure you add and commit the changes after verification. - -## Running License Checks - -File-level docblocks should follow the format demonstrated in `.docheader`. To -check for conformity, use: - -```console -$ composer license-check -``` - -This will flag files that are incorrect, which you can then update. Re-run the -tool to verify your changes. - -## Recommended Workflow for Contributions - -Your first step is to establish a public repository from which we can -pull your work into the master repository. We recommend using -[GitHub](https://github.com), as that is where the component is already hosted. - -1. Setup a [GitHub account](https://github.com/), if you haven't yet -2. Fork the repository (https://github.com/zendframework/zend-config) -3. Clone the canonical repository locally and enter it. - - ```console - $ git clone git://github.com/zendframework/zend-config.git - $ cd zend-config - ``` - -4. Add a remote to your fork; substitute your GitHub username in the command - below. - - ```console - $ git remote add {username} git@github.com:{username}/zend-config.git - $ git fetch {username} - ``` - -### Keeping Up-to-Date - -Periodically, you should update your fork or personal repository to -match the canonical ZF repository. Assuming you have setup your local repository -per the instructions above, you can do the following: - - -```console -$ git checkout master -$ git fetch origin -$ git rebase origin/master -# OPTIONALLY, to keep your remote up-to-date - -$ git push {username} master:master -``` - -If you're tracking other branches -- for example, the "develop" branch, where -new feature development occurs -- you'll want to do the same operations for that -branch; simply substitute "develop" for "master". - -### Working on a patch - -We recommend you do each new feature or bugfix in a new branch. This simplifies -the task of code review as well as the task of merging your changes into the -canonical repository. - -A typical workflow will then consist of the following: - -1. Create a new local branch based off either your master or develop branch. -2. Switch to your new local branch. (This step can be combined with the - previous step with the use of `git checkout -b`.) -3. Do some work, commit, repeat as necessary. -4. Push the local branch to your remote repository. -5. Send a pull request. - -The mechanics of this process are actually quite trivial. Below, we will -create a branch for fixing an issue in the tracker. - -```console -$ git checkout -b hotfix/9295 -Switched to a new branch 'hotfix/9295' -``` - -... do some work ... - - -```console -$ git commit -``` - -... write your log message ... - - -```console -$ git push {username} hotfix/9295:hotfix/9295 -Counting objects: 38, done. -Delta compression using up to 2 threads. -Compression objects: 100% (18/18), done. -Writing objects: 100% (20/20), 8.19KiB, done. -Total 20 (delta 12), reused 0 (delta 0) -To ssh://git@github.com/{username}/zend-config.git - b5583aa..4f51698 HEAD -> master -``` - -To send a pull request, you have two options. - -If using GitHub, you can do the pull request from there. Navigate to -your repository, select the branch you just created, and then select the -"Pull Request" button in the upper right. Select the user/organization -"zendframework" (or whatever the upstream organization is) as the recipient. - -#### What branch to issue the pull request against? - -Which branch should you issue a pull request against? - -- For fixes against the stable release, issue the pull request against the - "master" branch. -- For new features, or fixes that introduce new elements to the public API (such - as new public methods or properties), issue the pull request against the - "develop" branch. - -### Branch Cleanup - -As you might imagine, if you are a frequent contributor, you'll start to -get a ton of branches both locally and on your remote. - -Once you know that your changes have been accepted to the master -repository, we suggest doing some cleanup of these branches. - -- Local branch cleanup - - ```console - $ git branch -d - ``` - -- Remote branch removal - - ```console - $ git push {username} : - ``` diff --git a/docs/ISSUE_TEMPLATE.md b/docs/ISSUE_TEMPLATE.md deleted file mode 100644 index 76436cf7..00000000 --- a/docs/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,19 +0,0 @@ - - [ ] I was not able to find an [open](https://github.com/zendframework/zend-config/issues?q=is%3Aopen) or [closed](https://github.com/zendframework/zend-config/issues?q=is%3Aclosed) issue matching what I'm seeing. - - [ ] This is not a question. (Questions should be asked on [chat](https://zendframework.slack.com/) ([Signup here](https://zendframework-slack.herokuapp.com/)) or our [forums](https://discourse.zendframework.com/).) - -Provide a narrative description of what you are trying to accomplish. - -### Code to reproduce the issue - - - -```php -``` - -### Expected results - - - -### Actual results - - diff --git a/docs/PULL_REQUEST_TEMPLATE.md b/docs/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index f00d90c0..00000000 --- a/docs/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,25 +0,0 @@ -Provide a narrative description of what you are trying to accomplish: - -- [ ] Are you fixing a bug? - - [ ] Detail how the bug is invoked currently. - - [ ] Detail the original, incorrect behavior. - - [ ] Detail the new, expected behavior. - - [ ] Base your feature on the `master` branch, and submit against that branch. - - [ ] Add a regression test that demonstrates the bug, and proves the fix. - - [ ] Add a `CHANGELOG.md` entry for the fix. - -- [ ] Are you creating a new feature? - - [ ] Why is the new feature needed? What purpose does it serve? - - [ ] How will users use the new feature? - - [ ] Base your feature on the `develop` branch, and submit against that branch. - - [ ] Add only one feature per pull request; split multiple features over multiple pull requests - - [ ] Add tests for the new feature. - - [ ] Add documentation for the new feature. - - [ ] Add a `CHANGELOG.md` entry for the new feature. - -- [ ] Is this related to quality assurance? - - -- [ ] Is this related to documentation? - - diff --git a/docs/SUPPORT.md b/docs/SUPPORT.md deleted file mode 100644 index 37be72e2..00000000 --- a/docs/SUPPORT.md +++ /dev/null @@ -1,25 +0,0 @@ -# Getting Support - -Zend Framework offers three support channels: - -- For real-time questions, use our - [chat](https://zendframework-slack.herokuapp.com) -- For detailed questions (e.g., those requiring examples) use our - [forums](https://discourse.zendframework.com/c/questions/components) -- To report issues, use this repository's - [issue tracker](https://github.com/zendframework/zend-config/issues/new) - -**DO NOT** use the issue tracker to ask questions; use chat or the forums for -that. Questions posed to the issue tracker will be closed. - -When reporting an issue, please include the following details: - -- A narrative description of what you are trying to accomplish. -- The minimum code necessary to reproduce the issue. -- The expected results of exercising that code. -- The actual results received. - -We may ask for additional details: what version of the library you are using, -and what PHP version was used to reproduce the issue. - -You may also submit a failing test case as a pull request. diff --git a/docs/book/factory.md b/docs/book/factory.md index 1f456ff2..1dc6ddfe 100644 --- a/docs/book/factory.md +++ b/docs/book/factory.md @@ -1,7 +1,7 @@ # The Factory -`Zend\Config\Factory` provides the ability to load configuration files to an -array or to a `Zend\Config\Config` object. The factory has two purposes +`Laminas\Config\Factory` provides the ability to load configuration files to an +array or to a `Laminas\Config\Config` object. The factory has two purposes - Loading configuration file(s) - Storing a configuration file @@ -19,18 +19,18 @@ The first example illustrates loading a single configuration file: ```php // Load a PHP file as array: -$config = Zend\Config\Factory::fromFile(__DIR__ . '/config/my.config.php'); +$config = Laminas\Config\Factory::fromFile(__DIR__ . '/config/my.config.php'); // Load an XML file as Config object; the second parameter, when true, // casts the configuration to a Config instance: -$config = Zend\Config\Factory::fromFile(__DIR__.'/config/my.config.xml', true); +$config = Laminas\Config\Factory::fromFile(__DIR__.'/config/my.config.xml', true); ``` The next example demonstrates merging multiple files; note that they are in separate formats! ```php -$config = Zend\Config\Factory::fromFiles([ +$config = Laminas\Config\Factory::fromFiles([ __DIR__.'/config/my.config.php', __DIR__.'/config/my.config.xml', ]); @@ -42,13 +42,13 @@ Sometimes you may want to write configuration to a file. To do this, use the factory's `toFile()` method: ```php -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->settings = []; $config->settings->myname = 'framework'; $config->settings->date = '2012-12-12 12:12:12'; //Store the configuration -Zend\Config\Factory::toFile(__DIR__ . '/config/my.config.php', $config); +Laminas\Config\Factory::toFile(__DIR__ . '/config/my.config.php', $config); //Store an array $config = [ @@ -58,5 +58,5 @@ $config = [ ], ]; -Zend\Config\Factory::toFile(__DIR__ . '/config/my.config.php', $config); +Laminas\Config\Factory::toFile(__DIR__ . '/config/my.config.php', $config); ``` diff --git a/docs/book/index.html b/docs/book/index.html index 03d253c8..41748ab7 100644 --- a/docs/book/index.html +++ b/docs/book/index.html @@ -1,10 +1,10 @@
-

zend-config

+

laminas-config

Read and write configuration files.

-
$ composer require zendframework/zend-config
+
$ composer require laminas/laminas-config
diff --git a/docs/book/intro.md b/docs/book/intro.md index d4db84e4..10e2ef3b 100644 --- a/docs/book/intro.md +++ b/docs/book/intro.md @@ -1,16 +1,16 @@ # Introduction -zend-config is designed to simplify access to configuration data within applications. It provides +laminas-config is designed to simplify access to configuration data within applications. It provides a nested object, property-based user interface for accessing this configuration data within application code. The configuration data may come from a variety of formats supporting hierarchical -data storage. Currently, zend-config provides adapters that read and write configuration data +data storage. Currently, laminas-config provides adapters that read and write configuration data stored in INI, JSON, YAML, and XML files. ## Using Reader Classes Normally, users will use one of the [reader classes](reader.md) to read a configuration file, but if configuration data is available in a PHP array, one -may simply pass the data to `Zend\Config\Config`'s constructor in order to +may simply pass the data to `Laminas\Config\Config`'s constructor in order to utilize a simple object-oriented interface: ```php @@ -29,16 +29,16 @@ $configArray = [ ]; // Create the object-oriented wrapper using the configuration data -$config = new Zend\Config\Config($configArray); +$config = new Laminas\Config\Config($configArray); // Print a configuration datum (results in 'www.example.com') echo $config->webhost; ``` -As illustrated in the example above, `Zend\Config\Config` provides nested object +As illustrated in the example above, `Laminas\Config\Config` provides nested object property syntax to access configuration data passed to its constructor. -Along with the object-oriented access to the data values, `Zend\Config\Config` +Along with the object-oriented access to the data values, `Laminas\Config\Config` also has a `get()` method that accepts a default value to return if the data element requested doesn't exist in the configuration array. For example: @@ -71,7 +71,7 @@ return [ ```php // Consumes the configuration array -$config = new Zend\Config\Config(include 'config.php'); +$config = new Laminas\Config\Config(include 'config.php'); // Print a configuration datum (results in 'www.example.com') echo $config->webhost; diff --git a/docs/book/migration/to-v3.md b/docs/book/migration/to-v3.md index eb313c81..e49f1eef 100644 --- a/docs/book/migration/to-v3.md +++ b/docs/book/migration/to-v3.md @@ -1,30 +1,30 @@ # Migration to version 3 Version 3 is essentially fully backwards compatible with previous versions, with -one key exception: `Zend\Config\Factory` no longer requires usage of -zend-servicemanager for resolving plugins. +one key exception: `Laminas\Config\Factory` no longer requires usage of +laminas-servicemanager for resolving plugins. The reason this is considered a backwards compatibility break is due to signature changes: - `Factory::setReaderPluginManager()` now accepts a - `Psr\Container\ContainerInterface`, and not a `Zend\Config\ReaderPluginManager` + `Psr\Container\ContainerInterface`, and not a `Laminas\Config\ReaderPluginManager` instance; `ReaderPluginManager`, however, still fulfills that typehint. - `Factory::getReaderPluginManager()` now returns a `Psr\Container\ContainerInterface` — specifically, a - `Zend\Config\StandaloneReaderPluginManager` — and not a - `Zend\Config\ReaderPluginManager` instance, by default; `ReaderPluginManager`, + `Laminas\Config\StandaloneReaderPluginManager` — and not a + `Laminas\Config\ReaderPluginManager` instance, by default; `ReaderPluginManager`, however, still fulfills that typehint. - `Factory::setWriterPluginManager()` now accepts a - `Psr\Container\ContainerInterface`, and not a `Zend\Config\WriterPluginManager` + `Psr\Container\ContainerInterface`, and not a `Laminas\Config\WriterPluginManager` instance; `WriterPluginManager`, however, still fulfills that typehint. - `Factory::getWriterPluginManager()` now returns a `Psr\Container\ContainerInterface` — specifically, a - `Zend\Config\StandaloneWriterPluginManager` — and not a - `Zend\Config\WriterPluginManager` instance, by default; `WriterPluginManager`, + `Laminas\Config\StandaloneWriterPluginManager` — and not a + `Laminas\Config\WriterPluginManager` instance, by default; `WriterPluginManager`, however, still fulfills that typehint. If you were extending the class, you will need to update your signatures @@ -32,4 +32,4 @@ accordingly. This particular update means that you may use any PSR-11 container as a reader or writer plugin manager, and no longer require installation of -zend-servicemanager to use the plugin manager facilities. +laminas-servicemanager to use the plugin manager facilities. diff --git a/docs/book/processor.md b/docs/book/processor.md index 3ea3c8ac..78af9813 100644 --- a/docs/book/processor.md +++ b/docs/book/processor.md @@ -1,16 +1,16 @@ -# Zend\\Config\\Processor +# Laminas\\Config\\Processor -`Zend\Config\Processor` provides the ability to perform operations on a -`Zend\Config\Config` object. `Zend\Config\Processor` is itself an interface that +`Laminas\Config\Processor` provides the ability to perform operations on a +`Laminas\Config\Config` object. `Laminas\Config\Processor` is itself an interface that defining two methods: `process()` and `processValue()`. -zend-config provides the following concrete implementations: +laminas-config provides the following concrete implementations: -- `Zend\Config\Processor\Constant`: manage PHP constant values. -- `Zend\Config\Processor\Filter`: filter the configuration data using `Zend\Filter`. -- `Zend\Config\Processor\Queue`: manage a queue of operations to apply to configuration data. -- `Zend\Config\Processor\Token`: find and replace specific tokens. -- `Zend\Config\Processor\Translator`: translate configuration values in other languages using `Zend\I18n\Translator`. +- `Laminas\Config\Processor\Constant`: manage PHP constant values. +- `Laminas\Config\Processor\Filter`: filter the configuration data using `Laminas\Filter`. +- `Laminas\Config\Processor\Queue`: manage a queue of operations to apply to configuration data. +- `Laminas\Config\Processor\Token`: find and replace specific tokens. +- `Laminas\Config\Processor\Translator`: translate configuration values in other languages using `Laminas\I18n\Translator`. > ### What gets processed? > @@ -29,18 +29,18 @@ zend-config provides the following concrete implementations: > calling `enableKeyProcessing()` on their instances, or passing a boolean > `true` value for the fourth constructor argument. -## Zend\\Config\\Processor\\Constant +## Laminas\\Config\\Processor\\Constant -### Using Zend\\Config\\Processor\\Constant +### Using Laminas\\Config\\Processor\\Constant -This example illustrates the basic usage of `Zend\Config\Processor\Constant`: +This example illustrates the basic usage of `Laminas\Config\Processor\Constant`: ```php define ('TEST_CONST', 'bar'); // Provide the second parameter as boolean true to allow modifications: -$config = new Zend\Config\Config(['foo' => 'TEST_CONST'], true); -$processor = new Zend\Config\Processor\Constant(); +$config = new Laminas\Config\Config(['foo' => 'TEST_CONST'], true); +$processor = new Laminas\Config\Processor\Constant(); echo $config->foo . ','; $processor->process($config); @@ -53,7 +53,7 @@ As of version 3.1.0, you can also tell the `Constant` processor to process keys: ```php // At instantiation: -$processor = new Zend\Config\Processor\Constant(true, '', '', true); +$processor = new Laminas\Config\Processor\Constant(true, '', '', true); // Or later, via a method call: $processor->enableKeyProcessing(); @@ -61,16 +61,16 @@ $processor->enableKeyProcessing(); When enabled, any constant values found in keys will also be replaced. -## Zend\\Config\\Processor\\Filter +## Laminas\\Config\\Processor\\Filter -### Using Zend\\Config\\Processor\\Filter +### Using Laminas\\Config\\Processor\\Filter -This example illustrates basic usage of `Zend\Config\Processor\Filter`: +This example illustrates basic usage of `Laminas\Config\Processor\Filter`: ```php -use Zend\Filter\StringToUpper; -use Zend\Config\Processor\Filter as FilterProcessor; -use Zend\Config\Config; +use Laminas\Filter\StringToUpper; +use Laminas\Config\Processor\Filter as FilterProcessor; +use Laminas\Config\Config; // Provide the second parameter as boolean true to allow modifications: $config = new Config(['foo' => 'bar'], true); @@ -85,18 +85,18 @@ echo $config->foo; This example returns the output: `bar,BAR`. -## Zend\\Config\\Processor\\Queue +## Laminas\\Config\\Processor\\Queue -### Using Zend\\Config\\Processor\\Queue +### Using Laminas\\Config\\Processor\\Queue -This example illustrates basic usage of `Zend\Config\Processor\Queue`: +This example illustrates basic usage of `Laminas\Config\Processor\Queue`: ```php -use Zend\Filter\StringToLower; -use Zend\Filter\StringToUpper; -use Zend\Config\Processor\Filter as FilterProcessor; -use Zend\Config\Processor\Queue; -use Zend\Config\Config; +use Laminas\Filter\StringToLower; +use Laminas\Filter\StringToUpper; +use Laminas\Config\Processor\Filter as FilterProcessor; +use Laminas\Config\Processor\Queue; +use Laminas\Config\Config; // Provide the second parameter as boolean true to allow modifications: $config = new Config(['foo' => 'bar'], true); @@ -117,15 +117,15 @@ echo $config->foo; This example returns the output: `bar`. The filters in the queue are applied in *FIFO* (First In, First Out) order . -## Zend\\Config\\Processor\\Token +## Laminas\\Config\\Processor\\Token -### Using Zend\\Config\\Processor\\Token +### Using Laminas\\Config\\Processor\\Token -This example illustrates basic usage of `Zend\Config\Processor\Token`: +This example illustrates basic usage of `Laminas\Config\Processor\Token`: ```php -use Zend\Config\Config; -use Zend\Config\Processor\Token as TokenProcessor; +use Laminas\Config\Config; +use Laminas\Config\Processor\Token as TokenProcessor; // Provide the second parameter as boolean true to allow modifications: $config = new Config(['foo' => 'Value is TOKEN'], true); @@ -143,7 +143,7 @@ As of version 3.1.0, you can also tell the `Token` processor to process keys: ```php // At instantiation: -$processor = new Zend\Config\Processor\Token($tokens, '', '', true); +$processor = new Laminas\Config\Processor\Token($tokens, '', '', true); // Or later, via a method call: $processor->enableKeyProcessing(); @@ -158,8 +158,8 @@ format `%env(ENV_VAR)%` with values from environment by setting Token processor `$prefix` and `$suffix` parameters to `%env(` and `)%` respectively: ```php -use Zend\Config\Config; -use Zend\Config\Processor\Token as TokenProcessor; +use Laminas\Config\Config; +use Laminas\Config\Processor\Token as TokenProcessor; putenv('AMQP_PASSWORD=guest'); @@ -189,16 +189,16 @@ print_r($config->toArray()); Do note, however, that only values present in environment will be replaced. This allows multiple fallback processors to be provided as a queue. -## Zend\\Config\\Processor\\Translator +## Laminas\\Config\\Processor\\Translator -### Using Zend\\Config\\Processor\\Translator +### Using Laminas\\Config\\Processor\\Translator -This example illustrates basic usage of `Zend\Config\Processor\Translator`: +This example illustrates basic usage of `Laminas\Config\Processor\Translator`: ```php -use Zend\Config\Config; -use Zend\Config\Processor\Translator as TranslatorProcessor; -use Zend\I18n\Translator\Translator; +use Laminas\Config\Config; +use Laminas\Config\Processor\Translator as TranslatorProcessor; +use Laminas\I18n\Translator\Translator; // Provide the second parameter as boolean true to allow modifications: $config = new Config(['animal' => 'dog'], true); diff --git a/docs/book/reader.md b/docs/book/reader.md index 74a49651..cd43f7c7 100644 --- a/docs/book/reader.md +++ b/docs/book/reader.md @@ -1,35 +1,35 @@ -# Zend\\Config\\Reader +# Laminas\\Config\\Reader -`Zend\Config\Reader` gives you the ability to read a config file. It works with -concrete implementations for different file formats. `Zend\Config\Reader` itself +`Laminas\Config\Reader` gives you the ability to read a config file. It works with +concrete implementations for different file formats. `Laminas\Config\Reader` itself is only an interface, defining the methods `fromFile()` and `fromString()`. The concrete implementations of this interface are: -- `Zend\Config\Reader\Ini` -- `Zend\Config\Reader\Xml` -- `Zend\Config\Reader\Json` -- `Zend\Config\Reader\Yaml` -- `Zend\Config\Reader\JavaProperties` +- `Laminas\Config\Reader\Ini` +- `Laminas\Config\Reader\Xml` +- `Laminas\Config\Reader\Json` +- `Laminas\Config\Reader\Yaml` +- `Laminas\Config\Reader\JavaProperties` `fromFile()` and `fromString()` are expected to return a PHP array containing the data from the specified configuration. -> ### Differences from ZF1 +> ### Differences from Laminas1 > -> The `Zend\Config\Reader` component no longer supports the following features: +> The `Laminas\Config\Reader` component no longer supports the following features: > > * Inheritance of sections. > * Reading of specific sections. -## Zend\\Config\\Reader\\Ini +## Laminas\\Config\\Reader\\Ini -`Zend\Config\Reader\Ini` enables developers to store configuration data in a +`Laminas\Config\Reader\Ini` enables developers to store configuration data in a familiar INI format, and then to read them in the application by using an array syntax. -`Zend\Config\Reader\Ini` utilizes the [`parse_ini_file()`](http://php.net/parse_ini_file) PHP +`Laminas\Config\Reader\Ini` utilizes the [`parse_ini_file()`](http://php.net/parse_ini_file) PHP function. Please review this documentation to be aware of its specific behaviors, which propagate to -`Zend\Config\Reader\Ini`, such as how the special values of `TRUE`, `FALSE`, "yes", "no", and +`Laminas\Config\Reader\Ini`, such as how the special values of `TRUE`, `FALSE`, "yes", "no", and `NULL` are handled. > ### Key Separator @@ -38,7 +38,7 @@ function. Please review this documentation to be aware of its specific behaviors > however, using the `setNestSeparator()` method. For example: > > ```php -> $reader = new Zend\Config\Reader\Ini(); +> $reader = new Laminas\Config\Reader\Ini(); > $reader->setNestSeparator('-'); > ``` @@ -49,11 +49,11 @@ function. Please review this documentation to be aware of its specific behaviors > To merge sections, set the parameter via `setProcessSections()` to `false` as follows. > > ```php -> $reader = new Zend\Config\Reader\Ini(); +> $reader = new Laminas\Config\Reader\Ini(); > $reader->setProcessSections(false); > ``` -The following example illustrates basic usage of `Zend\Config\Reader\Ini` for +The following example illustrates basic usage of `Laminas\Config\Reader\Ini` for loading configuration data from an INI file. In this example, configuration data for both a production system and for a staging system exists. @@ -66,17 +66,17 @@ database.params.password = 'secret' database.params.dbname = 'dbproduction' ``` -We can use `Zend\Config\Reader\Ini` to read this INI file: +We can use `Laminas\Config\Reader\Ini` to read this INI file: ```php -$reader = new Zend\Config\Reader\Ini(); +$reader = new Laminas\Config\Reader\Ini(); $data = $reader->fromFile('/path/to/config.ini'); echo $data['webhost']; // prints "www.example.com" echo $data['database']['params']['dbname']; // prints "dbproduction" ``` -`Zend\Config\Reader\Ini` supports a feature to include the content of a INI file +`Laminas\Config\Reader\Ini` supports a feature to include the content of a INI file in a specific section of another INI file. For instance, suppose we have an INI file with the database configuration: @@ -96,7 +96,7 @@ webhost = 'www.example.com' @include = 'database.ini' ``` -If we read this file using the component `Zend\Config\Reader\Ini`, we will obtain the same +If we read this file using the component `Laminas\Config\Reader\Ini`, we will obtain the same configuration data structure as in the previous example. The `@include = 'file-to-include.ini'` notation can be used also in a subelement @@ -117,14 +117,14 @@ webhost = 'www.example.com' database.@include = 'database.ini' ``` -## Zend\\Config\\Reader\\Xml +## Laminas\\Config\\Reader\\Xml -`Zend\Config\Reader\Xml` enables developers to provide configuration data in a +`Laminas\Config\Reader\Xml` enables developers to provide configuration data in a familiar XML format and consume it in the application using an array syntax. The root element of the XML file or string is irrelevant and may be named arbitrarily. -The following example illustrates basic usage of `Zend\Config\Reader\Xml` for loading configuration +The following example illustrates basic usage of `Laminas\Config\Reader\Xml` for loading configuration data from an XML file. First, our XML configuration in the file `config.xml`: ```markup @@ -143,21 +143,21 @@ data from an XML file. First, our XML configuration in the file `config.xml`: ``` -We can use the `Zend\Config\Reader\Xml` to read the XML configuration: +We can use the `Laminas\Config\Reader\Xml` to read the XML configuration: ```php -$reader = new Zend\Config\Reader\Xml(); +$reader = new Laminas\Config\Reader\Xml(); $data = $reader->fromFile('/path/to/config.xml'); echo $data['webhost']; // prints "www.example.com" echo $data['database']['params']['dbname']['value']; // prints "dbproduction" ``` -`Zend\Config\Reader\Xml` utilizes PHP's [XMLReader](http://php.net/xmlreader) class. Please +`Laminas\Config\Reader\Xml` utilizes PHP's [XMLReader](http://php.net/xmlreader) class. Please review its documentation to be aware of its specific behaviors, which propagate to -`Zend\Config\Reader\Xml`. +`Laminas\Config\Reader\Xml`. -Using `Zend\Config\Reader\Xml`, we can include the content of XML files in a +Using `Laminas\Config\Reader\Xml`, we can include the content of XML files in a specific XML element. This is provided using the standard [XInclude](http://www.w3.org/TR/xinclude/) functionality of XML. To use this functionality, you must add the namespace @@ -193,12 +193,12 @@ We can include this configuration in another XML file using an xinclude: The syntax to include an XML file in a specific element is `` -## Zend\\Config\\Reader\\Json +## Laminas\\Config\\Reader\\Json -`Zend\Config\Reader\Json` enables developers to consume configuration data in +`Laminas\Config\Reader\Json` enables developers to consume configuration data in JSON, and read it in the application by using an array syntax. -The following example illustrates a basic use of `Zend\Config\Reader\Json` for +The following example illustrates a basic use of `Laminas\Config\Reader\Json` for loading configuration data from a JSON file. Consider the following JSON configuration file: @@ -218,19 +218,19 @@ Consider the following JSON configuration file: } ``` -We can use `Zend\Config\Reader\Json` to read the file: +We can use `Laminas\Config\Reader\Json` to read the file: ```php -$reader = new Zend\Config\Reader\Json(); +$reader = new Laminas\Config\Reader\Json(); $data = $reader->fromFile('/path/to/config.json'); echo $data['webhost']; // prints "www.example.com" echo $data['database']['params']['dbname']; // prints "dbproduction" ``` -`Zend\Config\Reader\Json` utilizes [zend-json](https://github.com/zendframework/zend-json). +`Laminas\Config\Reader\Json` utilizes [laminas-json](https://github.com/laminas/laminas-json). -Using `Zend\Config\Reader\Json`, we can include the content of a JSON file in a +Using `Laminas\Config\Reader\Json`, we can include the content of a JSON file in a specific JSON section or element. This is provided using the special syntax `@include`. Suppose we have a JSON file that contains only the database configuration: @@ -258,14 +258,14 @@ Now let's include it via another configuration file: } ``` -## Zend\\Config\\Reader\\Yaml +## Laminas\\Config\\Reader\\Yaml -`Zend\Config\Reader\Yaml` enables developers to consume configuration data in a +`Laminas\Config\Reader\Yaml` enables developers to consume configuration data in a YAML format, and read them in the application by using an array syntax. In order to use the YAML reader, we need to pass a callback to an external PHP library or use the [YAML PECL extension](http://www.php.net/manual/en/book.yaml.php). -The following example illustrates basic usage of `Zend\Config\Reader\Yaml`, +The following example illustrates basic usage of `Laminas\Config\Reader\Yaml`, using the YAML PECL extension. Consider the following YAML file: @@ -281,10 +281,10 @@ database: dbname: dbproduction ``` -We can use `Zend\Config\Reader\Yaml` to read this YAML file: +We can use `Laminas\Config\Reader\Yaml` to read this YAML file: ```php -$reader = new Zend\Config\Reader\Yaml(); +$reader = new Laminas\Config\Reader\Yaml(); $data = $reader->fromFile('/path/to/config.yaml'); echo $data['webhost']; // prints "www.example.com" @@ -299,17 +299,17 @@ the class constructor. For instance, if you want to use the // include the Spyc library require_once 'path/to/spyc.php'; -$reader = new Zend\Config\Reader\Yaml(['Spyc', 'YAMLLoadString']); +$reader = new Laminas\Config\Reader\Yaml(['Spyc', 'YAMLLoadString']); $data = $reader->fromFile('/path/to/config.yaml'); echo $data['webhost']; // prints "www.example.com" echo $data['database']['params']['dbname']; // prints "dbproduction" ``` -You can also instantiate `Zend\Config\Reader\Yaml` without any parameters, and +You can also instantiate `Laminas\Config\Reader\Yaml` without any parameters, and specify the YAML reader using the `setYamlDecoder()` method. -Using `Zend\Config\ReaderYaml`, we can include the content of another YAML file +Using `Laminas\Config\ReaderYaml`, we can include the content of another YAML file in a specific YAML section or element. This is provided using the special syntax `@include`. @@ -332,13 +332,13 @@ webhost: www.example.com @include: database.yaml ``` -## Zend\\Config\\Reader\\JavaProperties +## Laminas\\Config\\Reader\\JavaProperties -`Zend\Config\Reader\JavaProperties` enables developers to provide configuration +`Laminas\Config\Reader\JavaProperties` enables developers to provide configuration data in the popular JavaProperties format, and read it in the application by using array syntax. -The following example illustrates basic usage of `Zend\Config\Reader\JavaProperties` +The following example illustrates basic usage of `Laminas\Config\Reader\JavaProperties` for loading configuration data from a JavaProperties file. Suppose we have the following JavaProperties configuration file: @@ -354,10 +354,10 @@ database.params.password:secret database.params.dbname:dbproduction ``` -We can use `Zend\Config\Reader\JavaProperties` to read it: +We can use `Laminas\Config\Reader\JavaProperties` to read it: ```php -$reader = new Zend\Config\Reader\JavaProperties(); +$reader = new Laminas\Config\Reader\JavaProperties(); $data = $reader->fromFile('/path/to/config.properties'); echo $data['webhost']; // prints "www.example.com" diff --git a/docs/book/theory.md b/docs/book/theory.md index 4383211e..714d816d 100644 --- a/docs/book/theory.md +++ b/docs/book/theory.md @@ -1,33 +1,33 @@ # Theory of Operation -Configuration data are made accessible to `Zend\Config\Config`'s constructor via +Configuration data are made accessible to `Laminas\Config\Config`'s constructor via an associative array, which may be multi-dimensional so data can be organized from general to specific. Concrete adapter classes adapt configuration data from -storage to produce the associative array for `Zend\Config\Config`'s constructor. +storage to produce the associative array for `Laminas\Config\Config`'s constructor. If needed, user scripts may provide such arrays directly to -`Zend\Config\Config`'s constructor, without using a reader class. +`Laminas\Config\Config`'s constructor, without using a reader class. Each value in the configuration data array becomes a property of the -`Zend\Config\Config` object. The key is used as the property name. If a value +`Laminas\Config\Config` object. The key is used as the property name. If a value is itself an array, then the resulting object property is created as a new -`Zend\Config\Config` object, loaded with the array data. This occurs +`Laminas\Config\Config` object, loaded with the array data. This occurs recursively, such that a hierarchy of configuration data may be created with any number of levels. -> ### Extending `Zend\Config\Config` class +> ### Extending `Laminas\Config\Config` class > -> If you decide to extend `Zend\Config\Config` class, each property (subnode) +> If you decide to extend `Laminas\Config\Config` class, each property (subnode) > becomes the same type as the parent class. For example: > > ```php -> class ExtendedConfig extends Zend\Config\Config +> class ExtendedConfig extends Laminas\Config\Config > { > } > > $config = new ExtendedConfig(['node' => ['key' => 'value']]); > > echo get_class($config->node); -> // the result of above is ExtendedConfig not Zend\Config\Config! +> // the result of above is ExtendedConfig not Laminas\Config\Config! > ``` > > This casting occurs in the constructor, which uses the construct `new @@ -36,7 +36,7 @@ number of levels. > a [named constructor](http://verraes.net/2014/06/named-constructors-in-php/): > > ```php -> class ExtendedConfig extends Zend\Config\Config +> class ExtendedConfig extends Laminas\Config\Config > { > public static function createWithDefaults() > { @@ -45,32 +45,32 @@ number of levels. > } > ``` -`Zend\Config\Config` implements the [Countable](http://php.net/manual/en/class.countable.php) +`Laminas\Config\Config` implements the [Countable](http://php.net/manual/en/class.countable.php) and [Iterator](http://php.net/manual/en/class.iterator.php) interfaces in order -to facilitate simple access to configuration data. Thus, `Zend\Config\Config` +to facilitate simple access to configuration data. Thus, `Laminas\Config\Config` objects support the [count()](http://php.net/count) function and PHP constructs such as [foreach](http://php.net/foreach). -By default, configuration data made available through `Zend\Config\Config` are +By default, configuration data made available through `Laminas\Config\Config` are read-only, and an assignment (e.g., `$config->database->host = 'example.com';`) results in an exception. This default behavior may be overridden through the constructor, allowing modification of data values. Also, when modifications are -allowed, `Zend\Config\Config` supports unsetting of values (e.g., +allowed, `Laminas\Config\Config` supports unsetting of values (e.g., `unset($config->database->host)`). The `isReadOnly()` method can be used to -determine if modifications to a given `Zend\Config\Config` object are allowed, +determine if modifications to a given `Laminas\Config\Config` object are allowed, and the `setReadOnly()` method can be used to stop any further modifications to -a `Zend\Config\Config` object that was created allowing modifications. +a `Laminas\Config\Config` object that was created allowing modifications. > ### Modifying Config does not save changes > > It is important not to confuse such in-memory modifications with saving > configuration data out to specific storage media. Tools for creating and > modifying configuration data for various storage media are out of scope with -> respect to `Zend\Config\Config`. Third-party open source solutions are readily +> respect to `Laminas\Config\Config`. Third-party open source solutions are readily > available for the purpose of creating and modifying configuration data for > various storage media. -If you have two `Zend\Config\Config` objects, you can merge them into a single +If you have two `Laminas\Config\Config` objects, you can merge them into a single object using the `merge()` function. For example, given `$config` and `$localConfig`, you can merge data from `$localConfig` to `$config` using `$config->merge($localConfig);`. The items in `$localConfig` will override any @@ -78,7 +78,7 @@ items with the same name in `$config`. > ### Merging requires modifications > -> The `Zend\Config\Config` object that is performing the merge must have been +> The `Laminas\Config\Config` object that is performing the merge must have been > constructed to allow modifications, by passing `TRUE` as the second parameter > of the constructor. The `setReadOnly()` method can then be used to prevent any > further modifications after the merge is complete. diff --git a/docs/book/writer.md b/docs/book/writer.md index cc6a466b..4508789b 100644 --- a/docs/book/writer.md +++ b/docs/book/writer.md @@ -1,44 +1,44 @@ -# Zend\\Config\\Writer +# Laminas\\Config\\Writer -`Zend\Config\Writer` provides the ability to write config files from an array, -`Zend\Config\Config` instance, or any `Traversable` object. `Zend\Config\Writer` +`Laminas\Config\Writer` provides the ability to write config files from an array, +`Laminas\Config\Config` instance, or any `Traversable` object. `Laminas\Config\Writer` is itself only an interface that defining the methods `toFile()` and `toString()`. We have six writers implementing the interface: -- `Zend\Config\Writer\Ini` -- `Zend\Config\Writer\JavaProperties` -- `Zend\Config\Writer\Json` -- `Zend\Config\Writer\PhpArray` -- `Zend\Config\Writer\Xml` -- `Zend\Config\Writer\Yaml` +- `Laminas\Config\Writer\Ini` +- `Laminas\Config\Writer\JavaProperties` +- `Laminas\Config\Writer\Json` +- `Laminas\Config\Writer\PhpArray` +- `Laminas\Config\Writer\Xml` +- `Laminas\Config\Writer\Yaml` -## Zend\\Config\\Writer\\Ini +## Laminas\\Config\\Writer\\Ini The INI writer has two modes for rendering with regard to sections. By default, the top-level configuration is always written into section names. By calling `$writer->setRenderWithoutSectionsFlags(true);` all options are written into the global namespace of the INI file and no sections are applied. -`Zend\Config\Writer\Ini` has an additional option parameter, `nestSeparator`, +`Laminas\Config\Writer\Ini` has an additional option parameter, `nestSeparator`, which defines with which character the single nodes are separated. The default -is a single dot (`.`), such as is accepted by `Zend\Config\Reader\Ini` by +is a single dot (`.`), such as is accepted by `Laminas\Config\Reader\Ini` by default. -When modifying or creating a `Zend\Config\Config` object, there are several +When modifying or creating a `Laminas\Config\Config` object, there are several considerations to keep in mind. To create or modify a value, you simply say set the parameter of the `Config` object via the parameter accessor (`->`). To create a section in the root or to create a branch, just create a new array (`$config->branch = [];`). -### Using Zend\\Config\\Writer\\Ini +### Using Laminas\\Config\\Writer\\Ini Consider the following code, which creates a configuration structure: ```php // Create the config object -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->production = []; $config->production->webhost = 'www.example.com'; @@ -49,7 +49,7 @@ $config->production->database->params->username = 'production'; $config->production->database->params->password = 'secret'; $config->production->database->params->dbname = 'dbproduction'; -$writer = new Zend\Config\Writer\Ini(); +$writer = new Laminas\Config\Writer\Ini(); echo $writer->toString($config); ``` @@ -66,25 +66,25 @@ database.params.dbname = "dbproduction" You can use the method `toFile()` to store the INI data to a file instead. -## Zend\\Config\\Writer\\JavaProperties +## Laminas\\Config\\Writer\\JavaProperties - Since 3.2.0 The JavaProperties writer can only write single-dimensional configuration (i.e., key/value pairs); this is a limitation of the JavaProperties format. -`Zend\Config\Writer\JavaProperties` has a single, optional constructor +`Laminas\Config\Writer\JavaProperties` has a single, optional constructor parameter, `delimiter`, which defines with which character the key/value pairs are separated. The default is a single colon (`:`), such as is accepted by -`Zend\Config\Reader\JavaProperties` by default. +`Laminas\Config\Reader\JavaProperties` by default. -### Using Zend\\Config\\Writer\\JavaProperties +### Using Laminas\\Config\\Writer\\JavaProperties Consider the following code, creating configuration: ```php // Create the config object -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->webhost = 'www.example.com'; // use object notation $config['database.host'] = 'localhost'; // or array notation, for complex key names @@ -92,7 +92,7 @@ $config['database.username'] = 'production'; $config['database.password'] = 'secret'; $config['database.dbname'] = 'dbproduction'; -$writer = new Zend\Config\Writer\JavaProperties(); +$writer = new Laminas\Config\Writer\JavaProperties(); echo $writer->toString($config); ``` @@ -114,7 +114,7 @@ If you want to use an alternate delimiter, such as `=`, pass it to the constructor: ```php -$writer = new Zend\Config\Writer\JavaProperties('='); +$writer = new Laminas\Config\Writer\JavaProperties('='); ``` Using the above configuration, we would now receive: @@ -127,17 +127,17 @@ database.password=secret database.dbname=dbproduction ``` -## Zend\\Config\\Writer\\Xml +## Laminas\\Config\\Writer\\Xml -`Zend\Config\Writer\Xml` can be used to generate an XML string or file. +`Laminas\Config\Writer\Xml` can be used to generate an XML string or file. -### Using Zend\\Config\\Writer\\Xml +### Using Laminas\\Config\\Writer\\Xml Consider the following code, which creates a configuration structure: ```php // Create the config object -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->production = []; $config->production->webhost = 'www.example.com'; @@ -148,7 +148,7 @@ $config->production->database->params->username = 'production'; $config->production->database->params->password = 'secret'; $config->production->database->params->dbname = 'dbproduction'; -$writer = new Zend\Config\Writer\Xml(); +$writer = new Laminas\Config\Writer\Xml(); echo $writer->toString($config); ``` @@ -156,7 +156,7 @@ The result of this code is the following XML string: ```xml - + www.example.com @@ -168,23 +168,23 @@ The result of this code is the following XML string: - + ``` You can use the method `toFile()` to store the XML data to a file. -## Zend\\Config\\Writer\\PhpArray +## Laminas\\Config\\Writer\\PhpArray -`Zend\Config\Writer\PhpArray` can be used to generate a PHP script that +`Laminas\Config\Writer\PhpArray` can be used to generate a PHP script that represents and returns configuration. -### Using Zend\\Config\\Writer\\PhpArray +### Using Laminas\\Config\\Writer\\PhpArray Consider the following code, which creates a configuration structure: ```php // Create the config object -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->production = []; $config->production->webhost = 'www.example.com'; @@ -195,7 +195,7 @@ $config->production->database->params->username = 'production'; $config->production->database->params->password = 'secret'; $config->production->database->params->dbname = 'dbproduction'; -$writer = new Zend\Config\Writer\PhpArray(); +$writer = new Laminas\Config\Writer\PhpArray(); echo $writer->toString($config); ``` @@ -223,18 +223,18 @@ return [ You can use the method `toFile()` to save the PHP script to a file. -## Zend\\Config\\Writer\\Json +## Laminas\\Config\\Writer\\Json -`Zend\Config\Writer\Json` can be used to generate a JSON representation of +`Laminas\Config\Writer\Json` can be used to generate a JSON representation of configuration. -### Using Zend\\Config\\Writer\\Json +### Using Laminas\\Config\\Writer\\Json Consider the following code, which creates a configuration structure: ```php // Create the config object -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->production = []; $config->production->webhost = 'www.example.com'; @@ -245,7 +245,7 @@ $config->production->database->params->username = 'production'; $config->production->database->params->password = 'secret'; $config->production->database->params->dbname = 'dbproduction'; -$writer = new Zend\Config\Writer\Json(); +$writer = new Laminas\Config\Writer\Json(); echo $writer->toString($config); ``` @@ -267,24 +267,24 @@ The result of this code is the following JSON string: You can use the method `toFile()` to save the JSON data to a file. -`Zend\Config\Writer\Json` uses the zend-json component to convert the data to +`Laminas\Config\Writer\Json` uses the laminas-json component to convert the data to JSON. -## Zend\\Config\\Writer\\Yaml +## Laminas\\Config\\Writer\\Yaml -`Zend\Config\Writer\Yaml` can be used to generate a PHP code that returns the YAML +`Laminas\Config\Writer\Yaml` can be used to generate a PHP code that returns the YAML representation of configuration. In order to use the YAML writer, we need to pass a callback to an external PHP library, or use the [YAML PECL extension](http://www.php.net/manual/en/book.yaml.php). -### Using Zend\\Config\\Writer\\Yaml +### Using Laminas\\Config\\Writer\\Yaml Consider the following code, which creates a configuration structure using the YAML PECL extension: ```php // Create the config object -$config = new Zend\Config\Config([], true); +$config = new Laminas\Config\Config([], true); $config->production = []; $config->production->webhost = 'www.example.com'; @@ -295,7 +295,7 @@ $config->production->database->params->username = 'production'; $config->production->database->params->password = 'secret'; $config->production->database->params->dbname = 'dbproduction'; -$writer = new Zend\Config\Writer\Yaml(); +$writer = new Laminas\Config\Writer\Yaml(); echo $writer->toString($config); ``` @@ -322,6 +322,6 @@ library: // include the Spyc library require_once 'path/to/spyc.php'; -$writer = new Zend\Config\Writer\Yaml(['Spyc', 'YAMLDump']); +$writer = new Laminas\Config\Writer\Yaml(['Spyc', 'YAMLDump']); echo $writer->toString($config); ``` diff --git a/mkdocs.yml b/mkdocs.yml index a1e1f4ac..14d4fb69 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,17 +1,16 @@ docs_dir: docs/book site_dir: docs/html -pages: +nav: - index.md - Introduction: intro.md - "Theory of Operation": theory.md - Reference: - - "Zend\\Config\\Reader": reader.md - - "Zend\\Config\\Writer": writer.md - - "Zend\\Config\\Processor": processor.md + - "Laminas\\Config\\Reader": reader.md + - "Laminas\\Config\\Writer": writer.md + - "Laminas\\Config\\Processor": processor.md - "Config Factory": factory.md - Migration: - "To version 3": migration/to-v3.md -site_name: zend-config -site_description: Zend\Config -repo_url: 'https://github.com/zendframework/zend-config' -copyright: 'Copyright (c) 2005-2018 Zend Technologies USA Inc.' +site_name: laminas-config +site_description: Laminas\Config +repo_url: 'https://github.com/laminas/laminas-config' diff --git a/phpcs.xml b/phpcs.xml index e0523af7..b93cc290 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,6 +1,6 @@  - - + + src diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 5d582586..4138506b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,7 +4,7 @@ bootstrap="vendor/autoload.php" colors="true"> - + ./test @@ -16,9 +16,9 @@ - - - - + + + + diff --git a/src/AbstractConfigFactory.php b/src/AbstractConfigFactory.php index 90537201..d2402c3b 100644 --- a/src/AbstractConfigFactory.php +++ b/src/AbstractConfigFactory.php @@ -1,16 +1,17 @@ setFilter($filter); } /** - * @param ZendFilter $filter + * @param LaminasFilter $filter * @return self */ - public function setFilter(ZendFilter $filter) + public function setFilter(LaminasFilter $filter) { $this->filter = $filter; return $this; } /** - * @return ZendFilter + * @return LaminasFilter */ public function getFilter() { diff --git a/src/Processor/ProcessorInterface.php b/src/Processor/ProcessorInterface.php index 02ade41f..b49a5d86 100644 --- a/src/Processor/ProcessorInterface.php +++ b/src/Processor/ProcessorInterface.php @@ -1,13 +1,14 @@ setTranslator($translator); $this->setTextDomain($textDomain); @@ -44,17 +45,17 @@ public function __construct(ZendTranslator $translator, $textDomain = 'default', } /** - * @param ZendTranslator $translator + * @param LaminasTranslator $translator * @return self */ - public function setTranslator(ZendTranslator $translator) + public function setTranslator(LaminasTranslator $translator) { $this->translator = $translator; return $this; } /** - * @return ZendTranslator + * @return LaminasTranslator */ public function getTranslator() { diff --git a/src/Reader/Ini.php b/src/Reader/Ini.php index 7418f73c..99dc9e6f 100644 --- a/src/Reader/Ini.php +++ b/src/Reader/Ini.php @@ -1,13 +1,14 @@ Reader\JavaProperties::class, 'javaProperties' => Reader\JavaProperties::class, 'JavaProperties' => Reader\JavaProperties::class, + + // Legacy Zend Framework aliases + \Zend\Config\Reader\Ini::class => Reader\Ini::class, + \Zend\Config\Reader\Json::class => Reader\Json::class, + \Zend\Config\Reader\Xml::class => Reader\Xml::class, + \Zend\Config\Reader\Yaml::class => Reader\Yaml::class, + \Zend\Config\Reader\JavaProperties::class => Reader\JavaProperties::class, + + // v2 normalized FQCNs + 'zendconfigreaderini' => Reader\Ini::class, + 'zendconfigreaderjson' => Reader\Json::class, + 'zendconfigreaderxml' => Reader\Xml::class, + 'zendconfigreaderyaml' => Reader\Yaml::class, + 'zendconfigreaderjavaproperties' => Reader\JavaProperties::class, ]; protected $factories = [ @@ -39,11 +54,11 @@ class ReaderPluginManager extends AbstractPluginManager // Legacy (v2) due to alias resolution; canonical form of resolved // alias is used to look up the factory, while the non-normalized // resolved alias is used as the requested name passed to the factory. - 'zendconfigreaderini' => InvokableFactory::class, - 'zendconfigreaderjson' => InvokableFactory::class, - 'zendconfigreaderxml' => InvokableFactory::class, - 'zendconfigreaderyaml' => InvokableFactory::class, - 'zendconfigreaderjavaproperties' => InvokableFactory::class, + 'laminasconfigreaderini' => InvokableFactory::class, + 'laminasconfigreaderjson' => InvokableFactory::class, + 'laminasconfigreaderxml' => InvokableFactory::class, + 'laminasconfigreaderyaml' => InvokableFactory::class, + 'laminasconfigreaderjavaproperties' => InvokableFactory::class, ]; /** diff --git a/src/StandaloneReaderPluginManager.php b/src/StandaloneReaderPluginManager.php index d57532e0..518f8d61 100644 --- a/src/StandaloneReaderPluginManager.php +++ b/src/StandaloneReaderPluginManager.php @@ -1,11 +1,12 @@ setIndentString(str_repeat(' ', 4)); $writer->startDocument('1.0', 'UTF-8'); - $writer->startElement('zend-config'); + $writer->startElement('laminas-config'); foreach ($config as $sectionName => $data) { if (! is_array($data)) { diff --git a/src/Writer/Yaml.php b/src/Writer/Yaml.php index 97188dda..f369d821 100644 --- a/src/Writer/Yaml.php +++ b/src/Writer/Yaml.php @@ -1,13 +1,14 @@ Writer\JavaProperties::class, 'javaProperties' => Writer\JavaProperties::class, 'JavaProperties' => Writer\JavaProperties::class, + + // Legacy Zend Framework aliases + \Zend\Config\Writer\Ini::class => Writer\Ini::class, + \Zend\Config\Writer\JavaProperties::class => Writer\JavaProperties::class, + \Zend\Config\Writer\Json::class => Writer\Json::class, + \Zend\Config\Writer\PhpArray::class => Writer\PhpArray::class, + \Zend\Config\Writer\Yaml::class => Writer\Yaml::class, + \Zend\Config\Writer\Xml::class => Writer\Xml::class, + + // v2 normalized FQCNs + 'zendconfigwriterini' => Writer\Ini::class, + 'zendconfigwriterjavaproperties' => Writer\JavaProperties::class, + 'zendconfigwriterjson' => Writer\Json::class, + 'zendconfigwriterphparray' => Writer\PhpArray::class, + 'zendconfigwriteryaml' => Writer\Yaml::class, + 'zendconfigwriterxml' => Writer\Xml::class, ]; protected $factories = [ @@ -44,12 +61,12 @@ class WriterPluginManager extends AbstractPluginManager // Legacy (v2) due to alias resolution; canonical form of resolved // alias is used to look up the factory, while the non-normalized // resolved alias is used as the requested name passed to the factory. - 'zendconfigwriterini' => InvokableFactory::class, - 'zendconfigwriterjavaproperties' => InvokableFactory::class, - 'zendconfigwriterjson' => InvokableFactory::class, - 'zendconfigwriterphparray' => InvokableFactory::class, - 'zendconfigwriteryaml' => InvokableFactory::class, - 'zendconfigwriterxml' => InvokableFactory::class, + 'laminasconfigwriterini' => InvokableFactory::class, + 'laminasconfigwriterjavaproperties' => InvokableFactory::class, + 'laminasconfigwriterjson' => InvokableFactory::class, + 'laminasconfigwriterphparray' => InvokableFactory::class, + 'laminasconfigwriteryaml' => InvokableFactory::class, + 'laminasconfigwriterxml' => InvokableFactory::class, ]; /** diff --git a/test/AbstractConfigFactoryTest.php b/test/AbstractConfigFactoryTest.php index 9e939540..3333d911 100644 --- a/test/AbstractConfigFactoryTest.php +++ b/test/AbstractConfigFactoryTest.php @@ -1,17 +1,17 @@ test = '32'; } - public function testZF343() + public function testLaminas43() { $config_array = [ 'controls' => [ @@ -262,7 +263,7 @@ public function testZF343() $this->assertSame([], $form_config->controls->visible->attribs->toArray()); } - public function testZF402() + public function testLaminas402() { $configArray = [ 'data1' => 'someValue', @@ -277,14 +278,14 @@ public function testZF402() } } - public function testZf1019HandlingInvalidKeyNames() + public function testLaminas1019HandlingInvalidKeyNames() { $config = new Config($this->leadingdot); $array = $config->toArray(); $this->assertContains('dot-test', $array['.test']); } - public function testZF1019EmptyKeys() + public function testLaminas1019EmptyKeys() { $config = new Config($this->invalidkey); $array = $config->toArray(); @@ -292,7 +293,7 @@ public function testZF1019EmptyKeys() $this->assertContains('test', $array['']); } - public function testZF1417DefaultValues() + public function testLaminas1417DefaultValues() { $config = new Config($this->all); $value = $config->get('notthere', 'default'); @@ -339,12 +340,12 @@ public function testMerge() $this->assertEquals('bar', $configA->text); // config->numerical-> ... - $this->assertInstanceOf('\Zend\Config\Config', $configA->numerical); + $this->assertInstanceOf('\Laminas\Config\Config', $configA->numerical); $this->assertEquals('first', $configA->numerical->{0}); $this->assertEquals('second', $configA->numerical->{1}); // config->numerical->{2}-> ... - $this->assertInstanceOf('\Zend\Config\Config', $configA->numerical->{2}); + $this->assertInstanceOf('\Laminas\Config\Config', $configA->numerical->{2}); $this->assertEquals('third', $configA->numerical->{2}->{0}); $this->assertEquals(null, $configA->numerical->{2}->{1}); @@ -353,19 +354,19 @@ public function testMerge() $this->assertEquals('fifth', $configA->numerical->{4}); // config->numerical->{5} - $this->assertInstanceOf('\Zend\Config\Config', $configA->numerical->{5}); + $this->assertInstanceOf('\Laminas\Config\Config', $configA->numerical->{5}); $this->assertEquals('sixth', $configA->numerical->{5}->{0}); $this->assertEquals(null, $configA->numerical->{5}->{1}); // config->misaligned - $this->assertInstanceOf('\Zend\Config\Config', $configA->misaligned); + $this->assertInstanceOf('\Laminas\Config\Config', $configA->misaligned); $this->assertEquals('foo', $configA->misaligned->{2}); $this->assertEquals('bar', $configA->misaligned->{3}); $this->assertEquals('baz', $configA->misaligned->{4}); $this->assertEquals(null, $configA->misaligned->{0}); // config->mixed - $this->assertInstanceOf('\Zend\Config\Config', $configA->mixed); + $this->assertInstanceOf('\Laminas\Config\Config', $configA->mixed); $this->assertEquals('bar', $configA->mixed->foo); $this->assertFalse($configA->mixed->{0}); $this->assertNull($configA->mixed->{1}); @@ -425,7 +426,7 @@ public function testArrayAccessModification() } /** - * Ensures that toArray() supports objects of types other than Zend_Config + * Ensures that toArray() supports objects of types other than Laminas_Config * * @return void */ @@ -463,7 +464,7 @@ public function testSetReadOnly() $config->c = 'c'; } - public function testZF3408countNotDecreasingOnUnset() + public function testLaminas408countNotDecreasingOnUnset() { $configData = [ 'a' => 'a', @@ -476,7 +477,7 @@ public function testZF3408countNotDecreasingOnUnset() $this->assertCount(2, $config); } - public function testZF4107ensureCloneDoesNotKeepNestedReferences() + public function testLaminas4107ensureCloneDoesNotKeepNestedReferences() { $parent = new Config(['key' => ['nested' => 'parent']], true); $newConfig = clone $parent; @@ -487,7 +488,7 @@ public function testZF4107ensureCloneDoesNotKeepNestedReferences() } /** - * @group ZF-3575 + * @group Laminas-3575 * */ public function testMergeHonoursAllowModificationsFlagAtAllLevels() @@ -507,7 +508,7 @@ public function testMergeHonoursAllowModificationsFlagAtAllLevels() } /** - * @group ZF-5771a + * @group Laminas-5771a * */ public function testUnsettingFirstElementDuringForeachDoesNotSkipAnElement() @@ -522,7 +523,7 @@ public function testUnsettingFirstElementDuringForeachDoesNotSkipAnElement() foreach ($config as $key => $value) { $keyList[] = $key; if ($key == 'first') { - unset($config->$key); // uses magic Zend\Config\Config::__unset() method + unset($config->$key); // uses magic Laminas\Config\Config::__unset() method } } @@ -532,7 +533,7 @@ public function testUnsettingFirstElementDuringForeachDoesNotSkipAnElement() } /** - * @group ZF-5771 + * @group Laminas-5771 * */ public function testUnsettingAMiddleElementDuringForeachDoesNotSkipAnElement() @@ -547,7 +548,7 @@ public function testUnsettingAMiddleElementDuringForeachDoesNotSkipAnElement() foreach ($config as $key => $value) { $keyList[] = $key; if ($key == 'second') { - unset($config->$key); // uses magic Zend\Config\Config::__unset() method + unset($config->$key); // uses magic Laminas\Config\Config::__unset() method } } @@ -557,7 +558,7 @@ public function testUnsettingAMiddleElementDuringForeachDoesNotSkipAnElement() } /** - * @group ZF-5771 + * @group Laminas-5771 * */ public function testUnsettingLastElementDuringForeachDoesNotSkipAnElement() @@ -572,7 +573,7 @@ public function testUnsettingLastElementDuringForeachDoesNotSkipAnElement() foreach ($config as $key => $value) { $keyList[] = $key; if ($key == 'third') { - unset($config->$key); // uses magic Zend\Config\Config::__unset() method + unset($config->$key); // uses magic Laminas\Config\Config::__unset() method } } @@ -582,7 +583,7 @@ public function testUnsettingLastElementDuringForeachDoesNotSkipAnElement() } /** - * @group ZF-4728 + * @group Laminas-4728 * */ public function testSetReadOnlyAppliesToChildren() @@ -595,7 +596,7 @@ public function testSetReadOnlyAppliesToChildren() $this->assertTrue($config->one->two->isReadOnly(), 'Second level children are writable'); } - public function testZF6995toArrayDoesNotDisturbInternalIterator() + public function testLaminas6995toArrayDoesNotDisturbInternalIterator() { $config = new Config(range(1, 10)); $config->rewind(); @@ -607,9 +608,9 @@ public function testZF6995toArrayDoesNotDisturbInternalIterator() /** * @depends testMerge - * @link http://framework.zend.com/issues/browse/ZF2-186 + * @link https://getlaminas.org/issues/browse/Laminas-186 */ - public function testZF2186mergeReplacingUnnamedConfigSettings() + public function testLaminas186mergeReplacingUnnamedConfigSettings() { $arrayA = [ 'flag' => true, diff --git a/test/FactoryTest.php b/test/FactoryTest.php index 0dd692bc..caf3b81a 100644 --- a/test/FactoryTest.php +++ b/test/FactoryTest.php @@ -1,25 +1,26 @@ tmpfiles[$ext])) { - $this->tmpfiles[$ext] = tempnam(sys_get_temp_dir(), 'zend-config-writer').'.'.$ext; + $this->tmpfiles[$ext] = tempnam(sys_get_temp_dir(), 'laminas-config-writer').'.'.$ext; } return $this->tmpfiles[$ext]; } @@ -157,10 +158,10 @@ public function testReturnsConfigObjectIfRequestedAndArrayOtherwise() $this->assertInternalType('array', $configArray); $configObject = Factory::fromFile($files[0], true); - $this->assertInstanceOf('Zend\Config\Config', $configObject); + $this->assertInstanceOf('Laminas\Config\Config', $configObject); $configObject = Factory::fromFiles($files, true); - $this->assertInstanceOf('Zend\Config\Config', $configObject); + $this->assertInstanceOf('Laminas\Config\Config', $configObject); } public function testNonExistentFileThrowsRuntimeException() @@ -180,7 +181,7 @@ public function testFactoryCanRegisterCustomReaderInstance() Factory::registerReader('dum', new Reader\TestAssets\DummyReader()); $configObject = Factory::fromFile(__DIR__ . '/TestAssets/dummy.dum', true); - $this->assertInstanceOf('Zend\Config\Config', $configObject); + $this->assertInstanceOf('Laminas\Config\Config', $configObject); $this->assertEquals($configObject['one'], 1); } @@ -195,7 +196,7 @@ public function testFactoryCanRegisterCustomReaderPlugin() Factory::registerReader('dum', 'DummyReader'); $configObject = Factory::fromFile(__DIR__ . '/TestAssets/dummy.dum', true); - $this->assertInstanceOf('Zend\Config\Config', $configObject); + $this->assertInstanceOf('Laminas\Config\Config', $configObject); $this->assertEquals($configObject['one'], 1); } diff --git a/test/Processor/ConstantTest.php b/test/Processor/ConstantTest.php index 5e1397b2..7319be1e 100644 --- a/test/Processor/ConstantTest.php +++ b/test/Processor/ConstantTest.php @@ -1,15 +1,16 @@ ['ZEND_CONFIG_PROCESSOR_CONSTANT_TEST', ZEND_CONFIG_PROCESSOR_CONSTANT_TEST], + 'constant' => ['LAMINAS_CONFIG_PROCESSOR_CONSTANT_TEST', LAMINAS_CONFIG_PROCESSOR_CONSTANT_TEST], 'class-constant' => [__CLASS__ . '::CONFIG_TEST', self::CONFIG_TEST], 'class-pseudo-constant' => [__CLASS__ . '::class', self::class], 'class-pseudo-constant-upper' => [__CLASS__ . '::CLASS', self::class], diff --git a/test/Processor/TokenTest.php b/test/Processor/TokenTest.php index b49c770e..63a50e52 100644 --- a/test/Processor/TokenTest.php +++ b/test/Processor/TokenTest.php @@ -1,17 +1,18 @@ insert($processor1); $queue->insert($processor2); - $this->assertInstanceOf('\Zend\Config\Processor\Queue', $queue); + $this->assertInstanceOf('\Laminas\Config\Processor\Queue', $queue); $this->assertEquals(2, $queue->count()); $this->assertTrue($queue->contains($processor1)); $this->assertTrue($queue->contains($processor2)); @@ -276,7 +277,7 @@ public function testTokenChangeParams() } /** - * @group ZF2-5772 + * @group Laminas-5772 */ public function testTokenChangeParamsRetainsType() { @@ -303,7 +304,7 @@ public function testTokenChangeParamsRetainsType() } /** - * @group ZF2-5772 + * @group Laminas-5772 */ public function testTokenChangeParamsReplacesInNumerics() { @@ -332,7 +333,7 @@ public function testTokenChangeParamsReplacesInNumerics() } /** - * @group ZF2-5772 + * @group Laminas-5772 */ public function testIgnoresEmptyStringReplacement() { @@ -429,7 +430,7 @@ public function testTranslatorWithoutIntl() $this->expectException(I18nException\ExtensionNotLoadedException::class); $this->expectExceptionMessage( - 'Zend\I18n\Translator component requires the intl PHP extension' + 'Laminas\I18n\Translator component requires the intl PHP extension' ); $config = new Config($this->translatorData, true); @@ -471,7 +472,7 @@ public function testTranslatorSingleValueWithoutIntl() } $this->expectException(I18nException\ExtensionNotLoadedException::class); - $this->expectExceptionMessage('Zend\I18n\Translator component requires the intl PHP extension'); + $this->expectExceptionMessage('Laminas\I18n\Translator component requires the intl PHP extension'); $translator = new Translator(); $translator->addTranslationFile('phparray', $this->translatorFile); @@ -486,7 +487,7 @@ public function testFilter() $filter = new StringToLower(); $processor = new FilterProcessor($filter); - $this->assertInstanceOf('Zend\Filter\StringToLower', $processor->getFilter()); + $this->assertInstanceOf('Laminas\Filter\StringToLower', $processor->getFilter()); $processor->process($config); $this->assertEquals('some mixedcase value', $config->simple); diff --git a/test/Reader/AbstractReaderTestCase.php b/test/Reader/AbstractReaderTestCase.php index 16020bbf..3ae70e5e 100644 --- a/test/Reader/AbstractReaderTestCase.php +++ b/test/Reader/AbstractReaderTestCase.php @@ -1,18 +1,19 @@ - + foo baz foo - + ECS; @@ -81,16 +82,16 @@ public function testInvalidString() { $xml = << - + baz - + ECS; $this->expectException(Exception\RuntimeException::class); $this->reader->fromString($xml); } - public function testZF300MultipleKeysOfTheSameName() + public function testLaminas00MultipleKeysOfTheSameName() { $config = $this->reader->fromFile($this->getTestAssetPath('array')); @@ -100,7 +101,7 @@ public function testZF300MultipleKeysOfTheSameName() $this->assertEquals('5', $config['three']['four'][0]['five']); } - public function testZF300ArraysWithMultipleChildren() + public function testLaminas00ArraysWithMultipleChildren() { $config = $this->reader->fromFile($this->getTestAssetPath('array')); @@ -113,7 +114,7 @@ public function testZF300ArraysWithMultipleChildren() } /** - * @group zf6279 + * @group laminas6279 */ public function testElementWithBothAttributesAndAStringValueIsProcessedCorrectly() { @@ -176,11 +177,11 @@ public function testCloseWhenCallFromStringReaderGetInvalid() { $xml = << - + foo baz foo - + ECS; @@ -205,7 +206,7 @@ public function testCloseWhenCallFromStringReaderGetInvalid() */ private function getInternalXmlReader(Xml $xml) { - $reflectionReader = new ReflectionProperty('Zend\Config\Reader\Xml', 'reader'); + $reflectionReader = new ReflectionProperty('Laminas\Config\Reader\Xml', 'reader'); $reflectionReader->setAccessible(true); diff --git a/test/Reader/YamlTest.php b/test/Reader/YamlTest.php index 23974a1c..c170dc03 100644 --- a/test/Reader/YamlTest.php +++ b/test/Reader/YamlTest.php @@ -1,31 +1,32 @@ markTestSkipped('Yaml test for Zend\Config skipped'); + if (! getenv('TESTS_LAMINAS_CONFIG_YAML_ENABLED')) { + $this->markTestSkipped('Yaml test for Laminas\Config skipped'); } - if ($lib = getenv('TESTS_ZEND_CONFIG_YAML_LIB_INCLUDE')) { + if ($lib = getenv('TESTS_LAMINAS_CONFIG_YAML_LIB_INCLUDE')) { require_once $lib; } - if ($readerCalback = getenv('TESTS_ZEND_CONFIG_READER_YAML_CALLBACK')) { + if ($readerCalback = getenv('TESTS_LAMINAS_CONFIG_READER_YAML_CALLBACK')) { $yamlReader = explode('::', $readerCalback); if (isset($yamlReader[1])) { $this->reader = new YamlReader([$yamlReader[0], $yamlReader[1]]); diff --git a/test/ReaderPluginManagerCompatibilityTest.php b/test/ReaderPluginManagerCompatibilityTest.php index bfbe5159..cd72a383 100644 --- a/test/ReaderPluginManagerCompatibilityTest.php +++ b/test/ReaderPluginManagerCompatibilityTest.php @@ -1,18 +1,19 @@ tmpfile)) { - $this->tmpfile = tempnam(sys_get_temp_dir(), 'zend-config-writer'); + $this->tmpfile = tempnam(sys_get_temp_dir(), 'laminas-config-writer'); } return $this->tmpfile; } diff --git a/test/Writer/IniTest.php b/test/Writer/IniTest.php index 4ed4fcd9..aa4b7990 100644 --- a/test/Writer/IniTest.php +++ b/test/Writer/IniTest.php @@ -1,18 +1,19 @@ - + foo baz foo - + ECS; @@ -58,7 +59,7 @@ public function testSectionsToString() $expected = << - + www.example.com @@ -70,7 +71,7 @@ public function testSectionsToString() - + ECS; @@ -90,10 +91,10 @@ public function testAddBranchProperyConstructsSubBranchesOfTypeNumeric() $expected = << - + foo bar - + ECS; diff --git a/test/Writer/YamlTest.php b/test/Writer/YamlTest.php index 6800fced..6856bd2b 100644 --- a/test/Writer/YamlTest.php +++ b/test/Writer/YamlTest.php @@ -1,32 +1,33 @@ markTestSkipped('Yaml test for Zend\Config skipped'); + if (! getenv('TESTS_LAMINAS_CONFIG_YAML_ENABLED')) { + $this->markTestSkipped('Yaml test for Laminas\Config skipped'); } - if ($lib = getenv('TESTS_ZEND_CONFIG_YAML_LIB_INCLUDE')) { + if ($lib = getenv('TESTS_LAMINAS_CONFIG_YAML_LIB_INCLUDE')) { require_once $lib; } - if ($readerCallback = getenv('TESTS_ZEND_CONFIG_READER_YAML_CALLBACK')) { + if ($readerCallback = getenv('TESTS_LAMINAS_CONFIG_READER_YAML_CALLBACK')) { $yamlReader = explode('::', $readerCallback); if (isset($yamlReader[1])) { $this->reader = new YamlReader([$yamlReader[0], $yamlReader[1]]); @@ -37,7 +38,7 @@ public function setUp() $this->reader = new YamlReader(); } - if ($writerCallback = getenv('TESTS_ZEND_CONFIG_WRITER_YAML_CALLBACK')) { + if ($writerCallback = getenv('TESTS_LAMINAS_CONFIG_WRITER_YAML_CALLBACK')) { $yamlWriter = explode('::', $writerCallback); if (isset($yamlWriter[1])) { $this->writer = new YamlWriter([$yamlWriter[0], $yamlWriter[1]]); diff --git a/test/WriterPluginManagerCompatibilityTest.php b/test/WriterPluginManagerCompatibilityTest.php index fd4343ed..a3422592 100644 --- a/test/WriterPluginManagerCompatibilityTest.php +++ b/test/WriterPluginManagerCompatibilityTest.php @@ -1,18 +1,19 @@