From 0a6c9e699b187d202b31f92aad40680a44811144 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:07:30 -0500
Subject: [PATCH 01/24] update to github template + dependencies
---
.github/CONTRIBUTING.md | 17 +-
.../Deprecation_notice_or_request.md | 10 +
.github/LICENSE | 6 +-
.../feature.md => PULL_REQUEST_TEMPLATE.md} | 0
.github/PULL_REQUEST_TEMPLATE/deprecation.md | 14 +
.github/PULL_REQUEST_TEMPLATE/issue.md | 5 -
.github/SECURITY.md | 2 +-
.github/coding-standards-and-styles.md | 30 +
.github/workflows/php.yml | 42 +-
.github/workflows/php8.yml | 41 +-
composer.json | 22 +-
composer.lock | 3354 ++++++++---------
phpcs.xml | 16 +
phpstan.neon | 4 +
14 files changed, 1805 insertions(+), 1758 deletions(-)
create mode 100644 .github/ISSUE_TEMPLATE/Deprecation_notice_or_request.md
rename .github/{PULL_REQUEST_TEMPLATE/feature.md => PULL_REQUEST_TEMPLATE.md} (100%)
create mode 100644 .github/PULL_REQUEST_TEMPLATE/deprecation.md
delete mode 100644 .github/PULL_REQUEST_TEMPLATE/issue.md
create mode 100644 .github/coding-standards-and-styles.md
create mode 100644 phpcs.xml
create mode 100644 phpstan.neon
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 5a9750f..51cfd52 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1,13 +1,14 @@
# Contributing
-Contributions are **welcome** and will be **credited**. We accept contributions via Pull Requests on [GitHub](https://github.com/8fold/php-markup).
+Contributions are **welcome** and will be **credited**. We accept contributions via Pull Requests on [GitHub](https://github.com/8fold/php-shoop).
-## Goals
+## Priorities
-- Readability over speed over cleverness.
-- Fail gracefully not by blowing things up.
+We leverage GitHub's labeling system to inform prioritization of issues. The higher the number, the higher priority.
-### Overall
+Security is always the highest priority within the applicable scope of the product. Therefore, some packages are low-level and intended for developers and give the flexibility to them to surround the package with a security layer.
+
+## Overall goals (philosophy and values)
There are a lot of philosphical things tied in to the way we strive to do software development. Some you are most likely familiar with, others maybe not so much.
@@ -27,6 +28,8 @@ There are a lot of philosphical things tied in to the way we strive to do softwa
**Solutions over scapegoats:** There are times when these principles will not be followed or someone will make a mistake. Berating the offender doesn't get any of us any closer to improving the execution of these principles.
+**The Community Principle:** If you create or acquire it you help maintain it; time, food, money, and so on.
+
## Code promotion
Capabilities should be implemented at a low, concrete level before being promoted to higher-levels and made more abstract.
@@ -38,3 +41,7 @@ If the language being used allows access levels on variable, constants, methods,
This reduces the size of the public API, which makes the class easier to consume by developers.
Further, it is preferred that class properties remain private, always. This means pre- and post-processing for setting and getting properties can be added without being a breaking change to developers.
+
+## Releasing
+
+Major - fix bugs -> Patch - optimize -> Minor - fix bugs -> Patch - new feature -> Minor - interface changes -> Major
diff --git a/.github/ISSUE_TEMPLATE/Deprecation_notice_or_request.md b/.github/ISSUE_TEMPLATE/Deprecation_notice_or_request.md
new file mode 100644
index 0000000..77585aa
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/Deprecation_notice_or_request.md
@@ -0,0 +1,10 @@
+---
+name: Deprecation Notice or Request
+about: Notify or request a feature be deprecated
+---
+
+**What feature should be deprecated?**
+
+**Why should the feature be deprecated?**
+
+**What alternative means delivers similar or same results?**
diff --git a/.github/LICENSE b/.github/LICENSE
index 68ede65..7a8390b 100644
--- a/.github/LICENSE
+++ b/.github/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2019 Josh Bruce
+Copyright (c) 2021 8fold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -19,7 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-
-## Notice
-
-This software makes use of software developed by others. Those software applications are not subject to this license, nor is this software subject to those licenses. See the individual modules for further details.
diff --git a/.github/PULL_REQUEST_TEMPLATE/feature.md b/.github/PULL_REQUEST_TEMPLATE.md
similarity index 100%
rename from .github/PULL_REQUEST_TEMPLATE/feature.md
rename to .github/PULL_REQUEST_TEMPLATE.md
diff --git a/.github/PULL_REQUEST_TEMPLATE/deprecation.md b/.github/PULL_REQUEST_TEMPLATE/deprecation.md
new file mode 100644
index 0000000..4cee712
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE/deprecation.md
@@ -0,0 +1,14 @@
+---
+name: Deprecation Notice or Request
+about: Notify or request a feature be deprecated
+---
+
+**What feature should be deprecated?**
+
+**Why should the feature be deprecated?**
+
+**What alternative means delivers similar or same results?**
+
+## List of issues fixed
+
+[Please use GitHub notation to automatically close the issues: Fixes #{issue number}]
diff --git a/.github/PULL_REQUEST_TEMPLATE/issue.md b/.github/PULL_REQUEST_TEMPLATE/issue.md
deleted file mode 100644
index 5b9ee2a..0000000
--- a/.github/PULL_REQUEST_TEMPLATE/issue.md
+++ /dev/null
@@ -1,5 +0,0 @@
-[Describe what this PR is about]
-
-## List of issues fixed
-
-[Please use GitHub notation to automatically close the issues: Fixes #{issue number}]
diff --git a/.github/SECURITY.md b/.github/SECURITY.md
index 7c74db6..39c5777 100644
--- a/.github/SECURITY.md
+++ b/.github/SECURITY.md
@@ -1,6 +1,6 @@
# Security Policy
-The only completely secure system is the one that doesn't exist in the first place. Having said that, we take the security of Marked very seriously.
+The only completely secure system is the one that doesn't exist in the first place. Having said that, we take security seriously.
## Reporting a Vulnerability
diff --git a/.github/coding-standards-and-styles.md b/.github/coding-standards-and-styles.md
new file mode 100644
index 0000000..dc41b2d
--- /dev/null
+++ b/.github/coding-standards-and-styles.md
@@ -0,0 +1,30 @@
+# Coding Standards and Styles
+
+Coding standards help multiple developers work in the same codebase and not have to answer certain questions because they are already answered by the standards. Further, whenever possible, if the language being discussed has community accepted standards or a governing body, those standards should be used. Finally, minimal exceptions can be made with just cause so long as those changes minimize cognitive load across the majority of developers working in the various codebases.
+
+For example, the [w3c](https://www.w3.org/) is the generally accepted governing body for HTML and CSS; therefore, when it comes to answering questions or disputes related to HTML or CSS, that's where one should go. ECMAScript is the generally accepted standard for JavaScript. And, the PHP Framework Interop Group \([PHP-Fig](https://www.php-fig.org)\) is the same for PHP.
+
+Therefore, if I, as a developer, go from the 8fold Component, to Laravel, to AMOS, there are certain conventions I should be able to reasonably expect.
+
+## PHP
+
+Standards come in the form of PHP Standards Recommendations \([PSRs](https://www.php-fig.org/psr/)\) proposals are made, debated, modified, and potentially accepted. As the PHP-FIG discusses proposals that could impact all PHP developers, the PSRs are generally not accepted lightly.
+
+If no commentary is added for a specific PSR or section of a PSR, it is safe to assume following the full specification is desired. Modifications and extensions will be indicated by _italics_.
+
+* [**PSR-1**](https://www.php-fig.org/psr/psr-1/)**:**
+ * PSR-1 is the base recommendation and is required by both of the following recommendations.
+* [**PSR-2**](https://www.php-fig.org/psr/psr-2/)**:**
+ * As visibility is required and the following are not, `abstract`, `final`, _and_ `static` must precede visibility. If `static` is present, it must come directly before the visibility. _These modifications front-load the answering of the following questions in turn: Do I need to implement it? Can I override it? Is it a class function or instance method? From where can I see it, if at all?
+ * Opening braces for control structures MUST go on the same line, and closing braces MUST go on the next line after the body. _The body of a control structure SHOULD be followed by a blank line to distinguish between discreet thoughts. The body MAY be preceded by a blank line to reduce visual complexity and minimize blurring the lines._
+* [**PSR-12**](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md)**:** This PSR is under review. With that said, it is the primary recommendation followed. Specifically-multi line control structures.
+ * 2.5: _Unless a library we use needs something else. At which point we should notify the library authors._
+ * 4.4: _See modifications from PSR-2._
+ * 4.5: _Any method returning a value MUST declare a return type. Methods SHOULD NOT return null (void is exception), favoring an empty value of the correct type. Wildcard arguments that can be of_ any _type SHOULD be avoided, and arguments SHOULD have a type specified._
+ * 5.1: _See modifications from PSR-2 regarding ordering._
+ * 5.2: _See modifications from PSR-2 regarding control structures._
+ * 5.6: _See modifications from PSR-2 regarding control structures._
+ * 6: _Ternary operators SHOULD NOT be used unless simple in form and MUST NOT be more than one unless as an artifact of a library being used. Unary operators SHOULD be avoided to clearly express the intent and reduce possible ordering problems \(ex. x-- may not be the same as --x; whereas x-y and y-x is clearly understood\)._
+* **Other**
+ * Variables SHOULD NOT be nullable. Instead of null, use an empty variation of the same type. This reduces boilerplate null-checking code.
+
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
index 359ce88..e58325f 100644
--- a/.github/workflows/php.yml
+++ b/.github/workflows/php.yml
@@ -1,31 +1,33 @@
-name: PHP Composer
+name: PHP 7.4
+
on:
push:
- branches:
- - master
+ branches: [main]
pull_request:
- branches:
- - master
-
+ branches: [main]
jobs:
build:
-
runs-on: ubuntu-latest
-
steps:
- - name: Checkout
- uses: actions/checkout@v2
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup PHP Action
+ uses: shivammathur/setup-php@2.15.0
+ with:
+ php-version: '7.4'
+
+ - name: Validate composer.json and composer.lock
+ run: composer validate
- - name: Setup PHP Action
- uses: shivammathur/setup-php@2.9.0
- with:
- php-version: '7.4'
+ - name: Install dependencies
+ run: composer install --prefer-dist --no-progress
- - name: Validate composer.json and composer.lock
- run: composer validate
+ - name: Run style check
+ run: composer run style
- - name: Install dependencies
- run: composer install --prefer-dist --no-progress --no-suggest
+ - name: Run static analyzer
+ run: composer run stan
- - name: Run test suite
- run: vendor/bin/phpunit
+ - name: Run tests
+ run: composer run test
diff --git a/.github/workflows/php8.yml b/.github/workflows/php8.yml
index fa2bf43..cd55c28 100644
--- a/.github/workflows/php8.yml
+++ b/.github/workflows/php8.yml
@@ -1,31 +1,34 @@
-name: PHP Composer
+name: PHP 8.0
+
on:
push:
- branches:
- - master
+ branches: [main]
pull_request:
- branches:
- - master
+ branches: [main]
jobs:
build:
-
runs-on: ubuntu-latest
-
steps:
- - name: Checkout
- uses: actions/checkout@v2
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup PHP Action
+ uses: shivammathur/setup-php@2.15.0
+ with:
+ php-version: '8.0'
+
+ - name: Validate composer.json and composer.lock
+ run: composer validate
- - name: Setup PHP Action
- uses: shivammathur/setup-php@2.9.0
- with:
- php-version: '8.0'
+ - name: Install dependencies
+ run: composer install --prefer-dist --no-progress
- - name: Validate composer.json and composer.lock
- run: composer validate
+ - name: Run style check
+ run: composer run style
- - name: Install dependencies
- run: composer install --prefer-dist --no-progress --no-suggest
+ - name: Run static analyzer
+ run: composer run stan
- - name: Run test suite
- run: vendor/bin/phpunit
+ - name: Run tests
+ run: composer run test
diff --git a/composer.json b/composer.json
index 3e25918..89a52d4 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
"name": "8fold/php-markup",
- "description": "8fold Markup seeks to make writing semi-structured data easier while allowing for more dynamism.",
+ "description": "8fold Markup makes writing semi-structured data easier while allowing for more dynamism.",
"type": "library",
"license": "MIT",
"authors": [
@@ -11,12 +11,12 @@
],
"require": {
"php": "^7.2|^8.0",
- "8fold/php-shoop-shelf": "^0.8.6",
- "8fold/php-html-spec": "^0.0.5",
- "nesbot/carbon": "^2.5"
+ "8fold/php-html-builder": "^0.5"
},
"require-dev": {
- "phpunit/phpunit": "^9.3.3"
+ "squizlabs/php_codesniffer": "^3.6",
+ "phpstan/phpstan": "^0.12",
+ "pestphp/pest": "^1.20"
},
"autoload": {
"psr-4": {
@@ -25,12 +25,18 @@
},
"autoload-dev": {
"psr-4": {
- "Eightfold\\Markup\\Tests\\": "./tests/",
- "Eightfold\\Foldable\\Tests\\": "./vendor/8fold/php-foldable/tests/"
+ "Eightfold\\Markup\\Tests\\": "./tests/"
}
},
"config": {
"preferred-install": "dist"
},
- "prefer-stable": true
+ "prefer-stable": true,
+ "scripts": {
+ "prod": "@production",
+ "production": ["@style", "@stan", "@test"],
+ "style": "./vendor/bin/phpcs --standard=phpcs.xml -p ./src",
+ "stan": "./vendor/bin/phpstan analyze",
+ "test": "./vendor/bin/pest"
+ }
}
diff --git a/composer.lock b/composer.lock
index 0241a14..4fa3ae6 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,32 +4,36 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "9349adeea635b37012815f652449863e",
+ "content-hash": "14a5707ed6cd540067e6afe962c6d1bf",
"packages": [
{
- "name": "8fold/php-foldable",
- "version": "1.3.1",
+ "name": "8fold/php-html-builder",
+ "version": "0.5.0",
"source": {
"type": "git",
- "url": "https://github.com/8fold/php-foldable.git",
- "reference": "fddb60b085fb1ca77e0d57af21f53f61796a49f3"
+ "url": "https://github.com/8fold/php-html-builder.git",
+ "reference": "47964c800523605a47a7c03048604b85f7a76c26"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/8fold/php-foldable/zipball/fddb60b085fb1ca77e0d57af21f53f61796a49f3",
- "reference": "fddb60b085fb1ca77e0d57af21f53f61796a49f3",
+ "url": "https://api.github.com/repos/8fold/php-html-builder/zipball/47964c800523605a47a7c03048604b85f7a76c26",
+ "reference": "47964c800523605a47a7c03048604b85f7a76c26",
"shasum": ""
},
"require": {
- "php": "~7|^8.0"
+ "8fold/php-xml-builder": "^0.5",
+ "php": "^7.4||^8.0"
},
"require-dev": {
- "phpunit/phpunit": "~9.1"
+ "pestphp/pest": "^1.20",
+ "phpstan/phpstan": "^0.12",
+ "psr/log": "^1.0.1",
+ "squizlabs/php_codesniffer": "^3.6"
},
"type": "library",
"autoload": {
"psr-4": {
- "Eightfold\\Foldable\\": "./src/"
+ "Eightfold\\HTMLBuilder\\": "./src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -42,10 +46,10 @@
"email": "josh@8fold.pro"
}
],
- "description": "Foundation for developing Fluent Interfaces and the Pipeline Pattern",
+ "description": "A library for building HTML document and element strings.",
"support": {
- "issues": "https://github.com/8fold/php-foldable/issues",
- "source": "https://github.com/8fold/php-foldable/tree/1.3.1"
+ "issues": "https://github.com/8fold/php-html-builder/issues",
+ "source": "https://github.com/8fold/php-html-builder/tree/0.5.0"
},
"funding": [
{
@@ -57,43 +61,51 @@
"type": "github"
}
],
- "time": "2021-01-03T00:12:12+00:00"
+ "time": "2021-10-08T18:47:24+00:00"
},
{
- "name": "8fold/php-html-spec",
- "version": "0.0.5",
+ "name": "8fold/php-xml-builder",
+ "version": "0.5.3",
"source": {
"type": "git",
- "url": "https://github.com/8fold/php-html-spec.git",
- "reference": "bf33bcb7208ee31b4a7660aa0f59142c419f7c34"
+ "url": "https://github.com/8fold/php-xml-builder.git",
+ "reference": "a06b7d10934148dcc3589e936bb2148befa88410"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/8fold/php-html-spec/zipball/bf33bcb7208ee31b4a7660aa0f59142c419f7c34",
- "reference": "bf33bcb7208ee31b4a7660aa0f59142c419f7c34",
+ "url": "https://api.github.com/repos/8fold/php-xml-builder/zipball/a06b7d10934148dcc3589e936bb2148befa88410",
+ "reference": "a06b7d10934148dcc3589e936bb2148befa88410",
"shasum": ""
},
"require": {
- "8fold/php-shoop": "^0.10.19",
- "php": "^7|^8.0"
+ "php": "^7.4||^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^9.5.9"
+ "pestphp/pest": "^1.20",
+ "phpstan/phpstan": "^0.12",
+ "psr/log": "^1.0.1",
+ "squizlabs/php_codesniffer": "^3.6"
},
"type": "library",
"autoload": {
"psr-4": {
- "Eightfold\\HtmlSpec\\": "./src"
+ "Eightfold\\XMLBuilder\\": "./src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
- "description": "The HTML and ARIA-HTML specifications as structured data",
+ "authors": [
+ {
+ "name": "Josh Bruce",
+ "email": "josh@8fold.pro"
+ }
+ ],
+ "description": "A library for building XML strings.",
"support": {
- "issues": "https://github.com/8fold/php-html-spec/issues",
- "source": "https://github.com/8fold/php-html-spec/tree/0.0.5"
+ "issues": "https://github.com/8fold/php-xml-builder/issues",
+ "source": "https://github.com/8fold/php-xml-builder/tree/0.5.3"
},
"funding": [
{
@@ -105,34 +117,40 @@
"type": "github"
}
],
- "time": "2021-09-19T18:37:59+00:00"
- },
+ "time": "2021-10-08T00:40:01+00:00"
+ }
+ ],
+ "packages-dev": [
{
- "name": "8fold/php-shoop",
- "version": "0.10.19",
+ "name": "doctrine/instantiator",
+ "version": "1.4.0",
"source": {
"type": "git",
- "url": "https://github.com/8fold/php-shoop.git",
- "reference": "54b9f4800f5acb6628fc6fda427c759a374b5c51"
+ "url": "https://github.com/doctrine/instantiator.git",
+ "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/8fold/php-shoop/zipball/54b9f4800f5acb6628fc6fda427c759a374b5c51",
- "reference": "54b9f4800f5acb6628fc6fda427c759a374b5c51",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b",
+ "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b",
"shasum": ""
},
"require": {
- "8fold/php-foldable": "~1.3.1",
- "nikic/iter": "^2.0",
- "php": "~7.4|^8.0"
+ "php": "^7.1 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "~9.1"
+ "doctrine/coding-standard": "^8.0",
+ "ext-pdo": "*",
+ "ext-phar": "*",
+ "phpbench/phpbench": "^0.13 || 1.0.0-alpha2",
+ "phpstan/phpstan": "^0.12",
+ "phpstan/phpstan-phpunit": "^0.12",
+ "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
"type": "library",
"autoload": {
"psr-4": {
- "Eightfold\\Shoop\\": "./src/"
+ "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -141,55 +159,63 @@
],
"authors": [
{
- "name": "Josh Bruce",
- "email": "josh@8fold.pro"
+ "name": "Marco Pivetta",
+ "email": "ocramius@gmail.com",
+ "homepage": "https://ocramius.github.io/"
}
],
- "description": "A wrapper to create a more ubiquitous API for interacting with primitive data types.",
+ "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
+ "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
+ "keywords": [
+ "constructor",
+ "instantiate"
+ ],
"support": {
- "issues": "https://github.com/8fold/php-shoop/issues",
- "source": "https://github.com/8fold/php-shoop/tree/0.10.19"
+ "issues": "https://github.com/doctrine/instantiator/issues",
+ "source": "https://github.com/doctrine/instantiator/tree/1.4.0"
},
"funding": [
{
- "url": "https://github.com/8fold",
- "type": "github"
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
},
{
- "url": "https://github.com/joshbruce",
- "type": "github"
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
+ "type": "tidelift"
}
],
- "time": "2021-07-14T02:02:40+00:00"
+ "time": "2020-11-10T18:47:58+00:00"
},
{
- "name": "8fold/php-shoop-shelf",
- "version": "0.8.6",
+ "name": "facade/ignition-contracts",
+ "version": "1.0.2",
"source": {
"type": "git",
- "url": "https://github.com/8fold/php-shoop-shelf.git",
- "reference": "4086354b9926892f57cab856bdc311defa171928"
+ "url": "https://github.com/facade/ignition-contracts.git",
+ "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/8fold/php-shoop-shelf/zipball/4086354b9926892f57cab856bdc311defa171928",
- "reference": "4086354b9926892f57cab856bdc311defa171928",
+ "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267",
+ "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267",
"shasum": ""
},
"require": {
- "8fold/php-shoop": "^0.10.19",
- "league/commonmark": "^2.0.2",
- "league/flysystem": "^1.1.5|^2.2.3",
- "php": "^7.0|^8.0",
- "spatie/yaml-front-matter": "^2.0.5"
+ "php": "^7.3|^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^9.5.8"
+ "friendsofphp/php-cs-fixer": "^v2.15.8",
+ "phpunit/phpunit": "^9.3.11",
+ "vimeo/psalm": "^3.17.1"
},
"type": "library",
"autoload": {
"psr-4": {
- "Eightfold\\ShoopShelf\\": "./src/"
+ "Facade\\IgnitionContracts\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -198,60 +224,61 @@
],
"authors": [
{
- "name": "Josh Bruce",
- "email": "josh@8fold.pro"
+ "name": "Freek Van der Herten",
+ "email": "freek@spatie.be",
+ "homepage": "https://flareapp.io",
+ "role": "Developer"
}
],
- "description": "Shoop-like objects that do not fit at the 8fold Shoop table.",
+ "description": "Solution contracts for Ignition",
+ "homepage": "https://github.com/facade/ignition-contracts",
+ "keywords": [
+ "contracts",
+ "flare",
+ "ignition"
+ ],
"support": {
- "issues": "https://github.com/8fold/php-shoop-shelf/issues",
- "source": "https://github.com/8fold/php-shoop-shelf/tree/0.8.6"
+ "issues": "https://github.com/facade/ignition-contracts/issues",
+ "source": "https://github.com/facade/ignition-contracts/tree/1.0.2"
},
- "funding": [
- {
- "url": "https://github.com/8fold",
- "type": "github"
- },
- {
- "url": "https://github.com/joshbruce",
- "type": "github"
- }
- ],
- "time": "2021-09-21T22:13:37+00:00"
+ "time": "2020-10-16T08:27:54+00:00"
},
{
- "name": "dflydev/dot-access-data",
- "version": "v3.0.1",
+ "name": "filp/whoops",
+ "version": "2.14.4",
"source": {
"type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "0992cc19268b259a39e86f296da5f0677841f42c"
+ "url": "https://github.com/filp/whoops.git",
+ "reference": "f056f1fe935d9ed86e698905a957334029899895"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/0992cc19268b259a39e86f296da5f0677841f42c",
- "reference": "0992cc19268b259a39e86f296da5f0677841f42c",
+ "url": "https://api.github.com/repos/filp/whoops/zipball/f056f1fe935d9ed86e698905a957334029899895",
+ "reference": "f056f1fe935d9ed86e698905a957334029899895",
"shasum": ""
},
"require": {
- "php": "^7.1 || ^8.0"
+ "php": "^5.5.9 || ^7.0 || ^8.0",
+ "psr/log": "^1.0.1 || ^2.0 || ^3.0"
},
"require-dev": {
- "phpstan/phpstan": "^0.12.42",
- "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
- "scrutinizer/ocular": "1.6.0",
- "squizlabs/php_codesniffer": "^3.5",
- "vimeo/psalm": "^3.14"
+ "mockery/mockery": "^0.9 || ^1.0",
+ "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3",
+ "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0"
+ },
+ "suggest": {
+ "symfony/var-dumper": "Pretty print complex values better with var-dumper available",
+ "whoops/soap": "Formats errors as SOAP responses"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.x-dev"
+ "dev-master": "2.7-dev"
}
},
"autoload": {
"psr-4": {
- "Dflydev\\DotAccessData\\": "src/"
+ "Whoops\\": "src/Whoops/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -260,186 +287,125 @@
],
"authors": [
{
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- },
- {
- "name": "Colin O'Dell",
- "email": "colinodell@gmail.com",
- "homepage": "https://www.colinodell.com"
+ "name": "Filipe Dobreira",
+ "homepage": "https://github.com/filp",
+ "role": "Developer"
}
],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
+ "description": "php error handling for cool kids",
+ "homepage": "https://filp.github.io/whoops/",
"keywords": [
- "access",
- "data",
- "dot",
- "notation"
+ "error",
+ "exception",
+ "handling",
+ "library",
+ "throwable",
+ "whoops"
],
"support": {
- "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues",
- "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.1"
+ "issues": "https://github.com/filp/whoops/issues",
+ "source": "https://github.com/filp/whoops/tree/2.14.4"
},
- "time": "2021-08-13T13:06:58+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/denis-sokolov",
+ "type": "github"
+ }
+ ],
+ "time": "2021-10-03T12:00:00+00:00"
},
{
- "name": "league/commonmark",
- "version": "2.0.2",
+ "name": "myclabs/deep-copy",
+ "version": "1.10.2",
"source": {
"type": "git",
- "url": "https://github.com/thephpleague/commonmark.git",
- "reference": "2df87709f44b0dd733df86aef0830dce9b1f0f13"
+ "url": "https://github.com/myclabs/DeepCopy.git",
+ "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/2df87709f44b0dd733df86aef0830dce9b1f0f13",
- "reference": "2df87709f44b0dd733df86aef0830dce9b1f0f13",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220",
+ "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220",
"shasum": ""
},
"require": {
- "ext-mbstring": "*",
- "league/config": "^1.1.1",
- "php": "^7.4 || ^8.0",
- "psr/event-dispatcher": "^1.0",
- "symfony/polyfill-php80": "^1.15"
+ "php": "^7.1 || ^8.0"
},
- "require-dev": {
- "cebe/markdown": "^1.0",
- "commonmark/cmark": "0.30.0",
- "commonmark/commonmark.js": "0.30.0",
- "composer/package-versions-deprecated": "^1.8",
- "erusev/parsedown": "^1.0",
- "ext-json": "*",
- "github/gfm": "0.29.0",
- "michelf/php-markdown": "^1.4",
- "phpstan/phpstan": "^0.12.88",
- "phpunit/phpunit": "^9.5.5",
- "scrutinizer/ocular": "^1.8.1",
- "symfony/finder": "^5.3",
- "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0",
- "unleashedtech/php-coding-standard": "^3.1",
- "vimeo/psalm": "^4.7.3"
+ "replace": {
+ "myclabs/deep-copy": "self.version"
},
- "suggest": {
- "symfony/yaml": "v2.3+ required if using the Front Matter extension"
+ "require-dev": {
+ "doctrine/collections": "^1.0",
+ "doctrine/common": "^2.6",
+ "phpunit/phpunit": "^7.1"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "2.1-dev"
- }
- },
"autoload": {
"psr-4": {
- "League\\CommonMark\\": "src"
- }
+ "DeepCopy\\": "src/DeepCopy/"
+ },
+ "files": [
+ "src/DeepCopy/deep_copy.php"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Colin O'Dell",
- "email": "colinodell@gmail.com",
- "homepage": "https://www.colinodell.com",
- "role": "Lead Developer"
- }
+ "MIT"
],
- "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)",
- "homepage": "https://commonmark.thephpleague.com",
+ "description": "Create deep copies (clones) of your objects",
"keywords": [
- "commonmark",
- "flavored",
- "gfm",
- "github",
- "github-flavored",
- "markdown",
- "md",
- "parser"
+ "clone",
+ "copy",
+ "duplicate",
+ "object",
+ "object graph"
],
"support": {
- "docs": "https://commonmark.thephpleague.com/",
- "forum": "https://github.com/thephpleague/commonmark/discussions",
- "issues": "https://github.com/thephpleague/commonmark/issues",
- "rss": "https://github.com/thephpleague/commonmark/releases.atom",
- "source": "https://github.com/thephpleague/commonmark"
+ "issues": "https://github.com/myclabs/DeepCopy/issues",
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2"
},
"funding": [
{
- "url": "https://enjoy.gitstore.app/repositories/thephpleague/commonmark",
- "type": "custom"
- },
- {
- "url": "https://www.colinodell.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://www.paypal.me/colinpodell/10.00",
- "type": "custom"
- },
- {
- "url": "https://github.com/colinodell",
- "type": "github"
- },
- {
- "url": "https://www.patreon.com/colinodell",
- "type": "patreon"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/league/commonmark",
+ "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
"type": "tidelift"
}
],
- "time": "2021-08-14T14:06:04+00:00"
+ "time": "2020-11-13T09:40:50+00:00"
},
{
- "name": "league/config",
- "version": "v1.1.1",
+ "name": "nikic/php-parser",
+ "version": "v4.13.0",
"source": {
"type": "git",
- "url": "https://github.com/thephpleague/config.git",
- "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e"
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "50953a2691a922aa1769461637869a0a2faa3f53"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/config/zipball/a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e",
- "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/50953a2691a922aa1769461637869a0a2faa3f53",
+ "reference": "50953a2691a922aa1769461637869a0a2faa3f53",
"shasum": ""
},
"require": {
- "dflydev/dot-access-data": "^3.0.1",
- "nette/schema": "^1.2",
- "php": "^7.4 || ^8.0"
+ "ext-tokenizer": "*",
+ "php": ">=7.0"
},
"require-dev": {
- "phpstan/phpstan": "^0.12.90",
- "phpunit/phpunit": "^9.5.5",
- "scrutinizer/ocular": "^1.8.1",
- "unleashedtech/php-coding-standard": "^3.1",
- "vimeo/psalm": "^4.7.3"
+ "ircmaxell/php-yacc": "^0.0.7",
+ "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
},
+ "bin": [
+ "bin/php-parse"
+ ],
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.2-dev"
+ "dev-master": "4.9-dev"
}
},
"autoload": {
"psr-4": {
- "League\\Config\\": "src"
+ "PhpParser\\": "lib/PhpParser"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -448,84 +414,62 @@
],
"authors": [
{
- "name": "Colin O'Dell",
- "email": "colinodell@gmail.com",
- "homepage": "https://www.colinodell.com",
- "role": "Lead Developer"
+ "name": "Nikita Popov"
}
],
- "description": "Define configuration arrays with strict schemas and access values with dot notation",
- "homepage": "https://config.thephpleague.com",
+ "description": "A PHP parser written in PHP",
"keywords": [
- "array",
- "config",
- "configuration",
- "dot",
- "dot-access",
- "nested",
- "schema"
+ "parser",
+ "php"
],
"support": {
- "docs": "https://config.thephpleague.com/",
- "issues": "https://github.com/thephpleague/config/issues",
- "rss": "https://github.com/thephpleague/config/releases.atom",
- "source": "https://github.com/thephpleague/config"
+ "issues": "https://github.com/nikic/PHP-Parser/issues",
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.0"
},
- "funding": [
- {
- "url": "https://www.colinodell.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://www.paypal.me/colinpodell/10.00",
- "type": "custom"
- },
- {
- "url": "https://github.com/colinodell",
- "type": "github"
- }
- ],
- "time": "2021-08-14T12:15:32+00:00"
+ "time": "2021-09-20T12:20:58+00:00"
},
{
- "name": "league/flysystem",
- "version": "2.2.3",
+ "name": "nunomaduro/collision",
+ "version": "v5.10.0",
"source": {
"type": "git",
- "url": "https://github.com/thephpleague/flysystem.git",
- "reference": "811bdc2d52a07eafbb6cb68a7b368b0668b362c8"
+ "url": "https://github.com/nunomaduro/collision.git",
+ "reference": "3004cfa49c022183395eabc6d0e5207dfe498d00"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/811bdc2d52a07eafbb6cb68a7b368b0668b362c8",
- "reference": "811bdc2d52a07eafbb6cb68a7b368b0668b362c8",
+ "url": "https://api.github.com/repos/nunomaduro/collision/zipball/3004cfa49c022183395eabc6d0e5207dfe498d00",
+ "reference": "3004cfa49c022183395eabc6d0e5207dfe498d00",
"shasum": ""
},
"require": {
- "ext-json": "*",
- "league/mime-type-detection": "^1.0.0",
- "php": "^7.2 || ^8.0"
- },
- "conflict": {
- "guzzlehttp/ringphp": "<1.1.1"
+ "facade/ignition-contracts": "^1.0",
+ "filp/whoops": "^2.14.3",
+ "php": "^7.3 || ^8.0",
+ "symfony/console": "^5.0"
},
"require-dev": {
- "async-aws/s3": "^1.5",
- "async-aws/simple-s3": "^1.0",
- "aws/aws-sdk-php": "^3.132.4",
- "composer/semver": "^3.0",
- "ext-fileinfo": "*",
- "friendsofphp/php-cs-fixer": "^2.16",
- "google/cloud-storage": "^1.23",
- "phpseclib/phpseclib": "^2.0",
- "phpstan/phpstan": "^0.12.26",
- "phpunit/phpunit": "^8.5 || ^9.4",
- "sabre/dav": "^4.1"
+ "brianium/paratest": "^6.1",
+ "fideloper/proxy": "^4.4.1",
+ "fruitcake/laravel-cors": "^2.0.3",
+ "laravel/framework": "8.x-dev",
+ "nunomaduro/larastan": "^0.6.2",
+ "nunomaduro/mock-final-classes": "^1.0",
+ "orchestra/testbench": "^6.0",
+ "phpstan/phpstan": "^0.12.64",
+ "phpunit/phpunit": "^9.5.0"
},
"type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider"
+ ]
+ }
+ },
"autoload": {
"psr-4": {
- "League\\Flysystem\\": "src"
+ "NunoMaduro\\Collision\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -534,72 +478,100 @@
],
"authors": [
{
- "name": "Frank de Jonge",
- "email": "info@frankdejonge.nl"
+ "name": "Nuno Maduro",
+ "email": "enunomaduro@gmail.com"
}
],
- "description": "File storage abstraction for PHP",
+ "description": "Cli error handling for console/command-line PHP applications.",
"keywords": [
- "WebDAV",
- "aws",
- "cloud",
- "file",
- "files",
- "filesystem",
- "filesystems",
- "ftp",
- "s3",
- "sftp",
- "storage"
+ "artisan",
+ "cli",
+ "command-line",
+ "console",
+ "error",
+ "handling",
+ "laravel",
+ "laravel-zero",
+ "php",
+ "symfony"
],
"support": {
- "issues": "https://github.com/thephpleague/flysystem/issues",
- "source": "https://github.com/thephpleague/flysystem/tree/2.2.3"
+ "issues": "https://github.com/nunomaduro/collision/issues",
+ "source": "https://github.com/nunomaduro/collision"
},
"funding": [
{
- "url": "https://offset.earth/frankdejonge",
+ "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
"type": "custom"
},
{
- "url": "https://github.com/frankdejonge",
+ "url": "https://github.com/nunomaduro",
"type": "github"
},
{
- "url": "https://tidelift.com/funding/github/packagist/league/flysystem",
- "type": "tidelift"
+ "url": "https://www.patreon.com/nunomaduro",
+ "type": "patreon"
}
],
- "time": "2021-08-18T19:59:31+00:00"
+ "time": "2021-09-20T15:06:32+00:00"
},
{
- "name": "league/mime-type-detection",
- "version": "1.7.0",
+ "name": "pestphp/pest",
+ "version": "v1.20.0",
"source": {
"type": "git",
- "url": "https://github.com/thephpleague/mime-type-detection.git",
- "reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3"
+ "url": "https://github.com/pestphp/pest.git",
+ "reference": "ba06c5a76d95bbdef93aa4e05b489c3335b6c8c1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
- "reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
+ "url": "https://api.github.com/repos/pestphp/pest/zipball/ba06c5a76d95bbdef93aa4e05b489c3335b6c8c1",
+ "reference": "ba06c5a76d95bbdef93aa4e05b489c3335b6c8c1",
"shasum": ""
},
"require": {
- "ext-fileinfo": "*",
- "php": "^7.2 || ^8.0"
+ "nunomaduro/collision": "^5.4.0|^6.0",
+ "pestphp/pest-plugin": "^1.0.0",
+ "php": "^7.3 || ^8.0",
+ "phpunit/phpunit": "^9.5.5"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^2.18",
- "phpstan/phpstan": "^0.12.68",
- "phpunit/phpunit": "^8.5.8 || ^9.3"
+ "illuminate/console": "^8.47.0",
+ "illuminate/support": "^8.47.0",
+ "laravel/dusk": "^6.15.0",
+ "pestphp/pest-dev-tools": "dev-master",
+ "pestphp/pest-plugin-parallel": "^1.0"
},
+ "bin": [
+ "bin/pest"
+ ],
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ },
+ "pest": {
+ "plugins": [
+ "Pest\\Plugins\\Coverage",
+ "Pest\\Plugins\\Init",
+ "Pest\\Plugins\\Version",
+ "Pest\\Plugins\\Environment"
+ ]
+ },
+ "laravel": {
+ "providers": [
+ "Pest\\Laravel\\PestServiceProvider"
+ ]
+ }
+ },
"autoload": {
"psr-4": {
- "League\\MimeTypeDetection\\": "src"
- }
+ "Pest\\": "src/"
+ },
+ "files": [
+ "src/Functions.php",
+ "src/Pest.php"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -607,148 +579,148 @@
],
"authors": [
{
- "name": "Frank de Jonge",
- "email": "info@frankdejonge.nl"
+ "name": "Nuno Maduro",
+ "email": "enunomaduro@gmail.com"
}
],
- "description": "Mime-type detection for Flysystem",
+ "description": "An elegant PHP Testing Framework.",
+ "keywords": [
+ "framework",
+ "pest",
+ "php",
+ "test",
+ "testing",
+ "unit"
+ ],
"support": {
- "issues": "https://github.com/thephpleague/mime-type-detection/issues",
- "source": "https://github.com/thephpleague/mime-type-detection/tree/1.7.0"
+ "issues": "https://github.com/pestphp/pest/issues",
+ "source": "https://github.com/pestphp/pest/tree/v1.20.0"
},
"funding": [
{
- "url": "https://github.com/frankdejonge",
+ "url": "https://github.com/lukeraymonddowning",
"type": "github"
},
{
- "url": "https://tidelift.com/funding/github/packagist/league/flysystem",
- "type": "tidelift"
+ "url": "https://github.com/nunomaduro",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/octoper",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/olivernybroe",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/owenvoke",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/nunomaduro",
+ "type": "patreon"
}
],
- "time": "2021-01-18T20:58:21+00:00"
+ "time": "2021-09-25T12:52:12+00:00"
},
{
- "name": "nesbot/carbon",
- "version": "2.53.1",
+ "name": "pestphp/pest-plugin",
+ "version": "v1.0.0",
"source": {
"type": "git",
- "url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "f4655858a784988f880c1b8c7feabbf02dfdf045"
+ "url": "https://github.com/pestphp/pest-plugin.git",
+ "reference": "fc8519de148699fe612d9c669be60554cd2db4fa"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f4655858a784988f880c1b8c7feabbf02dfdf045",
- "reference": "f4655858a784988f880c1b8c7feabbf02dfdf045",
+ "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/fc8519de148699fe612d9c669be60554cd2db4fa",
+ "reference": "fc8519de148699fe612d9c669be60554cd2db4fa",
"shasum": ""
},
"require": {
- "ext-json": "*",
- "php": "^7.1.8 || ^8.0",
- "symfony/polyfill-mbstring": "^1.0",
- "symfony/polyfill-php80": "^1.16",
- "symfony/translation": "^3.4 || ^4.0 || ^5.0"
+ "composer-plugin-api": "^1.1 || ^2.0",
+ "php": "^7.3 || ^8.0"
+ },
+ "conflict": {
+ "pestphp/pest": "<1.0"
},
"require-dev": {
- "doctrine/orm": "^2.7",
- "friendsofphp/php-cs-fixer": "^3.0",
- "kylekatarnls/multi-tester": "^2.0",
- "phpmd/phpmd": "^2.9",
- "phpstan/extension-installer": "^1.0",
- "phpstan/phpstan": "^0.12.54",
- "phpunit/phpunit": "^7.5.20 || ^8.5.14",
- "squizlabs/php_codesniffer": "^3.4"
+ "composer/composer": "^1.10.19",
+ "pestphp/pest": "^1.0",
+ "pestphp/pest-dev-tools": "dev-master"
},
- "bin": [
- "bin/carbon"
- ],
- "type": "library",
+ "type": "composer-plugin",
"extra": {
"branch-alias": {
- "dev-3.x": "3.x-dev",
- "dev-master": "2.x-dev"
- },
- "laravel": {
- "providers": [
- "Carbon\\Laravel\\ServiceProvider"
- ]
+ "dev-master": "1.x-dev"
},
- "phpstan": {
- "includes": [
- "extension.neon"
- ]
- }
+ "class": "Pest\\Plugin\\Manager"
},
"autoload": {
"psr-4": {
- "Carbon\\": "src/Carbon/"
+ "Pest\\Plugin\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
- "authors": [
- {
- "name": "Brian Nesbitt",
- "email": "brian@nesbot.com",
- "homepage": "https://markido.com"
- },
- {
- "name": "kylekatarnls",
- "homepage": "https://github.com/kylekatarnls"
- }
- ],
- "description": "An API extension for DateTime that supports 281 different languages.",
- "homepage": "https://carbon.nesbot.com",
+ "description": "The Pest plugin manager",
"keywords": [
- "date",
- "datetime",
- "time"
+ "framework",
+ "manager",
+ "pest",
+ "php",
+ "plugin",
+ "test",
+ "testing",
+ "unit"
],
"support": {
- "issues": "https://github.com/briannesbitt/Carbon/issues",
- "source": "https://github.com/briannesbitt/Carbon"
+ "source": "https://github.com/pestphp/pest-plugin/tree/v1.0.0"
},
"funding": [
{
- "url": "https://opencollective.com/Carbon",
- "type": "open_collective"
+ "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
+ "type": "custom"
},
{
- "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon",
- "type": "tidelift"
+ "url": "https://github.com/nunomaduro",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/nunomaduro",
+ "type": "patreon"
}
],
- "time": "2021-09-06T09:29:23+00:00"
+ "time": "2021-01-03T15:53:42+00:00"
},
{
- "name": "nette/schema",
- "version": "v1.2.1",
+ "name": "phar-io/manifest",
+ "version": "2.0.3",
"source": {
"type": "git",
- "url": "https://github.com/nette/schema.git",
- "reference": "f5ed39fc96358f922cedfd1e516f0dadf5d2be0d"
+ "url": "https://github.com/phar-io/manifest.git",
+ "reference": "97803eca37d319dfa7826cc2437fc020857acb53"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nette/schema/zipball/f5ed39fc96358f922cedfd1e516f0dadf5d2be0d",
- "reference": "f5ed39fc96358f922cedfd1e516f0dadf5d2be0d",
- "shasum": ""
+ "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
+ "reference": "97803eca37d319dfa7826cc2437fc020857acb53",
+ "shasum": ""
},
"require": {
- "nette/utils": "^3.1.4 || ^4.0",
- "php": ">=7.1 <8.1"
- },
- "require-dev": {
- "nette/tester": "^2.3 || ^2.4",
- "phpstan/phpstan-nette": "^0.12",
- "tracy/tracy": "^2.7"
+ "ext-dom": "*",
+ "ext-phar": "*",
+ "ext-xmlwriter": "*",
+ "phar-io/version": "^3.0.1",
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.2-dev"
+ "dev-master": "2.0.x-dev"
}
},
"autoload": {
@@ -758,72 +730,50 @@
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause",
- "GPL-2.0-only",
- "GPL-3.0-only"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Heuer",
+ "email": "sebastian@phpeople.de",
+ "role": "Developer"
},
{
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "Developer"
}
],
- "description": "📐 Nette Schema: validating data structures against a given Schema.",
- "homepage": "https://nette.org",
- "keywords": [
- "config",
- "nette"
- ],
+ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
"support": {
- "issues": "https://github.com/nette/schema/issues",
- "source": "https://github.com/nette/schema/tree/v1.2.1"
+ "issues": "https://github.com/phar-io/manifest/issues",
+ "source": "https://github.com/phar-io/manifest/tree/2.0.3"
},
- "time": "2021-03-04T17:51:11+00:00"
+ "time": "2021-07-20T11:28:43+00:00"
},
{
- "name": "nette/utils",
- "version": "v3.2.5",
+ "name": "phar-io/version",
+ "version": "3.1.0",
"source": {
"type": "git",
- "url": "https://github.com/nette/utils.git",
- "reference": "9cd80396ca58d7969ab44fc7afcf03624dfa526e"
+ "url": "https://github.com/phar-io/version.git",
+ "reference": "bae7c545bef187884426f042434e561ab1ddb182"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nette/utils/zipball/9cd80396ca58d7969ab44fc7afcf03624dfa526e",
- "reference": "9cd80396ca58d7969ab44fc7afcf03624dfa526e",
+ "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182",
+ "reference": "bae7c545bef187884426f042434e561ab1ddb182",
"shasum": ""
},
"require": {
- "php": ">=7.2 <8.2"
- },
- "conflict": {
- "nette/di": "<3.0.6"
- },
- "require-dev": {
- "nette/tester": "~2.0",
- "phpstan/phpstan": "^0.12",
- "tracy/tracy": "^2.3"
- },
- "suggest": {
- "ext-gd": "to use Image",
- "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()",
- "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
- "ext-json": "to use Nette\\Utils\\Json",
- "ext-mbstring": "to use Strings::lower() etc...",
- "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
- "ext-xml": "to use Strings::length() etc. when mbstring is not available"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2-dev"
- }
- },
"autoload": {
"classmap": [
"src/"
@@ -831,120 +781,118 @@
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause",
- "GPL-2.0-only",
- "GPL-3.0-only"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Heuer",
+ "email": "sebastian@phpeople.de",
+ "role": "Developer"
},
{
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "Developer"
}
],
- "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
- "homepage": "https://nette.org",
- "keywords": [
- "array",
- "core",
- "datetime",
- "images",
- "json",
- "nette",
- "paginator",
- "password",
- "slugify",
- "string",
- "unicode",
- "utf-8",
- "utility",
- "validation"
- ],
+ "description": "Library for handling version information and constraints",
"support": {
- "issues": "https://github.com/nette/utils/issues",
- "source": "https://github.com/nette/utils/tree/v3.2.5"
+ "issues": "https://github.com/phar-io/version/issues",
+ "source": "https://github.com/phar-io/version/tree/3.1.0"
},
- "time": "2021-09-20T10:50:11+00:00"
+ "time": "2021-02-23T14:00:09+00:00"
},
{
- "name": "nikic/iter",
- "version": "v2.2.0",
+ "name": "phpdocumentor/reflection-common",
+ "version": "2.2.0",
"source": {
"type": "git",
- "url": "https://github.com/nikic/iter.git",
- "reference": "d1323929952ddcb0b06439991f93bde3816a39e9"
+ "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/iter/zipball/d1323929952ddcb0b06439991f93bde3816a39e9",
- "reference": "d1323929952ddcb0b06439991f93bde3816a39e9",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
"shasum": ""
},
"require": {
- "php": ">=7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-2.x": "2.x-dev"
+ }
+ },
"autoload": {
- "files": [
- "src/iter.func.php",
- "src/iter.php",
- "src/iter.rewindable.php"
- ]
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Nikita Popov",
- "email": "nikic@php.net"
+ "name": "Jaap van Otterdijk",
+ "email": "opensource@ijaap.nl"
}
],
- "description": "Iteration primitives using generators",
+ "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
+ "homepage": "http://www.phpdoc.org",
"keywords": [
- "functional",
- "generator",
- "iterator"
+ "FQSEN",
+ "phpDocumentor",
+ "phpdoc",
+ "reflection",
+ "static analysis"
],
"support": {
- "issues": "https://github.com/nikic/iter/issues",
- "source": "https://github.com/nikic/iter/tree/v2.2.0"
+ "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
},
- "time": "2021-08-02T15:04:32+00:00"
+ "time": "2020-06-27T09:03:43+00:00"
},
{
- "name": "psr/event-dispatcher",
- "version": "1.0.0",
+ "name": "phpdocumentor/reflection-docblock",
+ "version": "5.2.2",
"source": {
"type": "git",
- "url": "https://github.com/php-fig/event-dispatcher.git",
- "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0"
+ "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
+ "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0",
- "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556",
+ "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556",
"shasum": ""
},
"require": {
- "php": ">=7.2.0"
+ "ext-filter": "*",
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.2",
+ "phpdocumentor/type-resolver": "^1.3",
+ "webmozart/assert": "^1.9.1"
+ },
+ "require-dev": {
+ "mockery/mockery": "~1.3.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "5.x-dev"
}
},
"autoload": {
"psr-4": {
- "Psr\\EventDispatcher\\": "src/"
+ "phpDocumentor\\Reflection\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -953,47 +901,52 @@
],
"authors": [
{
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
+ },
+ {
+ "name": "Jaap van Otterdijk",
+ "email": "account@ijaap.nl"
}
],
- "description": "Standard interfaces for event handling.",
- "keywords": [
- "events",
- "psr",
- "psr-14"
- ],
+ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"support": {
- "issues": "https://github.com/php-fig/event-dispatcher/issues",
- "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0"
+ "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
},
- "time": "2019-01-08T18:20:26+00:00"
+ "time": "2020-09-03T19:13:55+00:00"
},
{
- "name": "spatie/yaml-front-matter",
- "version": "2.0.5",
+ "name": "phpdocumentor/type-resolver",
+ "version": "1.5.1",
"source": {
"type": "git",
- "url": "https://github.com/spatie/yaml-front-matter.git",
- "reference": "efb5170a92216b8d2f40874301db8eb51b8e73cc"
+ "url": "https://github.com/phpDocumentor/TypeResolver.git",
+ "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/yaml-front-matter/zipball/efb5170a92216b8d2f40874301db8eb51b8e73cc",
- "reference": "efb5170a92216b8d2f40874301db8eb51b8e73cc",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae",
+ "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae",
"shasum": ""
},
"require": {
- "php": ">=7.0",
- "symfony/yaml": "^3.0|^4.0|^5.0"
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.5"
+ "ext-tokenizer": "*",
+ "psalm/phar": "^4.8"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-1.x": "1.x-dev"
+ }
+ },
"autoload": {
"psr-4": {
- "Spatie\\YamlFrontMatter\\": "src"
+ "phpDocumentor\\Reflection\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -1002,57 +955,52 @@
],
"authors": [
{
- "name": "Sebastian De Deyne",
- "email": "sebastian@spatie.be",
- "homepage": "https://spatie.be",
- "role": "Developer"
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
}
],
- "description": "A to the point yaml front matter parser",
- "homepage": "https://github.com/sebastiandedeyne/yaml-front-matter",
- "keywords": [
- "front matter",
- "jekyll",
- "spatie",
- "yaml"
- ],
+ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
"support": {
- "issues": "https://github.com/spatie/yaml-front-matter/issues",
- "source": "https://github.com/spatie/yaml-front-matter/tree/master"
+ "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1"
},
- "time": "2019-12-02T20:50:50+00:00"
+ "time": "2021-10-02T14:08:47+00:00"
},
{
- "name": "symfony/deprecation-contracts",
- "version": "v2.4.0",
+ "name": "phpspec/prophecy",
+ "version": "1.14.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627"
+ "url": "https://github.com/phpspec/prophecy.git",
+ "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e",
+ "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e",
"shasum": ""
},
"require": {
- "php": ">=7.1"
+ "doctrine/instantiator": "^1.2",
+ "php": "^7.2 || ~8.0, <8.2",
+ "phpdocumentor/reflection-docblock": "^5.2",
+ "sebastian/comparator": "^3.0 || ^4.0",
+ "sebastian/recursion-context": "^3.0 || ^4.0"
+ },
+ "require-dev": {
+ "phpspec/phpspec": "^6.0 || ^7.0",
+ "phpunit/phpunit": "^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
- },
- "thanks": {
- "name": "symfony/contracts",
- "url": "https://github.com/symfony/contracts"
+ "dev-master": "1.x-dev"
}
},
"autoload": {
- "files": [
- "function.php"
- ]
+ "psr-4": {
+ "Prophecy\\": "src/Prophecy"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1060,69 +1008,62 @@
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
+ "name": "Konstantin Kudryashov",
+ "email": "ever.zet@gmail.com",
+ "homepage": "http://everzet.com"
},
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Marcello Duarte",
+ "email": "marcello.duarte@gmail.com"
}
],
- "description": "A generic function and convention to trigger deprecation notices",
- "homepage": "https://symfony.com",
+ "description": "Highly opinionated mocking framework for PHP 5.3+",
+ "homepage": "https://github.com/phpspec/prophecy",
+ "keywords": [
+ "Double",
+ "Dummy",
+ "fake",
+ "mock",
+ "spy",
+ "stub"
+ ],
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0"
+ "issues": "https://github.com/phpspec/prophecy/issues",
+ "source": "https://github.com/phpspec/prophecy/tree/1.14.0"
},
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2021-09-10T09:02:12+00:00"
},
{
- "name": "symfony/polyfill-ctype",
- "version": "v1.23.0",
+ "name": "phpstan/phpstan",
+ "version": "0.12.99",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
+ "url": "https://github.com/phpstan/phpstan.git",
+ "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b4d40f1d759942f523be267a1bab6884f46ca3f7",
+ "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7",
"shasum": ""
},
"require": {
- "php": ">=7.1"
+ "php": "^7.1|^8.0"
},
- "suggest": {
- "ext-ctype": "For best performance"
+ "conflict": {
+ "phpstan/phpstan-shim": "*"
},
+ "bin": [
+ "phpstan",
+ "phpstan.phar"
+ ],
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.23-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
+ "dev-master": "0.12-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
"files": [
"bootstrap.php"
]
@@ -1131,659 +1072,516 @@
"license": [
"MIT"
],
- "authors": [
+ "description": "PHPStan - PHP Static Analysis Tool",
+ "support": {
+ "issues": "https://github.com/phpstan/phpstan/issues",
+ "source": "https://github.com/phpstan/phpstan/tree/0.12.99"
+ },
+ "funding": [
{
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
+ "url": "https://github.com/ondrejmirtes",
+ "type": "github"
},
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
- },
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
+ "url": "https://github.com/phpstan",
+ "type": "github"
},
{
- "url": "https://github.com/fabpot",
- "type": "github"
+ "url": "https://www.patreon.com/phpstan",
+ "type": "patreon"
},
{
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
"type": "tidelift"
}
],
- "time": "2021-02-19T12:13:01+00:00"
+ "time": "2021-09-12T20:09:55+00:00"
},
{
- "name": "symfony/polyfill-mbstring",
- "version": "v1.23.1",
+ "name": "phpunit/php-code-coverage",
+ "version": "9.2.7",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6"
+ "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
+ "reference": "d4c798ed8d51506800b441f7a13ecb0f76f12218"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6",
- "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d4c798ed8d51506800b441f7a13ecb0f76f12218",
+ "reference": "d4c798ed8d51506800b441f7a13ecb0f76f12218",
"shasum": ""
},
"require": {
- "php": ">=7.1"
+ "ext-dom": "*",
+ "ext-libxml": "*",
+ "ext-xmlwriter": "*",
+ "nikic/php-parser": "^4.12.0",
+ "php": ">=7.3",
+ "phpunit/php-file-iterator": "^3.0.3",
+ "phpunit/php-text-template": "^2.0.2",
+ "sebastian/code-unit-reverse-lookup": "^2.0.2",
+ "sebastian/complexity": "^2.0",
+ "sebastian/environment": "^5.1.2",
+ "sebastian/lines-of-code": "^1.0.3",
+ "sebastian/version": "^3.0.1",
+ "theseer/tokenizer": "^1.2.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
- "ext-mbstring": "For best performance"
+ "ext-pcov": "*",
+ "ext-xdebug": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.23-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
+ "dev-master": "9.2-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
+ "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
+ "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
"keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
+ "coverage",
+ "testing",
+ "xunit"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1"
+ "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.7"
},
"funding": [
{
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
+ "url": "https://github.com/sebastianbergmann",
"type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
}
],
- "time": "2021-05-27T12:26:48+00:00"
+ "time": "2021-09-17T05:39:03+00:00"
},
{
- "name": "symfony/polyfill-php80",
- "version": "v1.23.1",
+ "name": "phpunit/php-file-iterator",
+ "version": "3.0.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
+ "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
+ "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8",
+ "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8",
"shasum": ""
},
"require": {
- "php": ">=7.1"
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.23-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php80\\": ""
- },
- "files": [
- "bootstrap.php"
- ],
"classmap": [
- "Resources/stubs"
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Ion Bazan",
- "email": "ion.bazan@gmail.com"
- },
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
- "homepage": "https://symfony.com",
+ "description": "FilterIterator implementation that filters files based on a list of suffixes.",
+ "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
"keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
+ "filesystem",
+ "iterator"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
+ "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
+ "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
},
"funding": [
{
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
+ "url": "https://github.com/sebastianbergmann",
"type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
}
],
- "time": "2021-07-28T13:41:28+00:00"
+ "time": "2020-09-28T05:57:25+00:00"
},
{
- "name": "symfony/translation",
- "version": "v5.3.7",
+ "name": "phpunit/php-invoker",
+ "version": "3.1.1",
"source": {
"type": "git",
- "url": "https://github.com/symfony/translation.git",
- "reference": "4d595a6d15fd3a2c67f6f31d14d15d3b7356d7a6"
+ "url": "https://github.com/sebastianbergmann/php-invoker.git",
+ "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation/zipball/4d595a6d15fd3a2c67f6f31d14d15d3b7356d7a6",
- "reference": "4d595a6d15fd3a2c67f6f31d14d15d3b7356d7a6",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
+ "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
"shasum": ""
},
"require": {
- "php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
- "symfony/polyfill-mbstring": "~1.0",
- "symfony/polyfill-php80": "^1.16",
- "symfony/translation-contracts": "^2.3"
- },
- "conflict": {
- "symfony/config": "<4.4",
- "symfony/dependency-injection": "<5.0",
- "symfony/http-kernel": "<5.0",
- "symfony/twig-bundle": "<5.0",
- "symfony/yaml": "<4.4"
- },
- "provide": {
- "symfony/translation-implementation": "2.3"
+ "php": ">=7.3"
},
"require-dev": {
- "psr/log": "^1|^2|^3",
- "symfony/config": "^4.4|^5.0",
- "symfony/console": "^4.4|^5.0",
- "symfony/dependency-injection": "^5.0",
- "symfony/finder": "^4.4|^5.0",
- "symfony/http-kernel": "^5.0",
- "symfony/intl": "^4.4|^5.0",
- "symfony/polyfill-intl-icu": "^1.21",
- "symfony/service-contracts": "^1.1.2|^2",
- "symfony/yaml": "^4.4|^5.0"
+ "ext-pcntl": "*",
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
- "psr/log-implementation": "To use logging capability in translator",
- "symfony/config": "",
- "symfony/yaml": ""
+ "ext-pcntl": "*"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.1-dev"
+ }
+ },
"autoload": {
- "files": [
- "Resources/functions.php"
- ],
- "psr-4": {
- "Symfony\\Component\\Translation\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Provides tools to internationalize your application",
- "homepage": "https://symfony.com",
+ "description": "Invoke callables with a timeout",
+ "homepage": "https://github.com/sebastianbergmann/php-invoker/",
+ "keywords": [
+ "process"
+ ],
"support": {
- "source": "https://github.com/symfony/translation/tree/v5.3.7"
+ "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
+ "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
},
"funding": [
{
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
+ "url": "https://github.com/sebastianbergmann",
"type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
}
],
- "time": "2021-08-26T08:22:53+00:00"
+ "time": "2020-09-28T05:58:55+00:00"
},
{
- "name": "symfony/translation-contracts",
- "version": "v2.4.0",
+ "name": "phpunit/php-text-template",
+ "version": "2.0.4",
"source": {
"type": "git",
- "url": "https://github.com/symfony/translation-contracts.git",
- "reference": "95c812666f3e91db75385749fe219c5e494c7f95"
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/95c812666f3e91db75385749fe219c5e494c7f95",
- "reference": "95c812666f3e91db75385749fe219c5e494c7f95",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
+ "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
"shasum": ""
},
"require": {
- "php": ">=7.2.5"
+ "php": ">=7.3"
},
- "suggest": {
- "symfony/translation-implementation": ""
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
- },
- "thanks": {
- "name": "symfony/contracts",
- "url": "https://github.com/symfony/contracts"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Contracts\\Translation\\": ""
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Generic abstractions related to translation",
- "homepage": "https://symfony.com",
+ "description": "Simple template engine.",
+ "homepage": "https://github.com/sebastianbergmann/php-text-template/",
"keywords": [
- "abstractions",
- "contracts",
- "decoupling",
- "interfaces",
- "interoperability",
- "standards"
+ "template"
],
"support": {
- "source": "https://github.com/symfony/translation-contracts/tree/v2.4.0"
+ "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
+ "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
},
"funding": [
{
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
+ "url": "https://github.com/sebastianbergmann",
"type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
}
],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2020-10-26T05:33:50+00:00"
},
{
- "name": "symfony/yaml",
- "version": "v5.3.6",
+ "name": "phpunit/php-timer",
+ "version": "5.0.3",
"source": {
"type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7"
+ "url": "https://github.com/sebastianbergmann/php-timer.git",
+ "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7",
- "reference": "4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
+ "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
"shasum": ""
},
"require": {
- "php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<4.4"
+ "php": ">=7.3"
},
"require-dev": {
- "symfony/console": "^4.4|^5.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
+ "phpunit/phpunit": "^9.3"
},
- "bin": [
- "Resources/bin/yaml-lint"
- ],
"type": "library",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "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": "Loads and dumps YAML files",
- "homepage": "https://symfony.com",
- "support": {
- "source": "https://github.com/symfony/yaml/tree/v5.3.6"
- },
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.0-dev"
}
- ],
- "time": "2021-07-29T06:20:01+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b",
- "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b",
- "shasum": ""
- },
- "require": {
- "php": "^7.1 || ^8.0"
- },
- "require-dev": {
- "doctrine/coding-standard": "^8.0",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpbench/phpbench": "^0.13 || 1.0.0-alpha2",
- "phpstan/phpstan": "^0.12",
- "phpstan/phpstan-phpunit": "^0.12",
- "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
- "type": "library",
"autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "https://ocramius.github.io/"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
+ "description": "Utility class for timing",
+ "homepage": "https://github.com/sebastianbergmann/php-timer/",
"keywords": [
- "constructor",
- "instantiate"
+ "timer"
],
"support": {
- "issues": "https://github.com/doctrine/instantiator/issues",
- "source": "https://github.com/doctrine/instantiator/tree/1.4.0"
+ "issues": "https://github.com/sebastianbergmann/php-timer/issues",
+ "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
},
"funding": [
{
- "url": "https://www.doctrine-project.org/sponsorship.html",
- "type": "custom"
- },
- {
- "url": "https://www.patreon.com/phpdoctrine",
- "type": "patreon"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
- "type": "tidelift"
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
}
],
- "time": "2020-11-10T18:47:58+00:00"
+ "time": "2020-10-26T13:16:10+00:00"
},
{
- "name": "myclabs/deep-copy",
- "version": "1.10.2",
+ "name": "phpunit/phpunit",
+ "version": "9.5.10",
"source": {
"type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220"
+ "url": "https://github.com/sebastianbergmann/phpunit.git",
+ "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220",
- "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c814a05837f2edb0d1471d6e3f4ab3501ca3899a",
+ "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a",
"shasum": ""
},
"require": {
- "php": "^7.1 || ^8.0"
+ "doctrine/instantiator": "^1.3.1",
+ "ext-dom": "*",
+ "ext-json": "*",
+ "ext-libxml": "*",
+ "ext-mbstring": "*",
+ "ext-xml": "*",
+ "ext-xmlwriter": "*",
+ "myclabs/deep-copy": "^1.10.1",
+ "phar-io/manifest": "^2.0.3",
+ "phar-io/version": "^3.0.2",
+ "php": ">=7.3",
+ "phpspec/prophecy": "^1.12.1",
+ "phpunit/php-code-coverage": "^9.2.7",
+ "phpunit/php-file-iterator": "^3.0.5",
+ "phpunit/php-invoker": "^3.1.1",
+ "phpunit/php-text-template": "^2.0.3",
+ "phpunit/php-timer": "^5.0.2",
+ "sebastian/cli-parser": "^1.0.1",
+ "sebastian/code-unit": "^1.0.6",
+ "sebastian/comparator": "^4.0.5",
+ "sebastian/diff": "^4.0.3",
+ "sebastian/environment": "^5.1.3",
+ "sebastian/exporter": "^4.0.3",
+ "sebastian/global-state": "^5.0.1",
+ "sebastian/object-enumerator": "^4.0.3",
+ "sebastian/resource-operations": "^3.0.3",
+ "sebastian/type": "^2.3.4",
+ "sebastian/version": "^3.0.2"
},
- "replace": {
- "myclabs/deep-copy": "self.version"
+ "require-dev": {
+ "ext-pdo": "*",
+ "phpspec/prophecy-phpunit": "^2.0.1"
},
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^7.1"
+ "suggest": {
+ "ext-soap": "*",
+ "ext-xdebug": "*"
},
+ "bin": [
+ "phpunit"
+ ],
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "9.5-dev"
+ }
+ },
"autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
+ "classmap": [
+ "src/"
+ ],
"files": [
- "src/DeepCopy/deep_copy.php"
+ "src/Framework/Assert/Functions.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
- "description": "Create deep copies (clones) of your objects",
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "The PHP Unit Testing framework.",
+ "homepage": "https://phpunit.de/",
"keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
+ "phpunit",
+ "testing",
+ "xunit"
],
"support": {
- "issues": "https://github.com/myclabs/DeepCopy/issues",
- "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2"
+ "issues": "https://github.com/sebastianbergmann/phpunit/issues",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.10"
},
"funding": [
{
- "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
- "type": "tidelift"
+ "url": "https://phpunit.de/donate.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
}
],
- "time": "2020-11-13T09:40:50+00:00"
+ "time": "2021-09-25T07:38:51+00:00"
},
{
- "name": "nikic/php-parser",
- "version": "v4.13.0",
+ "name": "psr/container",
+ "version": "1.1.1",
"source": {
"type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "50953a2691a922aa1769461637869a0a2faa3f53"
+ "url": "https://github.com/php-fig/container.git",
+ "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/50953a2691a922aa1769461637869a0a2faa3f53",
- "reference": "50953a2691a922aa1769461637869a0a2faa3f53",
+ "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
+ "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
"shasum": ""
},
"require": {
- "ext-tokenizer": "*",
- "php": ">=7.0"
- },
- "require-dev": {
- "ircmaxell/php-yacc": "^0.0.7",
- "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
+ "php": ">=7.2.0"
},
- "bin": [
- "bin/php-parse"
- ],
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.9-dev"
- }
- },
"autoload": {
"psr-4": {
- "PhpParser\\": "lib/PhpParser"
+ "Psr\\Container\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Nikita Popov"
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
}
],
- "description": "A PHP parser written in PHP",
+ "description": "Common Container Interface (PHP FIG PSR-11)",
+ "homepage": "https://github.com/php-fig/container",
"keywords": [
- "parser",
- "php"
+ "PSR-11",
+ "container",
+ "container-interface",
+ "container-interop",
+ "psr"
],
"support": {
- "issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.0"
+ "issues": "https://github.com/php-fig/container/issues",
+ "source": "https://github.com/php-fig/container/tree/1.1.1"
},
- "time": "2021-09-20T12:20:58+00:00"
+ "time": "2021-03-05T17:36:06+00:00"
},
{
- "name": "phar-io/manifest",
- "version": "2.0.3",
+ "name": "psr/log",
+ "version": "2.0.0",
"source": {
"type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "97803eca37d319dfa7826cc2437fc020857acb53"
+ "url": "https://github.com/php-fig/log.git",
+ "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
- "reference": "97803eca37d319dfa7826cc2437fc020857acb53",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/ef29f6d262798707a9edd554e2b82517ef3a9376",
+ "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376",
"shasum": ""
},
"require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "ext-xmlwriter": "*",
- "phar-io/version": "^3.0.1",
- "php": "^7.2 || ^8.0"
+ "php": ">=8.0.0"
},
"type": "library",
"extra": {
@@ -1792,56 +1590,58 @@
}
},
"autoload": {
- "classmap": [
- "src/"
- ]
+ "psr-4": {
+ "Psr\\Log\\": "src"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"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"
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
}
],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
+ "description": "Common interface for logging libraries",
+ "homepage": "https://github.com/php-fig/log",
+ "keywords": [
+ "log",
+ "psr",
+ "psr-3"
+ ],
"support": {
- "issues": "https://github.com/phar-io/manifest/issues",
- "source": "https://github.com/phar-io/manifest/tree/2.0.3"
+ "source": "https://github.com/php-fig/log/tree/2.0.0"
},
- "time": "2021-07-20T11:28:43+00:00"
+ "time": "2021-07-14T16:41:46+00:00"
},
{
- "name": "phar-io/version",
- "version": "3.1.0",
+ "name": "sebastian/cli-parser",
+ "version": "1.0.1",
"source": {
"type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "bae7c545bef187884426f042434e561ab1ddb182"
+ "url": "https://github.com/sebastianbergmann/cli-parser.git",
+ "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182",
- "reference": "bae7c545bef187884426f042434e561ab1ddb182",
+ "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
+ "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
"shasum": ""
},
"require": {
- "php": "^7.2 || ^8.0"
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
"autoload": {
"classmap": [
"src/"
@@ -1852,295 +1652,293 @@
"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"
+ "role": "lead"
}
],
- "description": "Library for handling version information and constraints",
+ "description": "Library for parsing CLI options",
+ "homepage": "https://github.com/sebastianbergmann/cli-parser",
"support": {
- "issues": "https://github.com/phar-io/version/issues",
- "source": "https://github.com/phar-io/version/tree/3.1.0"
+ "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
+ "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
},
- "time": "2021-02-23T14:00:09+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:08:49+00:00"
},
{
- "name": "phpdocumentor/reflection-common",
- "version": "2.2.0",
+ "name": "sebastian/code-unit",
+ "version": "1.0.8",
"source": {
"type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
+ "url": "https://github.com/sebastianbergmann/code-unit.git",
+ "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
- "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
+ "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
"shasum": ""
},
"require": {
- "php": "^7.2 || ^8.0"
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-2.x": "2.x-dev"
+ "dev-master": "1.0-dev"
}
},
"autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": "src/"
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
+ "description": "Collection of value objects that represent the PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/code-unit",
"support": {
- "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
- "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
+ "issues": "https://github.com/sebastianbergmann/code-unit/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
},
- "time": "2020-06-27T09:03:43+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:08:54+00:00"
},
{
- "name": "phpdocumentor/reflection-docblock",
- "version": "5.2.2",
+ "name": "sebastian/code-unit-reverse-lookup",
+ "version": "2.0.3",
"source": {
"type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556"
+ "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
+ "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556",
- "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
+ "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
"shasum": ""
},
"require": {
- "ext-filter": "*",
- "php": "^7.2 || ^8.0",
- "phpdocumentor/reflection-common": "^2.2",
- "phpdocumentor/type-resolver": "^1.3",
- "webmozart/assert": "^1.9.1"
+ "php": ">=7.3"
},
"require-dev": {
- "mockery/mockery": "~1.3.2"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "5.x-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": "src"
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- },
- {
- "name": "Jaap van Otterdijk",
- "email": "account@ijaap.nl"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
}
],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
+ "description": "Looks up which function or method a line of code belongs to",
+ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
"support": {
- "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
- "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
+ "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
},
- "time": "2020-09-03T19:13:55+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:30:19+00:00"
},
{
- "name": "phpdocumentor/type-resolver",
- "version": "1.5.0",
+ "name": "sebastian/comparator",
+ "version": "4.0.6",
"source": {
"type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f"
+ "url": "https://github.com/sebastianbergmann/comparator.git",
+ "reference": "55f4261989e546dc112258c7a75935a81a7ce382"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/30f38bffc6f24293dadd1823936372dfa9e86e2f",
- "reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382",
+ "reference": "55f4261989e546dc112258c7a75935a81a7ce382",
"shasum": ""
},
"require": {
- "php": "^7.2 || ^8.0",
- "phpdocumentor/reflection-common": "^2.0"
+ "php": ">=7.3",
+ "sebastian/diff": "^4.0",
+ "sebastian/exporter": "^4.0"
},
"require-dev": {
- "ext-tokenizer": "*",
- "psalm/phar": "^4.8"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-1.x": "1.x-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": "src"
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
}
],
- "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
+ "description": "Provides the functionality to compare PHP values for equality",
+ "homepage": "https://github.com/sebastianbergmann/comparator",
+ "keywords": [
+ "comparator",
+ "compare",
+ "equality"
+ ],
"support": {
- "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
- "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.0"
+ "issues": "https://github.com/sebastianbergmann/comparator/issues",
+ "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
},
- "time": "2021-09-17T15:28:14+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T15:49:45+00:00"
},
{
- "name": "phpspec/prophecy",
- "version": "1.14.0",
+ "name": "sebastian/complexity",
+ "version": "2.0.2",
"source": {
"type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e"
+ "url": "https://github.com/sebastianbergmann/complexity.git",
+ "reference": "739b35e53379900cc9ac327b2147867b8b6efd88"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e",
- "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e",
+ "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88",
+ "reference": "739b35e53379900cc9ac327b2147867b8b6efd88",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.2",
- "php": "^7.2 || ~8.0, <8.2",
- "phpdocumentor/reflection-docblock": "^5.2",
- "sebastian/comparator": "^3.0 || ^4.0",
- "sebastian/recursion-context": "^3.0 || ^4.0"
+ "nikic/php-parser": "^4.7",
+ "php": ">=7.3"
},
"require-dev": {
- "phpspec/phpspec": "^6.0 || ^7.0",
- "phpunit/phpunit": "^8.0 || ^9.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
- "psr-4": {
- "Prophecy\\": "src/Prophecy"
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
+ "description": "Library for calculating the complexity of PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/complexity",
"support": {
- "issues": "https://github.com/phpspec/prophecy/issues",
- "source": "https://github.com/phpspec/prophecy/tree/1.14.0"
+ "issues": "https://github.com/sebastianbergmann/complexity/issues",
+ "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
},
- "time": "2021-09-10T09:02:12+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T15:52:27+00:00"
},
{
- "name": "phpunit/php-code-coverage",
- "version": "9.2.7",
+ "name": "sebastian/diff",
+ "version": "4.0.4",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "d4c798ed8d51506800b441f7a13ecb0f76f12218"
+ "url": "https://github.com/sebastianbergmann/diff.git",
+ "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d4c798ed8d51506800b441f7a13ecb0f76f12218",
- "reference": "d4c798ed8d51506800b441f7a13ecb0f76f12218",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
"shasum": ""
},
"require": {
- "ext-dom": "*",
- "ext-libxml": "*",
- "ext-xmlwriter": "*",
- "nikic/php-parser": "^4.12.0",
- "php": ">=7.3",
- "phpunit/php-file-iterator": "^3.0.3",
- "phpunit/php-text-template": "^2.0.2",
- "sebastian/code-unit-reverse-lookup": "^2.0.2",
- "sebastian/complexity": "^2.0",
- "sebastian/environment": "^5.1.2",
- "sebastian/lines-of-code": "^1.0.3",
- "sebastian/version": "^3.0.1",
- "theseer/tokenizer": "^1.2.0"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-pcov": "*",
- "ext-xdebug": "*"
+ "phpunit/phpunit": "^9.3",
+ "symfony/process": "^4.2 || ^5"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "9.2-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -2155,20 +1953,24 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
}
],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
+ "description": "Diff implementation",
+ "homepage": "https://github.com/sebastianbergmann/diff",
"keywords": [
- "coverage",
- "testing",
- "xunit"
+ "diff",
+ "udiff",
+ "unidiff",
+ "unified diff"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.7"
+ "issues": "https://github.com/sebastianbergmann/diff/issues",
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
},
"funding": [
{
@@ -2176,20 +1978,20 @@
"type": "github"
}
],
- "time": "2021-09-17T05:39:03+00:00"
+ "time": "2020-10-26T13:10:38+00:00"
},
{
- "name": "phpunit/php-file-iterator",
- "version": "3.0.5",
+ "name": "sebastian/environment",
+ "version": "5.1.3",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8"
+ "url": "https://github.com/sebastianbergmann/environment.git",
+ "reference": "388b6ced16caa751030f6a69e588299fa09200ac"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8",
- "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac",
+ "reference": "388b6ced16caa751030f6a69e588299fa09200ac",
"shasum": ""
},
"require": {
@@ -2198,10 +2000,13 @@
"require-dev": {
"phpunit/phpunit": "^9.3"
},
+ "suggest": {
+ "ext-posix": "*"
+ },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0-dev"
+ "dev-master": "5.1-dev"
}
},
"autoload": {
@@ -2216,19 +2021,19 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
}
],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
+ "description": "Provides functionality to handle HHVM/PHP environments",
+ "homepage": "http://www.github.com/sebastianbergmann/environment",
"keywords": [
- "filesystem",
- "iterator"
+ "Xdebug",
+ "environment",
+ "hhvm"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
- "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
+ "issues": "https://github.com/sebastianbergmann/environment/issues",
+ "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
},
"funding": [
{
@@ -2236,36 +2041,34 @@
"type": "github"
}
],
- "time": "2020-09-28T05:57:25+00:00"
+ "time": "2020-09-28T05:52:38+00:00"
},
{
- "name": "phpunit/php-invoker",
- "version": "3.1.1",
+ "name": "sebastian/exporter",
+ "version": "4.0.3",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-invoker.git",
- "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
+ "url": "https://github.com/sebastianbergmann/exporter.git",
+ "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
- "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65",
+ "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "php": ">=7.3",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
- "ext-pcntl": "*",
+ "ext-mbstring": "*",
"phpunit/phpunit": "^9.3"
},
- "suggest": {
- "ext-pcntl": "*"
- },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -2280,18 +2083,34 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
}
],
- "description": "Invoke callables with a timeout",
- "homepage": "https://github.com/sebastianbergmann/php-invoker/",
+ "description": "Provides the functionality to export PHP variables for visualization",
+ "homepage": "http://www.github.com/sebastianbergmann/exporter",
"keywords": [
- "process"
+ "export",
+ "exporter"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
- "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
+ "issues": "https://github.com/sebastianbergmann/exporter/issues",
+ "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
},
"funding": [
{
@@ -2299,32 +2118,38 @@
"type": "github"
}
],
- "time": "2020-09-28T05:58:55+00:00"
+ "time": "2020-09-28T05:24:23+00:00"
},
{
- "name": "phpunit/php-text-template",
- "version": "2.0.4",
+ "name": "sebastian/global-state",
+ "version": "5.0.3",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
+ "url": "https://github.com/sebastianbergmann/global-state.git",
+ "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
- "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49",
+ "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "php": ">=7.3",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
+ "ext-dom": "*",
"phpunit/phpunit": "^9.3"
},
+ "suggest": {
+ "ext-uopz": "*"
+ },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "5.0-dev"
}
},
"autoload": {
@@ -2339,18 +2164,17 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
}
],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
+ "description": "Snapshotting of global state",
+ "homepage": "http://www.github.com/sebastianbergmann/global-state",
"keywords": [
- "template"
+ "global state"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
- "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
+ "issues": "https://github.com/sebastianbergmann/global-state/issues",
+ "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3"
},
"funding": [
{
@@ -2358,23 +2182,24 @@
"type": "github"
}
],
- "time": "2020-10-26T05:33:50+00:00"
+ "time": "2021-06-11T13:31:12+00:00"
},
{
- "name": "phpunit/php-timer",
- "version": "5.0.3",
+ "name": "sebastian/lines-of-code",
+ "version": "1.0.3",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
+ "url": "https://github.com/sebastianbergmann/lines-of-code.git",
+ "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
- "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
+ "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc",
+ "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc",
"shasum": ""
},
"require": {
+ "nikic/php-parser": "^4.6",
"php": ">=7.3"
},
"require-dev": {
@@ -2383,7 +2208,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "5.0-dev"
+ "dev-master": "1.0-dev"
}
},
"autoload": {
@@ -2402,14 +2227,11 @@
"role": "lead"
}
],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
+ "description": "Library for counting the lines of code in PHP source code",
+ "homepage": "https://github.com/sebastianbergmann/lines-of-code",
"support": {
- "issues": "https://github.com/sebastianbergmann/php-timer/issues",
- "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
+ "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
+ "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
},
"funding": [
{
@@ -2417,75 +2239,39 @@
"type": "github"
}
],
- "time": "2020-10-26T13:16:10+00:00"
+ "time": "2020-11-28T06:42:11+00:00"
},
{
- "name": "phpunit/phpunit",
- "version": "9.5.9",
+ "name": "sebastian/object-enumerator",
+ "version": "4.0.4",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "ea8c2dfb1065eb35a79b3681eee6e6fb0a6f273b"
+ "url": "https://github.com/sebastianbergmann/object-enumerator.git",
+ "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ea8c2dfb1065eb35a79b3681eee6e6fb0a6f273b",
- "reference": "ea8c2dfb1065eb35a79b3681eee6e6fb0a6f273b",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
+ "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.3.1",
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "ext-xmlwriter": "*",
- "myclabs/deep-copy": "^1.10.1",
- "phar-io/manifest": "^2.0.3",
- "phar-io/version": "^3.0.2",
"php": ">=7.3",
- "phpspec/prophecy": "^1.12.1",
- "phpunit/php-code-coverage": "^9.2.3",
- "phpunit/php-file-iterator": "^3.0.5",
- "phpunit/php-invoker": "^3.1.1",
- "phpunit/php-text-template": "^2.0.3",
- "phpunit/php-timer": "^5.0.2",
- "sebastian/cli-parser": "^1.0.1",
- "sebastian/code-unit": "^1.0.6",
- "sebastian/comparator": "^4.0.5",
- "sebastian/diff": "^4.0.3",
- "sebastian/environment": "^5.1.3",
- "sebastian/exporter": "^4.0.3",
- "sebastian/global-state": "^5.0.1",
- "sebastian/object-enumerator": "^4.0.3",
- "sebastian/resource-operations": "^3.0.3",
- "sebastian/type": "^2.3.4",
- "sebastian/version": "^3.0.2"
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
- "ext-pdo": "*",
- "phpspec/prophecy-phpunit": "^2.0.1"
- },
- "suggest": {
- "ext-soap": "*",
- "ext-xdebug": "*"
+ "phpunit/phpunit": "^9.3"
},
- "bin": [
- "phpunit"
- ],
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "9.5-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
"classmap": [
"src/"
- ],
- "files": [
- "src/Framework/Assert/Functions.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -2495,45 +2281,35 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
}
],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
+ "description": "Traverses array structures and object graphs to enumerate all referenced objects",
+ "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
"support": {
- "issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.9"
+ "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
+ "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
},
"funding": [
- {
- "url": "https://phpunit.de/donate.html",
- "type": "custom"
- },
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
- "time": "2021-08-31T06:47:40+00:00"
+ "time": "2020-10-26T13:12:34+00:00"
},
{
- "name": "sebastian/cli-parser",
- "version": "1.0.1",
+ "name": "sebastian/object-reflector",
+ "version": "2.0.4",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/cli-parser.git",
- "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
+ "url": "https://github.com/sebastianbergmann/object-reflector.git",
+ "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
- "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
+ "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
"shasum": ""
},
"require": {
@@ -2545,7 +2321,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -2560,15 +2336,14 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
}
],
- "description": "Library for parsing CLI options",
- "homepage": "https://github.com/sebastianbergmann/cli-parser",
+ "description": "Allows reflection of object attributes, including inherited and non-public ones",
+ "homepage": "https://github.com/sebastianbergmann/object-reflector/",
"support": {
- "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
- "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
},
"funding": [
{
@@ -2576,20 +2351,20 @@
"type": "github"
}
],
- "time": "2020-09-28T06:08:49+00:00"
+ "time": "2020-10-26T13:14:26+00:00"
},
{
- "name": "sebastian/code-unit",
- "version": "1.0.8",
+ "name": "sebastian/recursion-context",
+ "version": "4.0.4",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit.git",
- "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
+ "url": "https://github.com/sebastianbergmann/recursion-context.git",
+ "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
- "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172",
+ "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172",
"shasum": ""
},
"require": {
@@ -2601,7 +2376,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -2616,15 +2391,22 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
}
],
- "description": "Collection of value objects that represent the PHP code units",
- "homepage": "https://github.com/sebastianbergmann/code-unit",
+ "description": "Provides functionality to recursively process PHP variables",
+ "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"support": {
- "issues": "https://github.com/sebastianbergmann/code-unit/issues",
- "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
+ "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
},
"funding": [
{
@@ -2632,32 +2414,32 @@
"type": "github"
}
],
- "time": "2020-10-26T13:08:54+00:00"
+ "time": "2020-10-26T13:17:30+00:00"
},
{
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "2.0.3",
+ "name": "sebastian/resource-operations",
+ "version": "3.0.3",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
+ "url": "https://github.com/sebastianbergmann/resource-operations.git",
+ "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
- "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
+ "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
"shasum": ""
},
"require": {
"php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^9.3"
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -2675,11 +2457,11 @@
"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/",
+ "description": "Provides a list of PHP built-in functions that operate on resources",
+ "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
"support": {
- "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
- "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
+ "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
+ "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
},
"funding": [
{
@@ -2687,26 +2469,24 @@
"type": "github"
}
],
- "time": "2020-09-28T05:30:19+00:00"
+ "time": "2020-09-28T06:45:17+00:00"
},
{
- "name": "sebastian/comparator",
- "version": "4.0.6",
+ "name": "sebastian/type",
+ "version": "2.3.4",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "55f4261989e546dc112258c7a75935a81a7ce382"
+ "url": "https://github.com/sebastianbergmann/type.git",
+ "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382",
- "reference": "55f4261989e546dc112258c7a75935a81a7ce382",
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914",
+ "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914",
"shasum": ""
},
"require": {
- "php": ">=7.3",
- "sebastian/diff": "^4.0",
- "sebastian/exporter": "^4.0"
+ "php": ">=7.3"
},
"require-dev": {
"phpunit/phpunit": "^9.3"
@@ -2714,7 +2494,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-master": "2.3-dev"
}
},
"autoload": {
@@ -2729,31 +2509,15 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
+ "description": "Collection of value objects that represent the types of the PHP type system",
+ "homepage": "https://github.com/sebastianbergmann/type",
"support": {
- "issues": "https://github.com/sebastianbergmann/comparator/issues",
- "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
+ "issues": "https://github.com/sebastianbergmann/type/issues",
+ "source": "https://github.com/sebastianbergmann/type/tree/2.3.4"
},
"funding": [
{
@@ -2761,33 +2525,29 @@
"type": "github"
}
],
- "time": "2020-10-26T15:49:45+00:00"
+ "time": "2021-06-15T12:49:02+00:00"
},
{
- "name": "sebastian/complexity",
- "version": "2.0.2",
+ "name": "sebastian/version",
+ "version": "3.0.2",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/complexity.git",
- "reference": "739b35e53379900cc9ac327b2147867b8b6efd88"
+ "url": "https://github.com/sebastianbergmann/version.git",
+ "reference": "c6c1022351a901512170118436c764e473f6de8c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88",
- "reference": "739b35e53379900cc9ac327b2147867b8b6efd88",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
+ "reference": "c6c1022351a901512170118436c764e473f6de8c",
"shasum": ""
},
"require": {
- "nikic/php-parser": "^4.7",
"php": ">=7.3"
},
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -2806,11 +2566,11 @@
"role": "lead"
}
],
- "description": "Library for calculating the complexity of PHP code units",
- "homepage": "https://github.com/sebastianbergmann/complexity",
+ "description": "Library that helps with managing the version number of Git-hosted PHP projects",
+ "homepage": "https://github.com/sebastianbergmann/version",
"support": {
- "issues": "https://github.com/sebastianbergmann/complexity/issues",
- "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
+ "issues": "https://github.com/sebastianbergmann/version/issues",
+ "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
},
"funding": [
{
@@ -2818,673 +2578,877 @@
"type": "github"
}
],
- "time": "2020-10-26T15:52:27+00:00"
+ "time": "2020-09-28T06:39:44+00:00"
},
{
- "name": "sebastian/diff",
- "version": "4.0.4",
+ "name": "squizlabs/php_codesniffer",
+ "version": "3.6.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
+ "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
+ "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.4.0"
},
"require-dev": {
- "phpunit/phpunit": "^9.3",
- "symfony/process": "^4.2 || ^5"
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
+ "bin": [
+ "bin/phpcs",
+ "bin/phpcbf"
+ ],
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-master": "3.x-dev"
}
},
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
+ "name": "Greg Sherwood",
+ "role": "lead"
}
],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
- "diff",
- "udiff",
- "unidiff",
- "unified diff"
+ "phpcs",
+ "standards"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
+ "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
+ "source": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-10-26T13:10:38+00:00"
+ "time": "2021-04-09T00:54:41+00:00"
},
{
- "name": "sebastian/environment",
- "version": "5.1.3",
+ "name": "symfony/console",
+ "version": "v5.3.7",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "388b6ced16caa751030f6a69e588299fa09200ac"
+ "url": "https://github.com/symfony/console.git",
+ "reference": "8b1008344647462ae6ec57559da166c2bfa5e16a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac",
- "reference": "388b6ced16caa751030f6a69e588299fa09200ac",
+ "url": "https://api.github.com/repos/symfony/console/zipball/8b1008344647462ae6ec57559da166c2bfa5e16a",
+ "reference": "8b1008344647462ae6ec57559da166c2bfa5e16a",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "php": ">=7.2.5",
+ "symfony/deprecation-contracts": "^2.1",
+ "symfony/polyfill-mbstring": "~1.0",
+ "symfony/polyfill-php73": "^1.8",
+ "symfony/polyfill-php80": "^1.16",
+ "symfony/service-contracts": "^1.1|^2",
+ "symfony/string": "^5.1"
+ },
+ "conflict": {
+ "psr/log": ">=3",
+ "symfony/dependency-injection": "<4.4",
+ "symfony/dotenv": "<5.1",
+ "symfony/event-dispatcher": "<4.4",
+ "symfony/lock": "<4.4",
+ "symfony/process": "<4.4"
+ },
+ "provide": {
+ "psr/log-implementation": "1.0|2.0"
},
"require-dev": {
- "phpunit/phpunit": "^9.3"
+ "psr/log": "^1|^2",
+ "symfony/config": "^4.4|^5.0",
+ "symfony/dependency-injection": "^4.4|^5.0",
+ "symfony/event-dispatcher": "^4.4|^5.0",
+ "symfony/lock": "^4.4|^5.0",
+ "symfony/process": "^4.4|^5.0",
+ "symfony/var-dumper": "^4.4|^5.0"
},
"suggest": {
- "ext-posix": "*"
+ "psr/log": "For using the console logger",
+ "symfony/event-dispatcher": "",
+ "symfony/lock": "",
+ "symfony/process": ""
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.1-dev"
- }
- },
"autoload": {
- "classmap": [
- "src/"
+ "psr-4": {
+ "Symfony\\Component\\Console\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
+ "description": "Eases the creation of beautiful and testable command line interfaces",
+ "homepage": "https://symfony.com",
"keywords": [
- "Xdebug",
- "environment",
- "hhvm"
+ "cli",
+ "command line",
+ "console",
+ "terminal"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/environment/issues",
- "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
+ "source": "https://github.com/symfony/console/tree/v5.3.7"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-09-28T05:52:38+00:00"
+ "time": "2021-08-25T20:02:16+00:00"
},
{
- "name": "sebastian/exporter",
- "version": "4.0.3",
+ "name": "symfony/deprecation-contracts",
+ "version": "v2.4.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65"
+ "url": "https://github.com/symfony/deprecation-contracts.git",
+ "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65",
- "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627",
+ "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627",
"shasum": ""
},
"require": {
- "php": ">=7.3",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^9.3"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-main": "2.4-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
}
},
"autoload": {
- "classmap": [
- "src/"
+ "files": [
+ "function.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
},
{
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
+ "description": "A generic function and convention to trigger deprecation notices",
+ "homepage": "https://symfony.com",
"support": {
- "issues": "https://github.com/sebastianbergmann/exporter/issues",
- "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-09-28T05:24:23+00:00"
+ "time": "2021-03-23T23:28:01+00:00"
},
{
- "name": "sebastian/global-state",
- "version": "5.0.3",
+ "name": "symfony/polyfill-ctype",
+ "version": "v1.23.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49"
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49",
- "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
+ "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
"shasum": ""
},
"require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "ext-dom": "*",
- "phpunit/phpunit": "^9.3"
+ "php": ">=7.1"
},
"suggest": {
- "ext-uopz": "*"
+ "ext-ctype": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "5.0-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
- "classmap": [
- "src/"
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
"keywords": [
- "global state"
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
],
"support": {
- "issues": "https://github.com/sebastianbergmann/global-state/issues",
- "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2021-06-11T13:31:12+00:00"
+ "time": "2021-02-19T12:13:01+00:00"
},
{
- "name": "sebastian/lines-of-code",
- "version": "1.0.3",
+ "name": "symfony/polyfill-intl-grapheme",
+ "version": "v1.23.1",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/lines-of-code.git",
- "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc"
+ "url": "https://github.com/symfony/polyfill-intl-grapheme.git",
+ "reference": "16880ba9c5ebe3642d1995ab866db29270b36535"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc",
- "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535",
+ "reference": "16880ba9c5ebe3642d1995ab866db29270b36535",
"shasum": ""
},
"require": {
- "nikic/php-parser": "^4.6",
- "php": ">=7.3"
+ "php": ">=7.1"
},
- "require-dev": {
- "phpunit/phpunit": "^9.3"
+ "suggest": {
+ "ext-intl": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
- "classmap": [
- "src/"
+ "psr-4": {
+ "Symfony\\Polyfill\\Intl\\Grapheme\\": ""
+ },
+ "files": [
+ "bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Library for counting the lines of code in PHP source code",
- "homepage": "https://github.com/sebastianbergmann/lines-of-code",
+ "description": "Symfony polyfill for intl's grapheme_* functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "grapheme",
+ "intl",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
- "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-11-28T06:42:11+00:00"
+ "time": "2021-05-27T12:26:48+00:00"
},
{
- "name": "sebastian/object-enumerator",
- "version": "4.0.4",
+ "name": "symfony/polyfill-intl-normalizer",
+ "version": "v1.23.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
+ "url": "https://github.com/symfony/polyfill-intl-normalizer.git",
+ "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
- "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8",
+ "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8",
"shasum": ""
},
"require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
+ "php": ">=7.1"
},
- "require-dev": {
- "phpunit/phpunit": "^9.3"
+ "suggest": {
+ "ext-intl": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
"classmap": [
- "src/"
+ "Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
+ "description": "Symfony polyfill for intl's Normalizer class and related functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "intl",
+ "normalizer",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
- "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.23.0"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-10-26T13:12:34+00:00"
+ "time": "2021-02-19T12:13:01+00:00"
},
{
- "name": "sebastian/object-reflector",
- "version": "2.0.4",
+ "name": "symfony/polyfill-mbstring",
+ "version": "v1.23.1",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
+ "url": "https://github.com/symfony/polyfill-mbstring.git",
+ "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
- "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6",
+ "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "php": ">=7.1"
},
- "require-dev": {
- "phpunit/phpunit": "^9.3"
+ "suggest": {
+ "ext-mbstring": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
- "classmap": [
- "src/"
+ "psr-4": {
+ "Symfony\\Polyfill\\Mbstring\\": ""
+ },
+ "files": [
+ "bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
+ "description": "Symfony polyfill for the Mbstring extension",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "mbstring",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
- "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-10-26T13:14:26+00:00"
+ "time": "2021-05-27T12:26:48+00:00"
},
{
- "name": "sebastian/recursion-context",
- "version": "4.0.4",
+ "name": "symfony/polyfill-php73",
+ "version": "v1.23.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172"
+ "url": "https://github.com/symfony/polyfill-php73.git",
+ "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172",
- "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172",
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010",
+ "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010",
"shasum": ""
},
"require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php73\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
"classmap": [
- "src/"
+ "Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
},
{
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
+ "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-10-26T13:17:30+00:00"
+ "time": "2021-02-19T12:13:01+00:00"
},
{
- "name": "sebastian/resource-operations",
- "version": "3.0.3",
+ "name": "symfony/polyfill-php80",
+ "version": "v1.23.1",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
+ "url": "https://github.com/symfony/polyfill-php80.git",
+ "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
- "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
"shasum": ""
},
"require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.0"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php80\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
"classmap": [
- "src/"
+ "Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "name": "Ion Bazan",
+ "email": "ion.bazan@gmail.com"
+ },
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
+ "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
- "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-09-28T06:45:17+00:00"
+ "time": "2021-07-28T13:41:28+00:00"
},
{
- "name": "sebastian/type",
- "version": "2.3.4",
+ "name": "symfony/service-contracts",
+ "version": "v2.4.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/type.git",
- "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914"
+ "url": "https://github.com/symfony/service-contracts.git",
+ "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914",
- "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb",
+ "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "php": ">=7.2.5",
+ "psr/container": "^1.1"
},
- "require-dev": {
- "phpunit/phpunit": "^9.3"
+ "suggest": {
+ "symfony/service-implementation": ""
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.3-dev"
+ "dev-main": "2.4-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
}
},
"autoload": {
- "classmap": [
- "src/"
- ]
+ "psr-4": {
+ "Symfony\\Contracts\\Service\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Collection of value objects that represent the types of the PHP type system",
- "homepage": "https://github.com/sebastianbergmann/type",
+ "description": "Generic abstractions related to writing services",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "abstractions",
+ "contracts",
+ "decoupling",
+ "interfaces",
+ "interoperability",
+ "standards"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/type/issues",
- "source": "https://github.com/sebastianbergmann/type/tree/2.3.4"
+ "source": "https://github.com/symfony/service-contracts/tree/v2.4.0"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2021-06-15T12:49:02+00:00"
+ "time": "2021-04-01T10:43:52+00:00"
},
{
- "name": "sebastian/version",
- "version": "3.0.2",
+ "name": "symfony/string",
+ "version": "v5.3.7",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "c6c1022351a901512170118436c764e473f6de8c"
+ "url": "https://github.com/symfony/string.git",
+ "reference": "8d224396e28d30f81969f083a58763b8b9ceb0a5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
- "reference": "c6c1022351a901512170118436c764e473f6de8c",
+ "url": "https://api.github.com/repos/symfony/string/zipball/8d224396e28d30f81969f083a58763b8b9ceb0a5",
+ "reference": "8d224396e28d30f81969f083a58763b8b9ceb0a5",
"shasum": ""
},
"require": {
- "php": ">=7.3"
+ "php": ">=7.2.5",
+ "symfony/polyfill-ctype": "~1.8",
+ "symfony/polyfill-intl-grapheme": "~1.0",
+ "symfony/polyfill-intl-normalizer": "~1.0",
+ "symfony/polyfill-mbstring": "~1.0",
+ "symfony/polyfill-php80": "~1.15"
},
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
+ "require-dev": {
+ "symfony/error-handler": "^4.4|^5.0",
+ "symfony/http-client": "^4.4|^5.0",
+ "symfony/translation-contracts": "^1.1|^2",
+ "symfony/var-exporter": "^4.4|^5.0"
},
+ "type": "library",
"autoload": {
- "classmap": [
- "src/"
+ "psr-4": {
+ "Symfony\\Component\\String\\": ""
+ },
+ "files": [
+ "Resources/functions.php"
+ ],
+ "exclude-from-classmap": [
+ "/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
+ "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "grapheme",
+ "i18n",
+ "string",
+ "unicode",
+ "utf-8",
+ "utf8"
+ ],
"support": {
- "issues": "https://github.com/sebastianbergmann/version/issues",
- "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
+ "source": "https://github.com/symfony/string/tree/v5.3.7"
},
"funding": [
{
- "url": "https://github.com/sebastianbergmann",
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
"type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "time": "2020-09-28T06:39:44+00:00"
+ "time": "2021-08-26T08:00:08+00:00"
},
{
"name": "theseer/tokenizer",
@@ -3604,5 +3568,5 @@
"php": "^7.2|^8.0"
},
"platform-dev": [],
- "plugin-api-version": "2.0.0"
+ "plugin-api-version": "2.1.0"
}
diff --git a/phpcs.xml b/phpcs.xml
new file mode 100644
index 0000000..b8c1879
--- /dev/null
+++ b/phpcs.xml
@@ -0,0 +1,16 @@
+
+
+ PHP-FIG PSR-12 standards with modifications to: control structure (empty space before closing brace).
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644
index 0000000..c308dcf
--- /dev/null
+++ b/phpstan.neon
@@ -0,0 +1,4 @@
+parameters:
+ level: 8
+ paths:
+ - src
From 31029f3dd3ac2605f20cd8b6abd0363d606b6763 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:09:20 -0500
Subject: [PATCH 02/24] Update composer.json
---
composer.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/composer.json b/composer.json
index 89a52d4..4a842b5 100644
--- a/composer.json
+++ b/composer.json
@@ -16,7 +16,8 @@
"require-dev": {
"squizlabs/php_codesniffer": "^3.6",
"phpstan/phpstan": "^0.12",
- "pestphp/pest": "^1.20"
+ "pestphp/pest": "^1.20",
+ "psr/log": "^1.0.1"
},
"autoload": {
"psr-4": {
From d97427c5dc58cfd6ff41095049694e5e5bcb480d Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:10:15 -0500
Subject: [PATCH 03/24] Update composer.lock
---
composer.lock | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/composer.lock b/composer.lock
index 4fa3ae6..28bf012 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "14a5707ed6cd540067e6afe962c6d1bf",
+ "content-hash": "f0680b54dce0db8d5174ddc1448d625f",
"packages": [
{
"name": "8fold/php-html-builder",
@@ -1568,30 +1568,30 @@
},
{
"name": "psr/log",
- "version": "2.0.0",
+ "version": "1.1.4",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
- "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376"
+ "reference": "d49695b909c3b7628b6289db5479a1c204601f11"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/ef29f6d262798707a9edd554e2b82517ef3a9376",
- "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
+ "reference": "d49695b909c3b7628b6289db5479a1c204601f11",
"shasum": ""
},
"require": {
- "php": ">=8.0.0"
+ "php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "1.1.x-dev"
}
},
"autoload": {
"psr-4": {
- "Psr\\Log\\": "src"
+ "Psr\\Log\\": "Psr/Log/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -1612,9 +1612,9 @@
"psr-3"
],
"support": {
- "source": "https://github.com/php-fig/log/tree/2.0.0"
+ "source": "https://github.com/php-fig/log/tree/1.1.4"
},
- "time": "2021-07-14T16:41:46+00:00"
+ "time": "2021-05-03T11:20:27+00:00"
},
{
"name": "sebastian/cli-parser",
From 819d0571b5bcc186bb2b3bd18f7a2d184192a08d Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:33:55 -0500
Subject: [PATCH 04/24] anchor, image, page-title, simple-list passing stan
checks
---
src/UIKit/Elements/Simple/Anchor.php | 24 ++++--
src/UIKit/Elements/Simple/Image.php | 20 +++--
src/UIKit/Elements/Simple/PageTitle.php | 53 +++++++-----
src/UIKit/Elements/Simple/SimpleList.php | 101 ++++++++++++-----------
4 files changed, 117 insertions(+), 81 deletions(-)
diff --git a/src/UIKit/Elements/Simple/Anchor.php b/src/UIKit/Elements/Simple/Anchor.php
index a73127a..76d8beb 100755
--- a/src/UIKit/Elements/Simple/Anchor.php
+++ b/src/UIKit/Elements/Simple/Anchor.php
@@ -2,21 +2,31 @@
namespace Eightfold\Markup\UIKit\Elements\Simple;
-use Eightfold\Shoop\Shoop;
+use Eightfold\HTMLBuilder\Element as HtmlElement;
-use Eightfold\Markup\Html\HtmlElement;
-use Eightfold\Markup\Html;
+// use Eightfold\Shoop\Shoop;
-class Anchor extends HtmlElement
+// use Eightfold\Markup\Html\HtmlElement;
+// use Eightfold\Markup\Html;
+
+class Anchor //extends HtmlElement
{
+ private string $text = '';
+
+ private string $href = '';
+
public function __construct(string $text, string $href)
{
- parent::__construct($text, ["href {$href}"]);
+ $this->text = $text;
+
+ $this->href = $href;
+ // parent::__construct($text, ["href {$href}"]);
}
- public function unfold(): string
+ public function build(): string
{
- return Html::a($this->main)->attr(...$this->attributes)->unfold();
+ return '';
+ // return Html::a($this->main)->attr(...$this->attributes)->unfold();
}
}
diff --git a/src/UIKit/Elements/Simple/Image.php b/src/UIKit/Elements/Simple/Image.php
index 3852c12..fe9598b 100755
--- a/src/UIKit/Elements/Simple/Image.php
+++ b/src/UIKit/Elements/Simple/Image.php
@@ -2,19 +2,27 @@
namespace Eightfold\Markup\UIKit\Elements\Simple;
-use Eightfold\Markup\Html\HtmlElement;
+use Eightfold\HTMLBuilder\Element as HtmlElement;
-use Eightfold\Markup\Html;
+// use Eightfold\Markup\Html\HtmlElement;
-class Image extends HtmlElement
+// use Eightfold\Markup\Html;
+
+class Image //extends HtmlElement
{
+ private string $alt = '';
+
+ private string $src = '';
+
public function __construct(string $alt, string $src)
{
- $this->attr("alt {$alt}", "src {$src}");
+ $this->$alt = $alt;
+ $this->$src = $src;
}
- public function unfold(): string
+ public function build(): string
{
- return Html::img()->attr(...$this->attributes)->unfold();
+ return '';
+ // return Html::img()->attr(...$this->attributes)->unfold();
}
}
diff --git a/src/UIKit/Elements/Simple/PageTitle.php b/src/UIKit/Elements/Simple/PageTitle.php
index cc287a9..3a43976 100755
--- a/src/UIKit/Elements/Simple/PageTitle.php
+++ b/src/UIKit/Elements/Simple/PageTitle.php
@@ -2,44 +2,55 @@
namespace Eightfold\Markup\UIKit\Elements\Simple;
-use Eightfold\Markup\Html\HtmlElement;
+use Eightfold\HTMLBuilder\Element as HtmlElement;
-use Eightfold\Markup\Html;
+// use Eightfold\Markup\Html\HtmlElement;
-use Eightfold\Markup\UIKit;
+// use Eightfold\Markup\Html;
-class PageTitle extends HtmlElement
+// use Eightfold\Markup\UIKit;
+
+class PageTitle //extends HtmlElement
{
- private $separater = " | ";
+ /**
+ * @var array
+ */
+ private array $parts = [];
+
+ private string $separater = " | ";
- private $reversed = false;
+ private bool $reversed = false;
- private $stringOnly = false;
+ private bool $stringOnly = false;
- public function __construct(array $titleParts, string $separater = " | ")
+ /**
+ * @param array $parts [description]
+ */
+ public function __construct(array $parts, string $separater = " | ")
{
- $this->main = $titleParts;
+ $this->parts = $parts;
$this->separater = $separater;
}
- public function unfold(): string
+ public function build(): string
{
- if (count($this->main) === 0) {
- return "";
- }
+ return '';
+ // if (count($this->main) === 0) {
+ // return "";
+ // }
- if ($this->reversed) {
- $this->main = array_reverse($this->main);
- }
+ // if ($this->reversed) {
+ // $this->main = array_reverse($this->main);
+ // }
- $string = implode($this->separater, $this->main);
+ // $string = implode($this->separater, $this->main);
- if ($this->stringOnly) {
- return $string;
- }
+ // if ($this->stringOnly) {
+ // return $string;
+ // }
- return Html::title($string)->attr(...$this->attributes)->unfold();
+ // return Html::title($string)->attr(...$this->attributes)->unfold();
}
public function reversed(): PageTitle
diff --git a/src/UIKit/Elements/Simple/SimpleList.php b/src/UIKit/Elements/Simple/SimpleList.php
index 4dc82cd..9328103 100755
--- a/src/UIKit/Elements/Simple/SimpleList.php
+++ b/src/UIKit/Elements/Simple/SimpleList.php
@@ -2,40 +2,39 @@
namespace Eightfold\Markup\UIKit\Elements\Simple;
-use Eightfold\Markup\Html\HtmlElement;
+use Eightfold\HTMLBuilder\Element as HtmlElement;
-use Eightfold\Markup\Html;
+// use Eightfold\Markup\Html\HtmlElement;
-use Eightfold\Markup\UIKit;
+// use Eightfold\Markup\Html;
-class SimpleList extends HtmlElement
+// use Eightfold\Markup\UIKit;
+
+class SimpleList //extends HtmlElement
{
- private $type = 'unordered';
+ /**
+ * @var array
+ */
+ private array $items = [];
+
+ private string $type = 'unordered';
- private $descriptionTerms = [];
+ /**
+ * @var array
+ */
+ private array $descriptionTerms = [];
+ /**
+ * @param HtmlElement|string $items [description]
+ */
public function __construct(...$items)
{
- $this->main = $items;
+ $this->items = $items;
}
- public function unfold(): string
+ public function build(): string
{
- if (count($this->main) === 0) {
- return "";
- }
-
- $container = 'ul';
- if ($this->type == 'ordered') {
- $container = 'ol';
-
- } elseif ($this->type == 'description') {
- $container = 'dl';
-
- }
-
- $listItems = $this->listItems($this->main);
- return Html::$container(...$listItems)->attr(...$this->attributes)->unfold();
+ return '';
}
public function ordered(): SimpleList
@@ -44,44 +43,52 @@ public function ordered(): SimpleList
return $this;
}
- public function description(int ...$terms): SimpleList
+ /**
+ * @param HtmlElement|string $terms [description]
+ */
+ public function description(...$terms): SimpleList
{
$this->type = 'description';
$this->descriptionTerms = $terms;
return $this;
}
- private function listItems(array $content)
+ /**
+ * @param array $content [description]
+ * @return array [description]
+ */
+ private function listItems(array $content): array
{
- $count = 0;
- $listItems = [];
- foreach ($content as $index => $item) {
- if ($this->type == 'unordered' || $this->type == 'ordered') {
- $listItems[] = Html::li($item);
+ return [];
+ // $count = 0;
+ // $listItems = [];
+ // foreach ($content as $index => $item) {
+ // if ($this->type == 'unordered' || $this->type == 'ordered') {
+ // $listItems[] = Html::li($item);
- } else {
- $count++;
+ // } else {
+ // $count++;
- if (count($this->descriptionTerms) == 0) {
- if ($count % 2 == 0) {
- $items = Html::dd($item);
+ // if (count($this->descriptionTerms) == 0) {
+ // if ($count % 2 == 0) {
+ // $items = Html::dd($item);
- } else {
- $items = Html::dt($item);
+ // } else {
+ // $items = Html::dt($item);
- }
+ // }
- } elseif (in_array($index + 1, $this->descriptionTerms)) {
- $items = Html::dt($item);
+ // } elseif (in_array($index + 1, $this->descriptionTerms)) {
+ // $items = Html::dt($item);
- } else {
- $items = Html::dd($item);
+ // } else {
+ // $items = Html::dd($item);
- }
- $listItems[] = $items;
- }
- }
- return $listItems;
+ // }
+ // $listItems[] = $items;
+ // }
+ // }
+ // return $listItems;
}
}
From 6e918badc8d108e23b0ee068bd4b8e2eac8621f4 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:34:34 -0500
Subject: [PATCH 05/24] Delete WebView.php
---
src/UIKit/Elements/Pages/WebView.php | 51 ----------------------------
1 file changed, 51 deletions(-)
delete mode 100755 src/UIKit/Elements/Pages/WebView.php
diff --git a/src/UIKit/Elements/Pages/WebView.php b/src/UIKit/Elements/Pages/WebView.php
deleted file mode 100755
index 6b3f817..0000000
--- a/src/UIKit/Elements/Pages/WebView.php
+++ /dev/null
@@ -1,51 +0,0 @@
-title = $title;
- $this->content = $content;
- }
-
- public function unfold(): string
- {
- $string = UIKit::html(
- UIKit::head(...Shoop::this([
- UIKit::title($this->title)
- ])->append($this->meta)
- ),
- UIKit::body(...$this->content)->attr(...$this->bodyAttributes)
- )->unfold();
-
- return "". $string;
- }
-
- public function meta(...$meta)
- {
- $this->meta = $meta;
- return $this;
- }
-
- public function bodyAttr(string ...$attributes)
- {
- $this->bodyAttributes = $attributes;
- return $this;
- }
-}
From 7215d5f032a7e8183062343fc4e0b24db579dc89 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:36:25 -0500
Subject: [PATCH 06/24] Delete WebHead.php
---
src/UIKit/Elements/Compound/WebHead.php | 150 ------------------------
1 file changed, 150 deletions(-)
delete mode 100644 src/UIKit/Elements/Compound/WebHead.php
diff --git a/src/UIKit/Elements/Compound/WebHead.php b/src/UIKit/Elements/Compound/WebHead.php
deleted file mode 100644
index 5e7f03e..0000000
--- a/src/UIKit/Elements/Compound/WebHead.php
+++ /dev/null
@@ -1,150 +0,0 @@
-favicons = Shoop::this([]);
- $this->styles = Shoop::this([]);
- $this->scripts = Shoop::this([]);
- $this->favicons = Shoop::this([]);
- $this->social = Shoop::this([]);
- }
-
- /**
- *
- * @param string $baseIcon ico - base icon
- * @param string $appleTouch No specific image type required - for apple touch devices
- * @param string $icon32 PNG only - 32px varient (Android)
- * @param string $icon16 PNG only - 16px varient (Android)
- *
- * @return this
- */
- public function favicons(
- string $baseIcon,
- string $appleTouch = "",
- string $icon32 = "",
- string $icon16 = ""
- )
- {
- $this->favicons = Shoop::this([
- Html::link()->attr("type image/x-icon", "rel icon", "href {$baseIcon}")
- ]);
-
- if (Shoop::this($appleTouch)->efToBoolean()) {
- $this->favicons = $this->favicons->append(
- [
- Html::link()
- ->attr("rel apple-touch-icon", "href {$appleTouch}", "sizes 180x180")
- ]
- );
- }
-
- if (Shoop::this($icon32)->efToBoolean()) {
- $this->favicons = $this->favicons->append(
- [
- Html::link()
- ->attr("rel image/png", "href {$icon32}", "sizes 32x32")
- ]
- );
- }
-
- if (Shoop::this($icon16)->efToBoolean()) {
- $this->favicons = $this->favicons->append(
- [
- Html::link()->attr("rel image/png", "href {$icon16}", "sizes 16x16")
- ]
- );
- }
- return $this;
- }
-
- public function styles(...$paths)
- {
- $this->styles = Shoop::this($paths)->each(function($v) {
- return Html::link()->attr("rel stylesheet", "href {$v}");
- });
- return $this;
- }
-
- public function scripts(...$paths)
- {
- $this->scripts = Shoop::this($paths)->each(function($v) {
- return Html::script()->attr("src {$v}");
- });
- return $this;
- }
-
- public function social(
- string $title,
- string $url,
- string $description,
- string $image = "",
- string $type = "website",
- string $appId = ""
- )
- {
- $this->social = UIKit::socialMeta(
- $title,
- $url,
- $description,
- $image,
- $type,
- $appId
- );
- return $this;
- }
-
- public function socialTwitter(
- string $twitterHandle = "",
- string $twitterCard = "summary_large_image"
- )
- {
- $this->social = $this->social->twitter($twitterHandle, $twitterCard);
- return $this;
- }
-
- public function unfold(): string
- {
- $base = Html::meta()->attr(
- "name viewport",
- "content width=device-width,initial-scale=1"
- )->unfold();
- $favicons = $this->favicons->unfold();
- $social = $this->social->unfold();
- $styles = $this->styles->unfold();
- $scripts = $this->scripts->unfold();
-
- return Shoop::this([$base])
- ->append($favicons)
- ->append([$social])
- ->append($styles)
- ->append($scripts)
- ->each(function($v) {
- if (Shoop::this($v)->efIsString()) {
- return $v;
-
- } elseif (is_a($v, Foldable::class)) {
- return $v->unfold();
-
- }
- })->efToString();
- }
-}
From b6fc30177dda45ba932e0a0fc0e2c578bc6ebe43 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:36:50 -0500
Subject: [PATCH 07/24] Delete SocialMeta.php
---
src/UIKit/Elements/Compound/SocialMeta.php | 75 ----------------------
1 file changed, 75 deletions(-)
delete mode 100644 src/UIKit/Elements/Compound/SocialMeta.php
diff --git a/src/UIKit/Elements/Compound/SocialMeta.php b/src/UIKit/Elements/Compound/SocialMeta.php
deleted file mode 100644
index 89cbbad..0000000
--- a/src/UIKit/Elements/Compound/SocialMeta.php
+++ /dev/null
@@ -1,75 +0,0 @@
-args = [$title, $url, $description, $image, $type, $appId];
- $this->meta = Shoop::this([
- "og:type" => $type,
- "og:title" => $title,
- "og:url" => $url,
- "og:description" => (Shoop::this($description)->efIsEmpty()) ? "Description unavailable" : $description
- ]);
-
- if (Shoop::this($image)->isEmpty()->reversed()->unfold()) {
- $this->meta = $this->meta->append(["og:image" => $image]);
- }
-
- if (Shoop::this($appId)->isEmpty()->reversed()->unfold()) {
- $this->meta = $this->meta->append(["og:app_id" => $appId]);
- }
- }
-
- public function twitter($site = "", $card = "summary_large_image")
- {
- $this->meta = $this->meta->append(["twitter:card" => $card]);
- if (Shoop::this($site)->isEmpty()->reversed()->unfold()) {
- $this->meta = $this->meta->append(["twitter:site" => $site]);
- }
- return $this;
- }
-
- public function unfold(): string
- {
- return $this->meta->each(function($v, $m, &$build) {
- $build[] = (Shoop::this($m)->efStartsWith("og:"))
- ? Html::meta()->attr("property {$m}", "content {$v}")->unfold()
- : Html::meta()->attr("name {$m}", "content {$v}")->unfold();
- });
- }
-}
From 57fb9c13e8b2458a32a506173d493f6973f29e06 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:37:10 -0500
Subject: [PATCH 08/24] Delete Pagination.php
---
src/UIKit/Elements/Compound/Pagination.php | 230 ---------------------
1 file changed, 230 deletions(-)
delete mode 100644 src/UIKit/Elements/Compound/Pagination.php
diff --git a/src/UIKit/Elements/Compound/Pagination.php b/src/UIKit/Elements/Compound/Pagination.php
deleted file mode 100644
index 03279e7..0000000
--- a/src/UIKit/Elements/Compound/Pagination.php
+++ /dev/null
@@ -1,230 +0,0 @@
-totalItems = Type::sanitizeType($totalItems, ESInt::class);
- $this->totalItemsPerPage = Type::sanitizeType($totalItemsPerPage, ESInt::class);
- $this->middleLimit = Type::sanitizeType($middleLimit, ESInt::class)
- ->isOdd(function($result, $int) {
- return ($result->unfold()) ? $int : $int->plus(1);
- });
-
- $this->currentPage = Type::sanitizeType($currentPage, ESInt::class);
-
- $this->linkPrefix = Type::sanitizeType($linkPrefix, ESString::class);
- }
-
- public function totalItems(): ESInt
- {
- return $this->totalItems;
- }
-
- public function totalItemsPerPage(): ESInt
- {
- return $this->totalItemsPerPage;
- }
-
- public function middleLimit()
- {
- return $this->middleLimit;
- }
-
- public function currentPage(): ESInt
- {
- return $this->currentPage;
- }
-
- public function linkPrefix(): ESString
- {
- return $this->linkPrefix;
- }
-
- public function totalPages(): ESInt
- {
- return Shoop::int($this->totalItems())->roundUp($this->totalItemsPerPage);
- }
-
- public function totalLinksToDisplay()
- {
- $total = $this->totalItems()->roundDown($this->totalItemsPerPage());
- if ($total->isGreaterThanUnfolded($this->middleLimit())) {
- return $this->middleLimit()->plus(2);
- }
- return $this->totalItems()->roundDown($this->totalItemsPerPage());
- }
-
- public function totalMiddleSurrounding()
- {
- return $this->middleLimit()->roundDown(2);
- }
- public function firstPageNumber()
- {
- return Shoop::int(1);
- }
-
- public function lastPageNumber()
- {
- return $this->totalPages();
- }
-
- public function secondPageNumber()
- {
- if ($this->totalLinksToDisplay()->isLessThanOrEqualUnfolded(2)) {
- // if the number of pages is less than or equal to 2 always return 0
- return Shoop::int(0);
-
- } elseif ($this->currentPage()->minus($this->totalMiddleSurrounding())->isLessThanOrEqualUnfolded(2)) {
- // if the number of pages is less than middleLimit + 2 always return 2
- // 1 2 3 4 5* 6 ... 10
- return Shoop::int(2);
-
- } elseif ($this->currentPage()->isGreaterThanUnfolded($this->totalPages()->minus($this->middleLimit())->plus(1))) {
- // if the current page is greater than or equal to totalPages - middleLimit + 1 always return
- // totalPages - middleLimit + 1
- // 1 ... 5 6 7 8* 9 10
- return $this->totalPages()->minus($this->middleLimit());
-
- } else {
- // 1 ... 4 5 6* 7 8 ... 10
- return $this->currentPage()->minus($this->totalMiddleSurrounding());
-
- }
- }
-
- public function penultimatePageNumber()
- {
- if ($this->totalLinksToDisplay()->isLessThanOrEqualUnfolded(2)) {
- // if the number of pages is less than or equal to 2 always return 0
- return Shoop::int(0);
-
- } elseif ($this->totalPages()->isLessThanOrEqualUnfolded($this->firstPageNumber()->plus($this->totalMiddleSurrounding()))) {
- return $this->totalPages()->minus(1);
-
- } else {
- return $this->secondPageNumber()->plus($this->middleLimit()->minus(1))
- ->isGreaterThanOrEqual($this->totalPages(), function($result, $int) {
- if ($result->unfold()) {
- return $this->totalPages()->minus(1);
- }
- return $this->secondPageNumber()->plus($this->middleLimit()
- ->minus(1));
- });
- }
- }
-
- public function middleRange()
- {
- return $this->secondPageNumber()->asArray($this->penultimatePageNumber())
- ->noEmpties()->reindex();
- }
-
- public function unfold(): string
- {
- if ($this->totalPages()->isUnfolded(1)) {
- return "";
-
- } elseif ($this->totalPages()->isUnfolded(2)) {
- return UIKit::nav(
- UIKit::listWith(
- UIKit::listWith(...
- Shoop::array([$this->anchorFor(1), $this->anchorFor(2)])
- )->attr("class page-links")
- )
- )->attr("class pagination");
-
- }
-
- $previous = $this->anchorFor(1);
- if ($this->currentPage()->minus(1)->isGreaterThanUnfolded(1)) {
- $previous = $this->anchorFor($this->currentPage()->minus(1));
-
- } elseif ($this->currentPage()->isUnfolded(1)) {
- $previous = "";
-
- }
-
- $next = $this->anchorFor($this->currentPage()->plus(1));
- if ($this->currentPage()->plus(1)->isGreaterThanUnfolded($this->totalPages())) {
- $next = $this->anchorFor($this->totalPages());
-
- } elseif ($this->currentPage()->isUnfolded($this->totalPages())) {
- $next = "";
-
- }
-
- $links = $this->secondPageNumber()->asArray($this->penultimatePageNumber())
- ->each(function($pageNumber) {
- return $this->anchorFor($pageNumber);
- })->start($this->anchorFor(1))->end($this->anchorFor($this->totalPages()));
-
- $hasPrevious = $this->currentPage()->isGreaterThanUnfolded(1);
- $hasNext = $this->currentPage()->isLessThanUnfolded($this->totalPages());
-
- $navClass = "class pagination next previous"; // both
- if (! $hasNext and $hasPrevious) {
- $navClass = "class pagination previous";
-
- } elseif ($hasNext and ! $hasPrevious) {
- $navClass = "class pagination next";
-
- }
-
- return UIKit::nav(
- UIKit::listWith(...
- Shoop::array([$previous, $next])->plus(...$links)->noEmpties()
- )
- )->attr($navClass);
- }
-
- private function anchorFor($pageNumber, $isNext = false, $isPrevious = false)
- {
- $pageNumber = Type::sanitizeType($pageNumber, ESInt::class)->unfold();
- $isNext = Type::sanitizeType($isNext, ESBool::class)->unfold();
- $isPrevious = Type::sanitizeType($isPrevious, ESBool::class)->unfold();
- $link = UIKit::anchor(
- $pageNumber,
- $this->linkPrefix->plus("/{$pageNumber}")
- )->attr("aria-label Goto page {$pageNumber}");
- if ($this->currentPage->isUnfolded($pageNumber)) {
- $link = $link->attr(
- "aria-label Current page, page {$pageNumber}",
- "aria-current true",
- "class current"
- );
-
- } elseif ($isNext and ! $isPrevious) {
- $link = $link->attr("class next");
-
- } elseif (! $isNext and $isPrevious) {
- $link = $link->attr("class previous");
-
- }
- return $link;
- }
-}
From f45e7654ce031a52b7a310addc45263011ee2931 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:37:27 -0500
Subject: [PATCH 09/24] Delete Accordion.php
---
src/UIKit/Elements/Compound/Accordion.php | 60 -----------------------
1 file changed, 60 deletions(-)
delete mode 100644 src/UIKit/Elements/Compound/Accordion.php
diff --git a/src/UIKit/Elements/Compound/Accordion.php b/src/UIKit/Elements/Compound/Accordion.php
deleted file mode 100644
index 120c233..0000000
--- a/src/UIKit/Elements/Compound/Accordion.php
+++ /dev/null
@@ -1,60 +0,0 @@
-content = $content;
-
- $this->summary = $summary;
- $this->summaryId = $summaryId;
- $this->panelId = $this->summaryId ."-panel";
- }
-
- public function unfold(): string
- {
- $header = UIKit::h2(
- UIKit::button(
- $this->summary
- )->attr(
- "aria-expanded true",
- "id {$this->summaryId}",
- "aria-controls {$this->panelId}"
- )
- )->attr("is accordion")->unfold();
-
- $panel = UIKit::div(
- ...$this->content
- )->attr(
- "is accordion-panel",
- "tabindex -1",
- "role region",
- "aria-hidden false",
- "id {$this->panelId}",
- "aria-labelledby {$this->summaryId}"
- )->unfold();
-
- return $header . $panel;
- }
-}
From 21e9a9d59cf3248665d15618a03c8fc5a86388ce Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:38:39 -0500
Subject: [PATCH 10/24] Delete DoubleWrap.php
---
src/UIKit/Elements/Compound/DoubleWrap.php | 47 ----------------------
1 file changed, 47 deletions(-)
delete mode 100755 src/UIKit/Elements/Compound/DoubleWrap.php
diff --git a/src/UIKit/Elements/Compound/DoubleWrap.php b/src/UIKit/Elements/Compound/DoubleWrap.php
deleted file mode 100755
index 91c690d..0000000
--- a/src/UIKit/Elements/Compound/DoubleWrap.php
+++ /dev/null
@@ -1,47 +0,0 @@
-content = $content;
- }
-
- public function outer(string $outer, string ...$outerAttr): DoubleWrap
- {
- $this->outerElement = $outer;
- $this->outerAttr = $outerAttr;
- return $this;
- }
-
- public function inner(string $inner, string ...$innerAttr): DoubleWrap
- {
- $this->innerElement = $inner;
- $this->innerAttr = $innerAttr;
- return $this;
- }
-
- public function unfold(string ...$attributes): string
- {
- return UIKit::{$this->outerElement}(
- UIKit::{$this->innerElement}(
- ...$this->content
- )->attr(...$this->innerAttr)
- )->attr(...$this->outerAttr)->unfold(...$attributes);
- }
-}
From 8912d67db6b62d6e97e97e4f6c487ecc4b8a6b41 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 17:52:11 -0500
Subject: [PATCH 11/24] Markdown passing stan
---
composer.json | 1 +
composer.lock | 633 ++++++++++++++++++++---
src/UIKit/Elements/Compound/Markdown.php | 93 ++--
3 files changed, 614 insertions(+), 113 deletions(-)
diff --git a/composer.json b/composer.json
index 4a842b5..a207931 100644
--- a/composer.json
+++ b/composer.json
@@ -11,6 +11,7 @@
],
"require": {
"php": "^7.2|^8.0",
+ "league/commonmark": "^2.0.2",
"8fold/php-html-builder": "^0.5"
},
"require-dev": {
diff --git a/composer.lock b/composer.lock
index 28bf012..1cf5925 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "f0680b54dce0db8d5174ddc1448d625f",
+ "content-hash": "a2a8f26f8696bda5093d662ebee8b8b5",
"packages": [
{
"name": "8fold/php-html-builder",
@@ -118,6 +118,554 @@
}
],
"time": "2021-10-08T00:40:01+00:00"
+ },
+ {
+ "name": "dflydev/dot-access-data",
+ "version": "v3.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
+ "reference": "0992cc19268b259a39e86f296da5f0677841f42c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/0992cc19268b259a39e86f296da5f0677841f42c",
+ "reference": "0992cc19268b259a39e86f296da5f0677841f42c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.42",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
+ "scrutinizer/ocular": "1.6.0",
+ "squizlabs/php_codesniffer": "^3.5",
+ "vimeo/psalm": "^3.14"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "3.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Dflydev\\DotAccessData\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Dragonfly Development Inc.",
+ "email": "info@dflydev.com",
+ "homepage": "http://dflydev.com"
+ },
+ {
+ "name": "Beau Simensen",
+ "email": "beau@dflydev.com",
+ "homepage": "http://beausimensen.com"
+ },
+ {
+ "name": "Carlos Frutos",
+ "email": "carlos@kiwing.it",
+ "homepage": "https://github.com/cfrutos"
+ },
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com"
+ }
+ ],
+ "description": "Given a deep data structure, access data by dot notation.",
+ "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
+ "keywords": [
+ "access",
+ "data",
+ "dot",
+ "notation"
+ ],
+ "support": {
+ "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues",
+ "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.1"
+ },
+ "time": "2021-08-13T13:06:58+00:00"
+ },
+ {
+ "name": "league/commonmark",
+ "version": "2.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/commonmark.git",
+ "reference": "2df87709f44b0dd733df86aef0830dce9b1f0f13"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/2df87709f44b0dd733df86aef0830dce9b1f0f13",
+ "reference": "2df87709f44b0dd733df86aef0830dce9b1f0f13",
+ "shasum": ""
+ },
+ "require": {
+ "ext-mbstring": "*",
+ "league/config": "^1.1.1",
+ "php": "^7.4 || ^8.0",
+ "psr/event-dispatcher": "^1.0",
+ "symfony/polyfill-php80": "^1.15"
+ },
+ "require-dev": {
+ "cebe/markdown": "^1.0",
+ "commonmark/cmark": "0.30.0",
+ "commonmark/commonmark.js": "0.30.0",
+ "composer/package-versions-deprecated": "^1.8",
+ "erusev/parsedown": "^1.0",
+ "ext-json": "*",
+ "github/gfm": "0.29.0",
+ "michelf/php-markdown": "^1.4",
+ "phpstan/phpstan": "^0.12.88",
+ "phpunit/phpunit": "^9.5.5",
+ "scrutinizer/ocular": "^1.8.1",
+ "symfony/finder": "^5.3",
+ "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0",
+ "unleashedtech/php-coding-standard": "^3.1",
+ "vimeo/psalm": "^4.7.3"
+ },
+ "suggest": {
+ "symfony/yaml": "v2.3+ required if using the Front Matter extension"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "2.1-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\CommonMark\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ }
+ ],
+ "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)",
+ "homepage": "https://commonmark.thephpleague.com",
+ "keywords": [
+ "commonmark",
+ "flavored",
+ "gfm",
+ "github",
+ "github-flavored",
+ "markdown",
+ "md",
+ "parser"
+ ],
+ "support": {
+ "docs": "https://commonmark.thephpleague.com/",
+ "forum": "https://github.com/thephpleague/commonmark/discussions",
+ "issues": "https://github.com/thephpleague/commonmark/issues",
+ "rss": "https://github.com/thephpleague/commonmark/releases.atom",
+ "source": "https://github.com/thephpleague/commonmark"
+ },
+ "funding": [
+ {
+ "url": "https://enjoy.gitstore.app/repositories/thephpleague/commonmark",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.colinodell.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.paypal.me/colinpodell/10.00",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/colinodell",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/colinodell",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/league/commonmark",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-08-14T14:06:04+00:00"
+ },
+ {
+ "name": "league/config",
+ "version": "v1.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/config.git",
+ "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/config/zipball/a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e",
+ "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e",
+ "shasum": ""
+ },
+ "require": {
+ "dflydev/dot-access-data": "^3.0.1",
+ "nette/schema": "^1.2",
+ "php": "^7.4 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.90",
+ "phpunit/phpunit": "^9.5.5",
+ "scrutinizer/ocular": "^1.8.1",
+ "unleashedtech/php-coding-standard": "^3.1",
+ "vimeo/psalm": "^4.7.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.2-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\Config\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ }
+ ],
+ "description": "Define configuration arrays with strict schemas and access values with dot notation",
+ "homepage": "https://config.thephpleague.com",
+ "keywords": [
+ "array",
+ "config",
+ "configuration",
+ "dot",
+ "dot-access",
+ "nested",
+ "schema"
+ ],
+ "support": {
+ "docs": "https://config.thephpleague.com/",
+ "issues": "https://github.com/thephpleague/config/issues",
+ "rss": "https://github.com/thephpleague/config/releases.atom",
+ "source": "https://github.com/thephpleague/config"
+ },
+ "funding": [
+ {
+ "url": "https://www.colinodell.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.paypal.me/colinpodell/10.00",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/colinodell",
+ "type": "github"
+ }
+ ],
+ "time": "2021-08-14T12:15:32+00:00"
+ },
+ {
+ "name": "nette/schema",
+ "version": "v1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nette/schema.git",
+ "reference": "f5ed39fc96358f922cedfd1e516f0dadf5d2be0d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nette/schema/zipball/f5ed39fc96358f922cedfd1e516f0dadf5d2be0d",
+ "reference": "f5ed39fc96358f922cedfd1e516f0dadf5d2be0d",
+ "shasum": ""
+ },
+ "require": {
+ "nette/utils": "^3.1.4 || ^4.0",
+ "php": ">=7.1 <8.1"
+ },
+ "require-dev": {
+ "nette/tester": "^2.3 || ^2.4",
+ "phpstan/phpstan-nette": "^0.12",
+ "tracy/tracy": "^2.7"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause",
+ "GPL-2.0-only",
+ "GPL-3.0-only"
+ ],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ },
+ {
+ "name": "Nette Community",
+ "homepage": "https://nette.org/contributors"
+ }
+ ],
+ "description": "📐 Nette Schema: validating data structures against a given Schema.",
+ "homepage": "https://nette.org",
+ "keywords": [
+ "config",
+ "nette"
+ ],
+ "support": {
+ "issues": "https://github.com/nette/schema/issues",
+ "source": "https://github.com/nette/schema/tree/v1.2.1"
+ },
+ "time": "2021-03-04T17:51:11+00:00"
+ },
+ {
+ "name": "nette/utils",
+ "version": "v3.2.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nette/utils.git",
+ "reference": "9cd80396ca58d7969ab44fc7afcf03624dfa526e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nette/utils/zipball/9cd80396ca58d7969ab44fc7afcf03624dfa526e",
+ "reference": "9cd80396ca58d7969ab44fc7afcf03624dfa526e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2 <8.2"
+ },
+ "conflict": {
+ "nette/di": "<3.0.6"
+ },
+ "require-dev": {
+ "nette/tester": "~2.0",
+ "phpstan/phpstan": "^0.12",
+ "tracy/tracy": "^2.3"
+ },
+ "suggest": {
+ "ext-gd": "to use Image",
+ "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()",
+ "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
+ "ext-json": "to use Nette\\Utils\\Json",
+ "ext-mbstring": "to use Strings::lower() etc...",
+ "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
+ "ext-xml": "to use Strings::length() etc. when mbstring is not available"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.2-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause",
+ "GPL-2.0-only",
+ "GPL-3.0-only"
+ ],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ },
+ {
+ "name": "Nette Community",
+ "homepage": "https://nette.org/contributors"
+ }
+ ],
+ "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
+ "homepage": "https://nette.org",
+ "keywords": [
+ "array",
+ "core",
+ "datetime",
+ "images",
+ "json",
+ "nette",
+ "paginator",
+ "password",
+ "slugify",
+ "string",
+ "unicode",
+ "utf-8",
+ "utility",
+ "validation"
+ ],
+ "support": {
+ "issues": "https://github.com/nette/utils/issues",
+ "source": "https://github.com/nette/utils/tree/v3.2.5"
+ },
+ "time": "2021-09-20T10:50:11+00:00"
+ },
+ {
+ "name": "psr/event-dispatcher",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/event-dispatcher.git",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\EventDispatcher\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Standard interfaces for event handling.",
+ "keywords": [
+ "events",
+ "psr",
+ "psr-14"
+ ],
+ "support": {
+ "issues": "https://github.com/php-fig/event-dispatcher/issues",
+ "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0"
+ },
+ "time": "2019-01-08T18:20:26+00:00"
+ },
+ {
+ "name": "symfony/polyfill-php80",
+ "version": "v1.23.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php80.git",
+ "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php80\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ion Bazan",
+ "email": "ion.bazan@gmail.com"
+ },
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-07-28T13:41:28+00:00"
}
],
"packages-dev": [
@@ -3205,89 +3753,6 @@
],
"time": "2021-02-19T12:13:01+00:00"
},
- {
- "name": "symfony/polyfill-php80",
- "version": "v1.23.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "1.23-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php80\\": ""
- },
- "files": [
- "bootstrap.php"
- ],
- "classmap": [
- "Resources/stubs"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Ion Bazan",
- "email": "ion.bazan@gmail.com"
- },
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
- ],
- "support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
- },
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2021-07-28T13:41:28+00:00"
- },
{
"name": "symfony/service-contracts",
"version": "v2.4.0",
diff --git a/src/UIKit/Elements/Compound/Markdown.php b/src/UIKit/Elements/Compound/Markdown.php
index 365b1cd..ffb13b7 100755
--- a/src/UIKit/Elements/Compound/Markdown.php
+++ b/src/UIKit/Elements/Compound/Markdown.php
@@ -2,91 +2,126 @@
namespace Eightfold\Markup\UIKit\Elements\Compound;
-use Eightfold\Markup\Html\HtmlElement;
+use League\CommonMark\Extension\ExtensionInterface;
-use Eightfold\ShoopShelf\Shoop;
+// use Eightfold\Markup\Html\HtmlElement;
-class Markdown extends HtmlElement
+// use Eightfold\ShoopShelf\Shoop;
+
+class Markdown //extends HtmlElement
{
- private $markdown = "";
- private $config = [];
- private $caseSensitive = true;
- private $markdownReplacements = [];
+ private string $markdown = '';
+
+ /**
+ * @var array
+ */
+ private array $config = [];
+
+ private bool $caseSensitive = true;
+
+ /**
+ * @var array
+ */
+ private array $markdownReplacements = [];
+
+ /**
+ * @var array
+ */
private $htmlReplacements = [];
- private $trim = true;
- private $minified = true;
+
+ private bool $trim = true;
+
+ private bool $minified = true;
+
+ /**
+ * @var array
+ */
private $extensions = [];
+ /**
+ * @param array $config [description]
+ */
public function __construct(string $markdown, array $config = [])
{
$this->config = $config;
$this->markdown = $markdown;
}
- public function caseSensitive($caseSensitive = true)
+ public function caseSensitive(bool $caseSensitive = true): Markdown
{
$this->caseSensitive = $caseSensitive;
return $this;
}
- public function markdownReplacements($replacements = [])
+ /**
+ * @param array $replacements [description]
+ */
+ public function markdownReplacements($replacements = []): Markdown
{
$this->markdownReplacements = $replacements;
return $this;
}
- public function htmlReplacements($replacements = [])
+ /**
+ * @param array $replacements [description]
+ */
+ public function htmlReplacements($replacements = []): Markdown
{
$this->htmlReplacements = $replacements;
return $this;
}
- public function trim($trim = true)
+ public function trim(bool $trim = true): Markdown
{
$this->trim = $trim;
return $this;
}
- public function minified($minified = true)
+ public function minified(bool $minified = true): Markdown
{
$this->minified = $minified;
return $this;
}
- public function extensions(...$extensions)
+ /**
+ * @param ExtensionInterface $extensions [description]
+ */
+ public function extensions(...$extensions): Markdown
{
- $this->extensions = Shoop::this($extensions)
- ->drop(fn($v) => empty($v))->unfold();
+ // $this->extensions = Shoop::this($extensions)
+ // ->drop(fn($v) => empty($v))->unfold();
return $this;
}
- public function prepend(string $markdown)
+ public function prepend(string $markdown): Markdown
{
$this->markdown = $markdown . $this->markdown;
return $this;
}
- public function meta()
+ public function meta(): object
{
- return Shoop::markdown($this->markdown)->meta();
+ return (object) [];
+ // return Shoop::markdown($this->markdown)->meta();
}
- public function unfold(): string
+ public function build(): string
{
- return Shoop::markdown($this->markdown, ...$this->extensions)
- ->html(
- $this->markdownReplacements,
- $this->htmlReplacements,
- $this->caseSensitive,
- $this->minified,
- $this->config
- )->unfold();
+ return '';
+ // return Shoop::markdown($this->markdown, ...$this->extensions)
+ // ->html(
+ // $this->markdownReplacements,
+ // $this->htmlReplacements,
+ // $this->caseSensitive,
+ // $this->minified,
+ // $this->config
+ // )->unfold();
}
}
From 26f095991ad14a69233d3c98c8f3b7f96781c704 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 18:13:57 -0500
Subject: [PATCH 12/24] move feed to separate project
---
src/Feed/Rss/Channel.php | 110 ---------
src/Feed/Rss/Item.php | 118 ----------
src/UIKit.php | 474 ++++++++++++++++++++-------------------
3 files changed, 244 insertions(+), 458 deletions(-)
delete mode 100644 src/Feed/Rss/Channel.php
delete mode 100644 src/Feed/Rss/Item.php
diff --git a/src/Feed/Rss/Channel.php b/src/Feed/Rss/Channel.php
deleted file mode 100644
index 51d38b6..0000000
--- a/src/Feed/Rss/Channel.php
+++ /dev/null
@@ -1,110 +0,0 @@
-title = $title;
- $this->link = $link;
- $this->description = $description;
- $this->content = $content;
- }
-
- // TODO: Use __call() and verify against list of available members
- public function language(string $language = "en-us"): Channel
- {
- if (strlen($language) > 0) {
- $this->otherChannelMeta["language"] = $language;
- }
- return $this;
- }
-
- public function copyright(string $content = ""): Channel
- {
- if (strlen($content) > 0) {
- $this->otherChannelMeta["copyright"] = $content;
- }
- return $this;
- }
-
- public function unfold(): string
- {
- $content = Shoop::this([
- Element::fold("title", $this->title),
- Element::fold("link", $this->link),
- Element::fold("description", $this->description)
- ]);
-
- foreach ($this->otherChannelMeta as $element => $value) {
- $content = $content->append([Element::fold($element, $value)]);
- }
-
- // Shoop::this($this->otherChannelMeta)->each(
- // function($value, $element) use (&$content) {
- // $content = $content->plus(Element::fold($element, $value));
- // });
-
- $content = $content->append($this->content);
-
- return Shoop::this(
- Element::fold("rss",
- Element::fold("channel",
- ...$content->each(function($item) {
- return $item->unfold();
- })
- )
- )->attr("version ". $this->rssVersion)->unfold()
- )->prepend('xmlVersion .'"?>'."\n")->unfold();
- }
-
- /**
- * language The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape, is here. You may also use values defined by the W3C. en-us
- * copyright Copyright notice for content in the channel. Copyright 2002, Spartanburg Herald-Journal
- * managingEditor Email address for person responsible for editorial content. geo@herald.com (George Matesky)
- * webMaster Email address for person responsible for technical issues relating to channel. betty@herald.com (Betty Guernsey)
- * pubDate The publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That's when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred). Sat, 07 Sep 2002 0:00:01 GMT
- * lastBuildDate The last time the content of the channel changed. Sat, 07 Sep 2002 9:42:31 GMT
- * category Specify one or more categories that the channel belongs to. Follows the same rules as the - -level category element. More info. Newspapers
- * generator A string indicating the program used to generate the channel. MightyInHouse Content System v2.3
- * docs A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is. http://backend.userland.com/rss
- * cloud Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds. More info here.
- * ttl ttl stands for time to live. It's a number of minutes that indicates how long a channel can be cached before refreshing from the source. More info here. 60
- * image Specifies a GIF, JPEG or PNG image that can be displayed with the channel. More info here.
- * textInput Specifies a text input box that can be displayed with the channel. More info here.
- * skipHours A hint for aggregators telling them which hours they can skip. More info here.
- * skipDays A hint for aggregators telling them which days they can skip. More info here.
- */
-}
diff --git a/src/Feed/Rss/Item.php b/src/Feed/Rss/Item.php
deleted file mode 100644
index f68ba83..0000000
--- a/src/Feed/Rss/Item.php
+++ /dev/null
@@ -1,118 +0,0 @@
-title = $title;
- $this->link = $link;
- $this->description = $description;
- }
-
- public function guid(string $content = ""): Channel
- {
- if (strlen($content) > 0) {
- $this->otherItemContent["guid"] = $content;
-
- } else {
- $this->otherItemContent["guid"] = $this->link;
-
- }
- return $this;
- }
-
- public function date(
- string $date,
- string $format = "Ymd",
- string $timezone = "America/Detroit"
- )
- {
- $this->otherItemContent["pubDate"] = Carbon::createFromFormat(
- "Ymd",
- $date,
- $timezone)->hour(12)->minute(0)->second(0)->toRssString();
- return $this;
- }
-
- public function descriptionLimit(int $limit = 50): Item
- {
- $this->descriptionLimit = $limit;
- return $this;
- }
-
- private function description()
- {
- // TODO: Once Shoop Shelf is ready - add dropTags to ESString
- $tagless = strip_tags($this->description);
- $return = Shoop::this($tagless)->divide(" ");
-
- if ($this->descriptionLimit !== null) {
- $return = $return->first($this->descriptionLimit);
- }
-
- if ($return->efIsArray()) {
- $return = $return->asString(" ");
-
- }
- return $return->append($this->descriptionTail)->unfold();
- }
-
- public function unfold(): string
- {
- $content = Shoop::this([
- Element::fold("title",htmlspecialchars($this->title)),
- Element::fold("link", $this->link),
- Element::fold("description", $this->description())
- ]);
-
- return Shoop::this(
- Element::fold("item", ...$content)->unfold()
- )->unfold();
-
- // ...static::rssItemsStoreItems()->each(function($path) {
- // $markdown = static::uriContentStore($path)->markdown();
-
- // $item = Element::fold(
- // "item",
- // Element::fold("title", htmlspecialchars($title)),
- // Element::fold("link", $link),
- // Element::fold("guid", $link),
- // Element::fold("description", htmlspecialchars($description)),
- // $t
- // );
- }
-
- /**
- * title The title of the item. Venice Film Festival Tries to Quit Sinking
- * link The URL of the item. http://www.nytimes.com/2002/09/07/movies/07FEST.html
- * description The item synopsis. Some of the most heated chatter at the Venice Film Festival this week was about the way that the arrival of the stars at the Palazzo del Cinema was being staged.
- * guid A string that uniquely identifies the item. More. http://inessential.com/2002/09/01.php#a2
- * author Email address of the author of the item. More. oprah@oxygen.net
- * category Includes the item in one or more categories. More. Simpsons Characters
- * comments URL of a page for comments relating to the item. More. http://www.myblog.org/cgi-local/mt/mt-comments.cgi?entry_id=290
- * enclosure Describes a media object that is attached to the item. More.
- * pubDate Indicates when the item was published. More. Sun, 19 May 2002 15:21:36 GMT
- * source The RSS channel that the item came from. More. Quotes of the Day
- */
-}
diff --git a/src/UIKit.php b/src/UIKit.php
index 696bcee..b163835 100755
--- a/src/UIKit.php
+++ b/src/UIKit.php
@@ -2,237 +2,251 @@
namespace Eightfold\Markup;
-use Eightfold\Markup\Element;
-use Eightfold\Markup\Html;
-
-use Eightfold\Shoop\Shoop;
-use Eightfold\Shoop\ESString;
-
-class UIKit extends Html
+// use Eightfold\Markup\Element;
+// use Eightfold\Markup\Html;
+
+// use Eightfold\Shoop\Shoop;
+// use Eightfold\Shoop\ESString;
+use UIKit\Elements\Simple\PageTitle;
+use UIKit\Elements\Simple\SimpleList;
+use UIKit\Elements\Simple\Anchor;
+use UIKit\Elements\Simple\Image;
+use UIKit\Elements\Compound\Markdown;
+
+class UIKit //extends Html
{
- static public function webView($title, ...$content)
- {
- return new UIKit\Elements\Pages\WebView($title, ...$content);
- }
-
- static public function pageTitle($titleParts, $separater = " | ")
- {
- return new UIKit\Elements\Simple\PageTitle($titleParts, $separater);
- }
-
- static public function webHead()
- {
- return new UIKit\Elements\Compound\WebHead();
- }
-
- static public function doubleWrap(...$content)
- {
- return new UIKit\Elements\Compound\DoubleWrap(...$content);
- }
-
- static public function pagination(
- $currentPage,
- $totalItems,
- $linkPrefix = "/feed/page",
- $totalItemsPerPage = 10,
- $middleLimit = 5
- )
- {
- $class = self::class("pagination", self::CLASSES)->unfold();
- return new $class(
- $currentPage,
- $totalItems,
- $linkPrefix,
- $totalItemsPerPage,
- $middleLimit
- );
- }
-
- static public function tableWith(...$rows)
- {
- $class = self::class("tableWith", self::CLASSES)->unfold();
- return new $class(...$rows);
- }
-
- static public function listWith(...$content)
- {
- return new UIKit\Elements\Simple\SimpleList(...$content);
- }
-
- static public function fileInput($label, $name)
- {
- $class = self::class("fileInput", self::CLASSES)->unfold();
- return new $class($label, $name);
- }
-
- static public function hiddenInput($name, $value)
- {
- $class = self::class("hiddenInput", self::CLASSES)->unfold();
- return new $class($name, $value);
- }
+ // static public function webView($title, ...$content)
+ // {
+ // return new UIKit\Elements\Pages\WebView($title, ...$content);
+ // }
+
+ /**
+ * @param array $titleParts [description]
+ * @param string $separater [description]
+ * @return [type] [description]
+ */
+ static public function pageTitle(
+ array $titleParts,
+ string $separater = " | "
+ ): PageTitle {
+ return new PageTitle($titleParts, $separater);
+ }
+
+ // static public function webHead()
+ // {
+ // return new UIKit\Elements\Compound\WebHead();
+ // }
+
+ // static public function doubleWrap(...$content)
+ // {
+ // return new UIKit\Elements\Compound\DoubleWrap(...$content);
+ // }
+
+ // static public function pagination(
+ // $currentPage,
+ // $totalItems,
+ // $linkPrefix = "/feed/page",
+ // $totalItemsPerPage = 10,
+ // $middleLimit = 5
+ // )
+ // {
+ // $class = self::class("pagination", self::CLASSES)->unfold();
+ // return new $class(
+ // $currentPage,
+ // $totalItems,
+ // $linkPrefix,
+ // $totalItemsPerPage,
+ // $middleLimit
+ // );
+ // }
+
+ // static public function tableWith(...$rows)
+ // {
+ // $class = self::class("tableWith", self::CLASSES)->unfold();
+ // return new $class(...$rows);
+ // }
+
+ static public function listWith(...$content): SimpleList
+ {
+ return new SimpleList(...$content);
+ }
+
+ // static public function fileInput($label, $name)
+ // {
+ // $class = self::class("fileInput", self::CLASSES)->unfold();
+ // return new $class($label, $name);
+ // }
+
+ // static public function hiddenInput($name, $value)
+ // {
+ // $class = self::class("hiddenInput", self::CLASSES)->unfold();
+ // return new $class($name, $value);
+ // }
// TODO: Should be able to accept unfoldable
- static public function anchor(string $text, string $href)
- {
- return new UIKit\Elements\Simple\Anchor($text, $href);
- }
-
- static public function image(string $altText, string $path)
- {
- return new UIKit\Elements\Simple\Image($altText, $path);
- }
-
- static public function markdown(string $markdown, array $config = [])
- {
- return new UIKit\Elements\Compound\Markdown($markdown, $config);
- }
-
- static public function stripeElements($formId, $apiKey, $inputLabel, $buttonLabel)
- {
- $class = self::class("stripeElements", self::CLASSES)->unfold();
- return new $class($formId, $apiKey, $inputLabel, $buttonLabel);
- }
-
- static public function socialMeta(
- string $title,
- string $url,
- string $description,
- string $image = "",
- string $type = "website",
- string $appId = ""
- )
- {
- return new UIKit\Elements\Compound\SocialMeta(
- $title,
- $url,
- $description,
- $image,
- $type,
- $appId
- );
- }
-
- static public function accordion(
- string $summaryId,
- string $summary,
- ...$content
- )
- {
- return new UIKit\Elements\Compound\Accordion(
- $summaryId,
- $summary,
- ...$content
- );
- }
-
- static public function __callStatic(string $element, array $elements)
- {
- if (array_key_exists($element, static::CLASSES)) {
- switch ($element) {
- case ('primary_nav'
- || 'secondary_nav'
- || 'side_nav'
- || 'user_card'):
- return new $class(...$elements);
- break;
-
- case ('glyph' || 'head' || 'avatar'):
- return new $class($args[0]);
- break;
-
- case ('footer' || 'image'):
- if (isset($args[1])) {
- return new $class($args[0], $args[1]);
-
- }
- return new $class($args[0]);
- break;
-
- case ('alert'):
- return new $class($args[0], $args[1]);
- break;
-
- case 'header':
- $main = $args[0];
- unset($args[0]);
- return new $class($main, ...$args);
- break;
-
- case ('select'
- || 'textarea'
- || 'markdown_textarea'
- || 'textInput'
- || 'date_input'):
- if (isset($args[3])) {
- return new $class($args[0], $args[1], $args[2], $args[3]);
-
- } elseif ($isset(args[2])) {
- return new $class($args[0], $args[1], $args[3]);
-
- }
- return new $class($args[0], $args[1]);
- break;
-
- case 'progress':
- if (isset($args[2])) {
- return new $class($args[0], $args[1], $args[2]);
-
- } elseif (isset($args[1])) {
- return new $class($args[0], $args[1]);
-
- }
- return new $class($args[0]);
- break;
-
- default:
- return parent::$element(...$args);
- break;
- }
- }
- return Html::$element(...$elements);
- }
-
- const CLASSES = [
- 'webView' => \Eightfold\Markup\UIKit\Elements\Pages\WebView::class,
- // 'form' => UIKit\Elements\Forms\Form::class,
- 'listWith' => \Eightfold\Markup\UIKit\Elements\Simple\SimpleList::class,
- 'tableWith' => \Eightfold\Markup\UIKit\Elements\Simple\SimpleTable::class,
- 'anchor' => \Eightfold\Markup\UIKit\Elements\Simple\Anchor::class,
- 'glyph' => \Eightfold\Markup\UIKit\Elements\Simple\Glyph::class,
- 'image' => \Eightfold\Markup\UIKit\Elements\Simple\Image::class,
- // 'button' => UIKit\Elements\FormControls\Button::class,
-
- 'stripeElements' => \Eightfold\Markup\UIKit\Elements\FormControls\StripeElements::class,
- 'hiddenInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputHidden::class,
- 'fileInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputFile::class,
- 'textInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputText::class,
- // , 'user_card' => UIKit\Elements\Simple\UserCard::class
-
- // , 'alert' => UIKit\Elements\Compound\Alert::class
- 'doubleWrap' => \Eightfold\Markup\UIKit\Elements\Compound\DoubleWrap::class,
- 'markdown' => \Eightfold\Markup\UIKit\Elements\Compound\Markdown::class,
- 'pagination' => \Eightfold\Markup\UIKit\Elements\Compound\Pagination::class,
- 'socialMeta' => \Eightfold\Markup\UIKit\Elements\Compound\SocialMeta::class,
- 'webHead' => \Eightfold\Markup\UIKit\Elements\Compound\WebHead::class,
- 'accordion' => \Eightfold\Markup\UIKit\Elements\Compound\Accordion::class
- // , 'primary_nav' => UIKit\Elements\Compound\NavigationPrimary::class
- // , 'secondary_nav' => UIKit\Elements\Compound\NavigationSecondary::class
- // , 'side_nav' => UIKit\Elements\Compound\NavigationSide::class
- // , 'footer' => UIKit\Elements\Compound\Footer::class
- // // , 'head' => UIKit\Elements\Compound\Head::class
- // , 'header' => UIKit\Elements\Compound\Header::class
- // , 'action_container' => UIKit\Elements\Compound\ActionContainer::class
-
- // , 'select' => UIKit\Elements\FormControls\Select::class
-
- // , 'progress' => UIKit\Elements\FormControls\Progress::class
- // , 'textarea' => UIKit\Elements\FormControls\Textarea::class
- // , 'markdown_textarea' => UIKit\Elements\FormControls\TextareaMarkdown::class
- // , 'date_input' => UIKit\Elements\FormControls\InputDate::class
-
-
-
-
-
- ];
+ static public function anchor(string $text, string $href): Anchor
+ {
+ return new Anchor($text, $href);
+ }
+
+ static public function image(string $altText, string $path): Image
+ {
+ return new Image($altText, $path);
+ }
+
+ public static function markdown(
+ string $markdown,
+ array $config = []
+ ): Markdown {
+ return new Markdown($markdown, $config);
+ }
+
+ // static public function stripeElements($formId, $apiKey, $inputLabel, $buttonLabel)
+ // {
+ // $class = self::class("stripeElements", self::CLASSES)->unfold();
+ // return new $class($formId, $apiKey, $inputLabel, $buttonLabel);
+ // }
+
+ // static public function socialMeta(
+ // string $title,
+ // string $url,
+ // string $description,
+ // string $image = "",
+ // string $type = "website",
+ // string $appId = ""
+ // )
+ // {
+ // return new UIKit\Elements\Compound\SocialMeta(
+ // $title,
+ // $url,
+ // $description,
+ // $image,
+ // $type,
+ // $appId
+ // );
+ // }
+
+ // static public function accordion(
+ // string $summaryId,
+ // string $summary,
+ // ...$content
+ // )
+ // {
+ // return new UIKit\Elements\Compound\Accordion(
+ // $summaryId,
+ // $summary,
+ // ...$content
+ // );
+ // }
+
+ // static public function __callStatic(string $element, array $elements)
+ // {
+ // if (array_key_exists($element, static::CLASSES)) {
+ // switch ($element) {
+ // case ('primary_nav'
+ // || 'secondary_nav'
+ // || 'side_nav'
+ // || 'user_card'):
+ // return new $class(...$elements);
+ // break;
+
+ // case ('glyph' || 'head' || 'avatar'):
+ // return new $class($args[0]);
+ // break;
+
+ // case ('footer' || 'image'):
+ // if (isset($args[1])) {
+ // return new $class($args[0], $args[1]);
+
+ // }
+ // return new $class($args[0]);
+ // break;
+
+ // case ('alert'):
+ // return new $class($args[0], $args[1]);
+ // break;
+
+ // case 'header':
+ // $main = $args[0];
+ // unset($args[0]);
+ // return new $class($main, ...$args);
+ // break;
+
+ // case ('select'
+ // || 'textarea'
+ // || 'markdown_textarea'
+ // || 'textInput'
+ // || 'date_input'):
+ // if (isset($args[3])) {
+ // return new $class($args[0], $args[1], $args[2], $args[3]);
+
+ // } elseif ($isset(args[2])) {
+ // return new $class($args[0], $args[1], $args[3]);
+
+ // }
+ // return new $class($args[0], $args[1]);
+ // break;
+
+ // case 'progress':
+ // if (isset($args[2])) {
+ // return new $class($args[0], $args[1], $args[2]);
+
+ // } elseif (isset($args[1])) {
+ // return new $class($args[0], $args[1]);
+
+ // }
+ // return new $class($args[0]);
+ // break;
+
+ // default:
+ // return parent::$element(...$args);
+ // break;
+ // }
+ // }
+ // return Html::$element(...$elements);
+ // }
+
+ // const CLASSES = [
+ // 'webView' => \Eightfold\Markup\UIKit\Elements\Pages\WebView::class,
+ // // 'form' => UIKit\Elements\Forms\Form::class,
+ // 'listWith' => \Eightfold\Markup\UIKit\Elements\Simple\SimpleList::class,
+ // 'tableWith' => \Eightfold\Markup\UIKit\Elements\Simple\SimpleTable::class,
+ // 'anchor' => \Eightfold\Markup\UIKit\Elements\Simple\Anchor::class,
+ // 'glyph' => \Eightfold\Markup\UIKit\Elements\Simple\Glyph::class,
+ // 'image' => \Eightfold\Markup\UIKit\Elements\Simple\Image::class,
+ // // 'button' => UIKit\Elements\FormControls\Button::class,
+
+ // 'stripeElements' => \Eightfold\Markup\UIKit\Elements\FormControls\StripeElements::class,
+ // 'hiddenInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputHidden::class,
+ // 'fileInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputFile::class,
+ // 'textInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputText::class,
+ // // , 'user_card' => UIKit\Elements\Simple\UserCard::class
+
+ // // , 'alert' => UIKit\Elements\Compound\Alert::class
+ // 'doubleWrap' => \Eightfold\Markup\UIKit\Elements\Compound\DoubleWrap::class,
+ // 'markdown' => \Eightfold\Markup\UIKit\Elements\Compound\Markdown::class,
+ // 'pagination' => \Eightfold\Markup\UIKit\Elements\Compound\Pagination::class,
+ // 'socialMeta' => \Eightfold\Markup\UIKit\Elements\Compound\SocialMeta::class,
+ // 'webHead' => \Eightfold\Markup\UIKit\Elements\Compound\WebHead::class,
+ // 'accordion' => \Eightfold\Markup\UIKit\Elements\Compound\Accordion::class
+ // // , 'primary_nav' => UIKit\Elements\Compound\NavigationPrimary::class
+ // // , 'secondary_nav' => UIKit\Elements\Compound\NavigationSecondary::class
+ // // , 'side_nav' => UIKit\Elements\Compound\NavigationSide::class
+ // // , 'footer' => UIKit\Elements\Compound\Footer::class
+ // // // , 'head' => UIKit\Elements\Compound\Head::class
+ // // , 'header' => UIKit\Elements\Compound\Header::class
+ // // , 'action_container' => UIKit\Elements\Compound\ActionContainer::class
+
+ // // , 'select' => UIKit\Elements\FormControls\Select::class
+
+ // // , 'progress' => UIKit\Elements\FormControls\Progress::class
+ // // , 'textarea' => UIKit\Elements\FormControls\Textarea::class
+ // // , 'markdown_textarea' => UIKit\Elements\FormControls\TextareaMarkdown::class
+ // // , 'date_input' => UIKit\Elements\FormControls\InputDate::class
+
+
+
+
+
+ // ];
}
From be9a60fa82cfdec9de3f43dc396965c5dff8c8c5 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 18:15:03 -0500
Subject: [PATCH 13/24] remove html due to being separate project
---
src/Filters/AttrDictionary.php | 23 ------
src/Filters/AttrString.php | 25 -------
src/Filters/AttrStringHtml.php | 131 ---------------------------------
src/Html/HtmlElement.php | 32 --------
4 files changed, 211 deletions(-)
delete mode 100644 src/Filters/AttrDictionary.php
delete mode 100644 src/Filters/AttrString.php
delete mode 100644 src/Filters/AttrStringHtml.php
delete mode 100644 src/Html/HtmlElement.php
diff --git a/src/Filters/AttrDictionary.php b/src/Filters/AttrDictionary.php
deleted file mode 100644
index 8d957f7..0000000
--- a/src/Filters/AttrDictionary.php
+++ /dev/null
@@ -1,23 +0,0 @@
-each(function($v, $k, &$build) {
- list($attr, $content) = Shoop::this($v)->divide(" ", false, 2);
- $build[$attr] = $content;
- })->unfold();
- }
-}
diff --git a/src/Filters/AttrString.php b/src/Filters/AttrString.php
deleted file mode 100644
index 6885cc2..0000000
--- a/src/Filters/AttrString.php
+++ /dev/null
@@ -1,25 +0,0 @@
-each(function($v, $m, &$build) {
- list($attr, $content) = Shoop::this($v)->divide(" ", false, 2);
- $build[] = (Shoop::this($attr)->is($content)->unfold())
- ? "{$attr}"
- : "{$attr}=\"{$content}\"";
- })->asString(" ")->prepend(" ")->unfold();
- }
-}
diff --git a/src/Filters/AttrStringHtml.php b/src/Filters/AttrStringHtml.php
deleted file mode 100644
index 831e8d2..0000000
--- a/src/Filters/AttrStringHtml.php
+++ /dev/null
@@ -1,131 +0,0 @@
- $content) {
- if (array_key_exists($attr, $orderedAttributes)) {
- $orderedAttributes[$attr] = $content;
-
- } elseif ($index->hasComponentNamed($attr) and
- $a = $index->componentNamed($attr)
- ) {
- if ($a->isEvent()) {
- $eventAttributes[$attr] = $content;
-
- } elseif ($a->isData()) {
- $dataAttributes[$attr] = $content;
-
- } elseif ($a->isGlobal()) {
- $globalAttributes[$attr] = $content;
-
- } elseif ($a->isOther()) {
- $otherAttributes[$attr] = $content;
-
- } elseif ($a->isBoolean()) {
- $booleanAttributes[$attr] = $content;
-
- }
-
- } else {
- $otherAttributes[$attr] = $content;
-
- }
- }
-
- $orderedAttributes = array_filter($orderedAttributes);
-
- $eventAttributes = array_filter($eventAttributes);
- ksort($eventAttributes);
-
- $dataAttributes = array_filter($dataAttributes);
- ksort($eventAttributes);
-
- $globalAttributes = array_filter($globalAttributes);
- ksort($globalAttributes);
-
- $otherAttributes = array_filter($otherAttributes);
- ksort($otherAttributes);
-
- $booleanAttributes = array_filter($booleanAttributes);
- ksort($booleanAttributes);
-
- $merged = array_merge(
- $orderedAttributes,
- $eventAttributes,
- $dataAttributes,
- $globalAttributes,
- $otherAttributes,
- $booleanAttributes
- );
-
- $build = [];
- foreach ($merged as $attr => $content) {
- $build[] = "{$attr} {$content}";
- }
-
- return AttrString::apply()->unfoldUsing($build);
- }
-}
diff --git a/src/Html/HtmlElement.php b/src/Html/HtmlElement.php
deleted file mode 100644
index 26fe896..0000000
--- a/src/Html/HtmlElement.php
+++ /dev/null
@@ -1,32 +0,0 @@
-attrList(false);
- return AttrStringHtml::apply()->unfoldUsing($attributes);
- }
-
- public function unfold()
- {
- if (HtmlIndex::init()->hasComponentNamed($this->main) and
- $element = HtmlIndex::init()->componentNamed($this->main) and
- ! $element->acceptsChildren()
- ) {
- $this->omitEndTag = true;
-
- }
- return parent::unfold();
- }
-}
From 95bab0063acd7d216540226d9ccb2b3e82047669 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 18:15:41 -0500
Subject: [PATCH 14/24] Delete facades and proxies
---
src/Element.php | 149 ----------------------------
src/Feed.php | 28 ------
src/Html.php | 19 ----
src/UIKit.php | 252 ------------------------------------------------
4 files changed, 448 deletions(-)
delete mode 100644 src/Element.php
delete mode 100755 src/Feed.php
delete mode 100644 src/Html.php
delete mode 100755 src/UIKit.php
diff --git a/src/Element.php b/src/Element.php
deleted file mode 100644
index 0d7524a..0000000
--- a/src/Element.php
+++ /dev/null
@@ -1,149 +0,0 @@
-at(0)->unfold();
- if ($args->length()->is(1)->unfold()) {
- return new static($element);
- }
-
- $args = $args->dropAt(0)->retain(function($v) {
- $v = Shoop::this($v);
- return $v->isArray()->reversed()->unfold() and
- $v->isBoolean()->reversed()->unfold();
- });
-
- return new static($element, [], false, ...$args);
- }
-
- public function __construct(string $element, array $attributes = [], bool $omitEndTag = false, ...$content)
- {
- $this->main = $element;
- $this->attributes = $attributes;
- $this->omitEndTag = $omitEndTag;
- $this->content = $content;
- }
-
- public function args($includeMain = false)
- {
- $args = [];
-
- if ($includeMain) {
- $args[] = $this->main;
- }
-
- $args[] = $this->attributes;
- $args[] = $this->omitEndTag;
-
- if (Shoop::this($this->content)->isEmpty()->reversed()->unfold()) {
- $args[] = $this->content;
- }
-
- return $args;
- }
-
- // TODO: PHP 8.0 bool|ESBool
- public function omitEndTag(bool $omit = null)// TODO: PHP 8.0 : static|bool
- {
- if ($omit === null) {
- return $this->omitEndTag;
-
- } elseif (Shoop::this($omit)->efIsBoolean()) {
- $this->omitEndTag = $omit;
-
- }
-
- return $this;
- }
-
- /**
- * attr = setter/override
- *
- * attrList = x="y" or ESDictionary
- *
- */
- public function attr(string ...$attributes): Element
- {
- $this->attributes = Shoop::this(
- $this->attrList(false)
- )->append(
- AttrDictionary::apply()->unfoldUsing($attributes)
- )->each(
- function($v, $m, &$build) {
- $build[] = Shoop::this($m)->append(" ")->append($v)->unfold();
- }
- )->unfold();
-
- return $this;
- }
-
- // TODO: PHP 8.0 bool|ESBool -> ESArray|ESDictionary
- public function attrList(bool $useArray = true): array
- {
- return ($useArray)
- ? $this->attributes
- : AttrDictionary::apply()->unfoldUsing($this->attributes);
- }
-
- public function attrString()
- {
- return AttrString::apply()->unfoldUsing($this->attributes);
- }
-
- public function unfold()
- {
- // TODO: some type of str_replace for Shooped
- $main = str_replace("_", "-", $this->main);
-
- $base = Shoop::this($main)->prepend("<")->append(
- $this->attrString()
- )->append(">");
-
- if (Shoop::this($this->omitEndTag)->unfold()) {
- return $base->unfold();
- }
-
- $base = $base->append(
- Shoop::this($this->content)->each(function($v, $m, &$build) {
- if (Apply::isString()->unfoldUsing($v)) {
- $build[] = $v;
-
- } elseif (is_a($v, Foldable::class)) {
- $build[] = $v->unfold();
-
- }
- })->efToString()
- );
- return $base->append("")->append($main)->append(">")->unfold();
- }
-
- public function __toString(): string
- {
- return $this->unfold();
- }
-}
diff --git a/src/Feed.php b/src/Feed.php
deleted file mode 100755
index 39570cb..0000000
--- a/src/Feed.php
+++ /dev/null
@@ -1,28 +0,0 @@
-hasComponentNamed($element)) {
- return HtmlElement::fold($element, ...$elements);
- }
- return Element::fold($element, ...$elements);
- }
-}
diff --git a/src/UIKit.php b/src/UIKit.php
deleted file mode 100755
index b163835..0000000
--- a/src/UIKit.php
+++ /dev/null
@@ -1,252 +0,0 @@
-unfold();
- // return new $class(
- // $currentPage,
- // $totalItems,
- // $linkPrefix,
- // $totalItemsPerPage,
- // $middleLimit
- // );
- // }
-
- // static public function tableWith(...$rows)
- // {
- // $class = self::class("tableWith", self::CLASSES)->unfold();
- // return new $class(...$rows);
- // }
-
- static public function listWith(...$content): SimpleList
- {
- return new SimpleList(...$content);
- }
-
- // static public function fileInput($label, $name)
- // {
- // $class = self::class("fileInput", self::CLASSES)->unfold();
- // return new $class($label, $name);
- // }
-
- // static public function hiddenInput($name, $value)
- // {
- // $class = self::class("hiddenInput", self::CLASSES)->unfold();
- // return new $class($name, $value);
- // }
-
- // TODO: Should be able to accept unfoldable
- static public function anchor(string $text, string $href): Anchor
- {
- return new Anchor($text, $href);
- }
-
- static public function image(string $altText, string $path): Image
- {
- return new Image($altText, $path);
- }
-
- public static function markdown(
- string $markdown,
- array $config = []
- ): Markdown {
- return new Markdown($markdown, $config);
- }
-
- // static public function stripeElements($formId, $apiKey, $inputLabel, $buttonLabel)
- // {
- // $class = self::class("stripeElements", self::CLASSES)->unfold();
- // return new $class($formId, $apiKey, $inputLabel, $buttonLabel);
- // }
-
- // static public function socialMeta(
- // string $title,
- // string $url,
- // string $description,
- // string $image = "",
- // string $type = "website",
- // string $appId = ""
- // )
- // {
- // return new UIKit\Elements\Compound\SocialMeta(
- // $title,
- // $url,
- // $description,
- // $image,
- // $type,
- // $appId
- // );
- // }
-
- // static public function accordion(
- // string $summaryId,
- // string $summary,
- // ...$content
- // )
- // {
- // return new UIKit\Elements\Compound\Accordion(
- // $summaryId,
- // $summary,
- // ...$content
- // );
- // }
-
- // static public function __callStatic(string $element, array $elements)
- // {
- // if (array_key_exists($element, static::CLASSES)) {
- // switch ($element) {
- // case ('primary_nav'
- // || 'secondary_nav'
- // || 'side_nav'
- // || 'user_card'):
- // return new $class(...$elements);
- // break;
-
- // case ('glyph' || 'head' || 'avatar'):
- // return new $class($args[0]);
- // break;
-
- // case ('footer' || 'image'):
- // if (isset($args[1])) {
- // return new $class($args[0], $args[1]);
-
- // }
- // return new $class($args[0]);
- // break;
-
- // case ('alert'):
- // return new $class($args[0], $args[1]);
- // break;
-
- // case 'header':
- // $main = $args[0];
- // unset($args[0]);
- // return new $class($main, ...$args);
- // break;
-
- // case ('select'
- // || 'textarea'
- // || 'markdown_textarea'
- // || 'textInput'
- // || 'date_input'):
- // if (isset($args[3])) {
- // return new $class($args[0], $args[1], $args[2], $args[3]);
-
- // } elseif ($isset(args[2])) {
- // return new $class($args[0], $args[1], $args[3]);
-
- // }
- // return new $class($args[0], $args[1]);
- // break;
-
- // case 'progress':
- // if (isset($args[2])) {
- // return new $class($args[0], $args[1], $args[2]);
-
- // } elseif (isset($args[1])) {
- // return new $class($args[0], $args[1]);
-
- // }
- // return new $class($args[0]);
- // break;
-
- // default:
- // return parent::$element(...$args);
- // break;
- // }
- // }
- // return Html::$element(...$elements);
- // }
-
- // const CLASSES = [
- // 'webView' => \Eightfold\Markup\UIKit\Elements\Pages\WebView::class,
- // // 'form' => UIKit\Elements\Forms\Form::class,
- // 'listWith' => \Eightfold\Markup\UIKit\Elements\Simple\SimpleList::class,
- // 'tableWith' => \Eightfold\Markup\UIKit\Elements\Simple\SimpleTable::class,
- // 'anchor' => \Eightfold\Markup\UIKit\Elements\Simple\Anchor::class,
- // 'glyph' => \Eightfold\Markup\UIKit\Elements\Simple\Glyph::class,
- // 'image' => \Eightfold\Markup\UIKit\Elements\Simple\Image::class,
- // // 'button' => UIKit\Elements\FormControls\Button::class,
-
- // 'stripeElements' => \Eightfold\Markup\UIKit\Elements\FormControls\StripeElements::class,
- // 'hiddenInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputHidden::class,
- // 'fileInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputFile::class,
- // 'textInput' => \Eightfold\Markup\UIKit\Elements\FormControls\InputText::class,
- // // , 'user_card' => UIKit\Elements\Simple\UserCard::class
-
- // // , 'alert' => UIKit\Elements\Compound\Alert::class
- // 'doubleWrap' => \Eightfold\Markup\UIKit\Elements\Compound\DoubleWrap::class,
- // 'markdown' => \Eightfold\Markup\UIKit\Elements\Compound\Markdown::class,
- // 'pagination' => \Eightfold\Markup\UIKit\Elements\Compound\Pagination::class,
- // 'socialMeta' => \Eightfold\Markup\UIKit\Elements\Compound\SocialMeta::class,
- // 'webHead' => \Eightfold\Markup\UIKit\Elements\Compound\WebHead::class,
- // 'accordion' => \Eightfold\Markup\UIKit\Elements\Compound\Accordion::class
- // // , 'primary_nav' => UIKit\Elements\Compound\NavigationPrimary::class
- // // , 'secondary_nav' => UIKit\Elements\Compound\NavigationSecondary::class
- // // , 'side_nav' => UIKit\Elements\Compound\NavigationSide::class
- // // , 'footer' => UIKit\Elements\Compound\Footer::class
- // // // , 'head' => UIKit\Elements\Compound\Head::class
- // // , 'header' => UIKit\Elements\Compound\Header::class
- // // , 'action_container' => UIKit\Elements\Compound\ActionContainer::class
-
- // // , 'select' => UIKit\Elements\FormControls\Select::class
-
- // // , 'progress' => UIKit\Elements\FormControls\Progress::class
- // // , 'textarea' => UIKit\Elements\FormControls\Textarea::class
- // // , 'markdown_textarea' => UIKit\Elements\FormControls\TextareaMarkdown::class
- // // , 'date_input' => UIKit\Elements\FormControls\InputDate::class
-
-
-
-
-
- // ];
-}
From ffca936f42e241acc76923f36c5ef428a545450a Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 18:16:13 -0500
Subject: [PATCH 15/24] update folder structure
---
src/{UIKit/Elements => }/Simple/Anchor.php | 0
src/{UIKit/Elements => }/Simple/Image.php | 0
src/{UIKit/Elements => }/Simple/PageTitle.php | 0
.../Elements => }/Simple/SimpleList.php | 0
src/UIKit/Elements/Compound/Markdown.php | 127 ------------------
5 files changed, 127 deletions(-)
rename src/{UIKit/Elements => }/Simple/Anchor.php (100%)
rename src/{UIKit/Elements => }/Simple/Image.php (100%)
rename src/{UIKit/Elements => }/Simple/PageTitle.php (100%)
rename src/{UIKit/Elements => }/Simple/SimpleList.php (100%)
delete mode 100755 src/UIKit/Elements/Compound/Markdown.php
diff --git a/src/UIKit/Elements/Simple/Anchor.php b/src/Simple/Anchor.php
similarity index 100%
rename from src/UIKit/Elements/Simple/Anchor.php
rename to src/Simple/Anchor.php
diff --git a/src/UIKit/Elements/Simple/Image.php b/src/Simple/Image.php
similarity index 100%
rename from src/UIKit/Elements/Simple/Image.php
rename to src/Simple/Image.php
diff --git a/src/UIKit/Elements/Simple/PageTitle.php b/src/Simple/PageTitle.php
similarity index 100%
rename from src/UIKit/Elements/Simple/PageTitle.php
rename to src/Simple/PageTitle.php
diff --git a/src/UIKit/Elements/Simple/SimpleList.php b/src/Simple/SimpleList.php
similarity index 100%
rename from src/UIKit/Elements/Simple/SimpleList.php
rename to src/Simple/SimpleList.php
diff --git a/src/UIKit/Elements/Compound/Markdown.php b/src/UIKit/Elements/Compound/Markdown.php
deleted file mode 100755
index ffb13b7..0000000
--- a/src/UIKit/Elements/Compound/Markdown.php
+++ /dev/null
@@ -1,127 +0,0 @@
-
- */
- private array $config = [];
-
- private bool $caseSensitive = true;
-
- /**
- * @var array
- */
- private array $markdownReplacements = [];
-
- /**
- * @var array
- */
- private $htmlReplacements = [];
-
- private bool $trim = true;
-
- private bool $minified = true;
-
- /**
- * @var array
- */
- private $extensions = [];
-
- /**
- * @param array $config [description]
- */
- public function __construct(string $markdown, array $config = [])
- {
- $this->config = $config;
- $this->markdown = $markdown;
- }
-
- public function caseSensitive(bool $caseSensitive = true): Markdown
- {
- $this->caseSensitive = $caseSensitive;
-
- return $this;
- }
-
- /**
- * @param array $replacements [description]
- */
- public function markdownReplacements($replacements = []): Markdown
- {
- $this->markdownReplacements = $replacements;
-
- return $this;
- }
-
- /**
- * @param array $replacements [description]
- */
- public function htmlReplacements($replacements = []): Markdown
- {
- $this->htmlReplacements = $replacements;
-
- return $this;
- }
-
- public function trim(bool $trim = true): Markdown
- {
- $this->trim = $trim;
-
- return $this;
- }
-
- public function minified(bool $minified = true): Markdown
- {
- $this->minified = $minified;
-
- return $this;
- }
-
- /**
- * @param ExtensionInterface $extensions [description]
- */
- public function extensions(...$extensions): Markdown
- {
- // $this->extensions = Shoop::this($extensions)
- // ->drop(fn($v) => empty($v))->unfold();
-
- return $this;
- }
-
- public function prepend(string $markdown): Markdown
- {
- $this->markdown = $markdown . $this->markdown;
-
- return $this;
- }
-
- public function meta(): object
- {
- return (object) [];
- // return Shoop::markdown($this->markdown)->meta();
- }
-
- public function build(): string
- {
- return '';
- // return Shoop::markdown($this->markdown, ...$this->extensions)
- // ->html(
- // $this->markdownReplacements,
- // $this->htmlReplacements,
- // $this->caseSensitive,
- // $this->minified,
- // $this->config
- // )->unfold();
- }
-}
From d9252795ea91c51ed2bfa6dff643b8c34f2867ee Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 18:21:52 -0500
Subject: [PATCH 16/24] flatten hierarchy
---
src/{Simple => }/Anchor.php | 0
src/{Simple => }/Image.php | 0
src/{Simple/SimpleList.php => List.php} | 0
src/Markdown.php | 127 ++++++++++++++++++++++++
src/{Simple => }/PageTitle.php | 0
5 files changed, 127 insertions(+)
rename src/{Simple => }/Anchor.php (100%)
rename src/{Simple => }/Image.php (100%)
rename src/{Simple/SimpleList.php => List.php} (100%)
create mode 100755 src/Markdown.php
rename src/{Simple => }/PageTitle.php (100%)
diff --git a/src/Simple/Anchor.php b/src/Anchor.php
similarity index 100%
rename from src/Simple/Anchor.php
rename to src/Anchor.php
diff --git a/src/Simple/Image.php b/src/Image.php
similarity index 100%
rename from src/Simple/Image.php
rename to src/Image.php
diff --git a/src/Simple/SimpleList.php b/src/List.php
similarity index 100%
rename from src/Simple/SimpleList.php
rename to src/List.php
diff --git a/src/Markdown.php b/src/Markdown.php
new file mode 100755
index 0000000..ffb13b7
--- /dev/null
+++ b/src/Markdown.php
@@ -0,0 +1,127 @@
+
+ */
+ private array $config = [];
+
+ private bool $caseSensitive = true;
+
+ /**
+ * @var array
+ */
+ private array $markdownReplacements = [];
+
+ /**
+ * @var array
+ */
+ private $htmlReplacements = [];
+
+ private bool $trim = true;
+
+ private bool $minified = true;
+
+ /**
+ * @var array
+ */
+ private $extensions = [];
+
+ /**
+ * @param array $config [description]
+ */
+ public function __construct(string $markdown, array $config = [])
+ {
+ $this->config = $config;
+ $this->markdown = $markdown;
+ }
+
+ public function caseSensitive(bool $caseSensitive = true): Markdown
+ {
+ $this->caseSensitive = $caseSensitive;
+
+ return $this;
+ }
+
+ /**
+ * @param array $replacements [description]
+ */
+ public function markdownReplacements($replacements = []): Markdown
+ {
+ $this->markdownReplacements = $replacements;
+
+ return $this;
+ }
+
+ /**
+ * @param array $replacements [description]
+ */
+ public function htmlReplacements($replacements = []): Markdown
+ {
+ $this->htmlReplacements = $replacements;
+
+ return $this;
+ }
+
+ public function trim(bool $trim = true): Markdown
+ {
+ $this->trim = $trim;
+
+ return $this;
+ }
+
+ public function minified(bool $minified = true): Markdown
+ {
+ $this->minified = $minified;
+
+ return $this;
+ }
+
+ /**
+ * @param ExtensionInterface $extensions [description]
+ */
+ public function extensions(...$extensions): Markdown
+ {
+ // $this->extensions = Shoop::this($extensions)
+ // ->drop(fn($v) => empty($v))->unfold();
+
+ return $this;
+ }
+
+ public function prepend(string $markdown): Markdown
+ {
+ $this->markdown = $markdown . $this->markdown;
+
+ return $this;
+ }
+
+ public function meta(): object
+ {
+ return (object) [];
+ // return Shoop::markdown($this->markdown)->meta();
+ }
+
+ public function build(): string
+ {
+ return '';
+ // return Shoop::markdown($this->markdown, ...$this->extensions)
+ // ->html(
+ // $this->markdownReplacements,
+ // $this->htmlReplacements,
+ // $this->caseSensitive,
+ // $this->minified,
+ // $this->config
+ // )->unfold();
+ }
+}
diff --git a/src/Simple/PageTitle.php b/src/PageTitle.php
similarity index 100%
rename from src/Simple/PageTitle.php
rename to src/PageTitle.php
From cf1ed57b018e0baa0e2457ac6235ccfa6efd92b2 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 19:36:47 -0500
Subject: [PATCH 17/24] flatten hierarchy - page title tests
---
.editorconfig | 2 +-
phpunit.xml | 39 ++--
src/Anchor.php | 10 +-
src/PageTitle.php | 39 ++--
.../{UIKit/CompoundTest.php => Compound.php} | 0
tests/Element/ElementTest.php | 186 -----------------
tests/Feed/Rss/RssTest.php | 56 -----
tests/Html/HtmlElementTest.php | 191 ------------------
.../{UIKit/MarkdownTest.php => Markdown.php} | 0
tests/{UIKit/PageTest.php => Page.php} | 0
tests/PageTitleTest.php | 36 ++++
tests/{UIKit/SimpleTest.php => Simple.php} | 0
.../SocialMetaTest.php => SocialMeta.php} | 0
13 files changed, 80 insertions(+), 479 deletions(-)
rename tests/{UIKit/CompoundTest.php => Compound.php} (100%)
delete mode 100644 tests/Element/ElementTest.php
delete mode 100644 tests/Feed/Rss/RssTest.php
delete mode 100644 tests/Html/HtmlElementTest.php
rename tests/{UIKit/MarkdownTest.php => Markdown.php} (100%)
rename tests/{UIKit/PageTest.php => Page.php} (100%)
create mode 100755 tests/PageTitleTest.php
rename tests/{UIKit/SimpleTest.php => Simple.php} (100%)
rename tests/{UIKit/SocialMetaTest.php => SocialMeta.php} (100%)
diff --git a/.editorconfig b/.editorconfig
index e465d36..6250ff5 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -12,6 +12,6 @@ insert_final_newline = true
indent_style = space
indent_size = 4
-[*{.js,.json,.scss}]
+[*.{ym,yaml,js,json,scss}]
indent_style = space
indent_size = 2
diff --git a/phpunit.xml b/phpunit.xml
index 7cc29a6..735ef89 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,6 +1,5 @@
-
-
- ./tests/Element
-
-
- ./tests/Html
-
-
- ./tests/UIKit
-
-
- ./tests/Feed/Rss
-
-
-
-
-
-
+ stopOnFailure="false"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
+
+
+ ./src/
+
+
+ vendor/
+
+
+
+
+ ./tests/
+
+
+
+
+
+
diff --git a/src/Anchor.php b/src/Anchor.php
index 76d8beb..6245000 100755
--- a/src/Anchor.php
+++ b/src/Anchor.php
@@ -2,14 +2,7 @@
namespace Eightfold\Markup\UIKit\Elements\Simple;
-use Eightfold\HTMLBuilder\Element as HtmlElement;
-
-// use Eightfold\Shoop\Shoop;
-
-// use Eightfold\Markup\Html\HtmlElement;
-// use Eightfold\Markup\Html;
-
-class Anchor //extends HtmlElement
+class Anchor
{
private string $text = '';
@@ -29,4 +22,3 @@ public function build(): string
// return Html::a($this->main)->attr(...$this->attributes)->unfold();
}
}
-
diff --git a/src/PageTitle.php b/src/PageTitle.php
index 3a43976..c33ee79 100755
--- a/src/PageTitle.php
+++ b/src/PageTitle.php
@@ -1,6 +1,6 @@
$parts [description]
*/
- public function __construct(array $parts, string $separater = " | ")
+ public static function create(array $parts, $separator = ' | ')
+ {
+ return new PageTitle($parts, $separator);
+ }
+
+ /**
+ * @param array $parts [description]
+ */
+ public function __construct(array $parts, string $separator = ' | ')
{
$this->parts = $parts;
- $this->separater = $separater;
+ $this->separator = $separator;
}
public function build(): string
{
- return '';
- // if (count($this->main) === 0) {
- // return "";
- // }
+ if ($this->reversed) {
+ $this->parts = array_reverse($this->parts);
+
+ }
- // if ($this->reversed) {
- // $this->main = array_reverse($this->main);
- // }
+ $string = implode($this->separator, $this->parts);
- // $string = implode($this->separater, $this->main);
+ if ($this->stringOnly) {
+ return $string;
- // if ($this->stringOnly) {
- // return $string;
- // }
+ }
- // return Html::title($string)->attr(...$this->attributes)->unfold();
+ return HtmlElement::title($string);
}
public function reversed(): PageTitle
{
$this->reversed = true;
+
return $this;
}
public function stringOnly(): PageTitle
{
$this->stringOnly = true;
+
return $this;
}
}
diff --git a/tests/UIKit/CompoundTest.php b/tests/Compound.php
similarity index 100%
rename from tests/UIKit/CompoundTest.php
rename to tests/Compound.php
diff --git a/tests/Element/ElementTest.php b/tests/Element/ElementTest.php
deleted file mode 100644
index 2f315c7..0000000
--- a/tests/Element/ElementTest.php
+++ /dev/null
@@ -1,186 +0,0 @@
-',
- "string",
- 14.76, // 14.59, // shoopified 7.17, // 5.29, // 4.56, // 4.02,
- 475 // 437 // 436 // 433 // 427 // 426 // 401 // 397 // 394 // 393
- )->unfoldUsing(
- Element::fold("container")->attr("id hello")->omitEndTag(true)
- );
-
- AssertEquals::applyWith(
- '',
- "string",
- 3.36, // 1.9, // 0.85, // 0.5, // 0.42, // 0.27, // 0.26, // 0.25,
- 1
- )->unfoldUsing(
- Element::fold("container")->attr("id hello")->omitEndTag(true)
- ->attr("id goodbye")
- );
-
- AssertEquals::applyWith(
- '',
- "string",
- 4.33, // 3.68, // 3.61,
- 374
- )->unfoldUsing(
- Element::fold("html")
- );
-
- AssertEquals::applyWith(
- '
Hello, World!
',
- "string",
- 11.26, // 7.08, // 3.95,
- 470 // 311
- )->unfoldUsing(
- Element::fold("p",
- Element::fold("span", "Hello, World!")
- )->unfold()
- );
- }
-
- /**
- * @test
- */
- public function self_contained_element()
- {
- AssertEquals::applyWith(
- '
',
- "string",
- 4.08, // 3.35, // 3.33,
- 304 // 300
- )->unfoldUsing(
- new Element("img", [], true)
- );
-
- AssertEquals::applyWith(
- '
',
- "string",
- 4.47, // 4.46,
- 393
- )->unfoldUsing(
- new Element("img", ["src /path", "alt description"], true)
- );
-
- AssertEquals::applyWith(
- '',
- "string",
- 1.38, // 1.33, // 1.25, // 1.23, // 1.21, // 1.03, // 0.32, // 0.3, // 0.27, // 0.21, // 0.2,
- 1
- )->unfoldUsing(
- new Element("a", ["href /path"], false)
- );
- }
-
- /**
- * @test
- */
- public function element_only_arguments()
- {
- AssertEquals::applyWith(
- [[], false],
- "array",
- 3.56, // 3.42,
- 305
- )->unfoldUsing(
- Element::fold("hello")->args()
- );
- }
-
- /**
- * @test
- */
- public function attribute_list()
- {
- AssertEquals::applyWith(
- ["id" => "hello"],
- "array",
- 4.54, // 3.84, // 3.45, // 3.43, // 0.001
- 307
- )->unfoldUsing(
- AttrDictionary::apply()->unfoldUsing(["id hello"])
- );
-
- AssertEquals::applyWith(
- ["id hello"],
- "array",
- 0.23, // 0.18,
- 15
- )->unfoldUsing(
- (new Element("hello", ["id hello"]))->attrList()
- );
-
- AssertEquals::applyWith(
- ["id" => "hello"],
- "array",
- 0.35, // 0.28, // 0.21, // 0.07,
- 1
- )->unfoldUsing(
- (new Element("hello", ["id hello"]))->attrList(false)
- );
-
- AssertEquals::applyWith(
- ["id" => "hello"],
- "array",
- 1.09, // 1.01, // 1, // 0.94, // 0.86, // 0.81, // 0.42, // 0.25, // 0.21, // 0.18, // 0.17, // increase shoop 0.13, // 0.11, // 0.09,
- 1
- )->unfoldUsing(
- Element::fold("hello")->attr("id hello")->attrList(false)
- );
- }
-
- /**
- * @test
- */
- public function testPage()
- {
- AssertEquals::applyWith(
- 'Hello, World!
Hello, World!
World DominationDone!
',
- "string",
- 16.26, // 13.11, // 5.71,
- 397
- )->unfoldUsing(
- Element::fold('html',
- Element::fold('head',
- Element::fold('title', 'Hello, World!'),
- Element::fold('style')
- ),
- Element::fold('body',
- Element::fold('img')
- ->omitEndTag(true)
- ->attr(
- 'src http://example.com',
- 'alt A picture of the world'
- ),
- Element::fold('p', 'Hello, World!')->attr("is my-component", "required required"),
- Element::fold("my-link", 'World Domination')
- ->attr('href http://example.com/domination'),
- 'Done!
'
- )
- )->unfold()
- );
- }
-}
diff --git a/tests/Feed/Rss/RssTest.php b/tests/Feed/Rss/RssTest.php
deleted file mode 100644
index 5105b04..0000000
--- a/tests/Feed/Rss/RssTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-'."\n".'Titlehttps://8fold.devDescription of content.';
- $actual = Feed::rss(
- "Title",
- "https://8fold.dev",
- "Description of content."
- );
- $this->assertSame($expected, $actual->unfold());
-
- $expected = ''."\n".'Titlehttps://8fold.devDescription of content.en-us';
- $actual = $actual->language();
- $this->assertSame($expected, $actual->unfold());
- }
-
- /**
- * @test
- */
- public function item()
- {
- $expected = '- Titlehttps://8fold.devHello. How are you, won\'t you tell me your name?...
';
- $actual = Feed::rssItem("Title", "https://8fold.dev", "Hello. How are you, won't you tell me your name?
");
- $this->assertSame($expected, $actual->unfold());
-
- $expected = '- Titlehttps://8fold.devHello....
';
- $actual = $actual->descriptionLimit(1);
- $this->assertSame($expected, $actual->unfold());
-
- $expected = '- Titlehttps://8fold.devHello. How are you,...
';
- $actual = $actual->descriptionLimit(4);
- $this->assertSame($expected, $actual->unfold());
-
- $expected = '- Titlehttps://8fold.devHello. How are you,...
';
- $actual = $actual->date(20200402);
- $this->assertSame($expected, $actual->unfold());
- }
-}
diff --git a/tests/Html/HtmlElementTest.php b/tests/Html/HtmlElementTest.php
deleted file mode 100644
index bbcefe2..0000000
--- a/tests/Html/HtmlElementTest.php
+++ /dev/null
@@ -1,191 +0,0 @@
-Hello
',
- "string",
- 10.52, // 10.03, // 9.89, // 9.69, // 8.42, // 8.34, // 7.8, // 7.38, // updated shoop 8.11 // 7.82 // 7.6 // 6.85
- 559
- )->unfoldUsing(
- Html::p('Hello')
- ->attr(
- 'role alert',
- 'accesskey S',
- 'tabindex 1',
- 'type some_type',
- 'style background: red;',
- 'class somethingElse somethingElse2',
- 'id something')
- ->unfold()
- );
- }
-
- /**
- * @test
- */
- public function full_page()
- {
- AssertEquals::applyWith(
- '',
- "string",
- 4.12, // 3.19, // 2.48, // 1.99, // 1.48, // 1.29, // updated shoop 5.24 // 4.98
- 1
- )->unfoldUsing(
- Html::div(Html::div())->unfold()
- );
-
- AssertEquals::applyWith(
- 'Hello, World!
Hello, World!
World DominationDone!
',
- "string",
- 20.44, // 18.93, // 18.84, // 18.13, // 17.62, // 15.45, // 8.56, // 7.07, // 6.69, // 6.64, // 6.59, // 6.11, // 5.53, // 5.34, // 9.56 // 7.14 // 6.94
- 1
- )->unfoldUsing(
- Html::html(
- Html::head(
- Html::title('Hello, World!')
- , Html::style()
- )
- , Html::body(
- Html::img()
- ->attr('src http://example.com', 'alt A picture of the world')
- , Html::p('Hello, World!')
- ->attr("is my-component")
- , Html::my_link('World Domination')
- ->attr('href http://example.com/domination')
- , 'Done!
'
- )
- )->unfold()
- );
- }
-
- /**
- * @test
- */
- public function child_elements_omitting_end_tag()
- {
- AssertEquals::applyWith(
- '',
- "string",
- 15.21, // 12.75, // 12.57, // 9.17, // 5.34, // 4.11, // 3.51, // 3.01, // updated shoop 6.87 // 6.67 // 6.24
- 1
- )->unfoldUsing(
- Html::object(
- Html::param()
- ->attr('name hello', 'value world'),
- Html::param()
- ->attr('name you', 'value are'),
- Html::param()
- ->attr('name awesome', 'value today!')
- )->unfold()
- );
-
- AssertEquals::applyWith(
- '
',
- "string",
- 1.3, // 0.5, // 0.46, // 0.44, // 1.44
- 1
- )->unfoldUsing(
- Html::hr()->unfold()
- );
-
- AssertEquals::applyWith(
- 'Hello, World!',
- "string",
- 12.1, // 11.66, // 10.72, // 8.63, // 8.37, // 4.93, // 4.86, // 4.73, // 4.01, // 3.14, // 2.84, // 5.24
- 1
- )->unfoldUsing(
- Html::head(
- Html::title('Hello, World!'),
- Html::link()->attr('rel stylesheet', 'href #'),
- Html::link()->attr('href #', 'rel stylesheet')
- )->unfold()
- );
- }
-
- /**
- * @test
- */
- public function nested_elements_with_string()
- {
- AssertEquals::applyWith(
- '',
- "string",
- 16.17, // 10.23, // 8.76, // 8.22, // 6.19, // 4.95, // 4.16, // 3.04, // 3, // 2.88, // 2.78, // 2.53, // updated shoop 7.24
- 1
- )->unfoldUsing(
- Html::ul(
- Html::li(
- 'Hello'
- , Html::ol(
- Html::li('My name is:')
- )
- )
- )->unfold()
- );
-
- AssertEquals::applyWith(
- 'Hello',
- "string",
- 4.87, // 4.5, // 4.04, // 3.99, // 3.93, // 3.9, // 3.75, // 3.32, // 1.76, // 1.6, // 1.56, // 1.21, // 1.13, // 0.97, // 0.87, // 2.37
- 1
- )->unfoldUsing(
- Html::a('Hello')->attr('class some-class', 'href http://example.com')
- ->unfold()
- );
- }
-
- /**
- * @test
- */
- public function all_passed_attributes_end_up_in_the_element()
- {
- AssertEquals::applyWith(
- '',
- "string",
- 10.55, // 3, // 2.83, // 2.24, // 2.09, // 1.12, // 0.95, // 0.85, // 0.78, // updated shoop 4.13 // 6.15 // 6.12 // 5.76
- 1
- )->unfoldUsing(
- Html::body()->attr("role document")->unfold()
- );
-
- AssertEquals::applyWith(
- '',
- "string",
- 6.98, // 3.25, // 2.81, // 2.59, // 2.56, // 2.29, // 1.95, // 1.52, // 0.9, // 0.85, // 0.83, // 0.75, // 0.72, // 0.67, // 0.8 // 0.74 // 0.72 // 0.58 // 0.56 // 0.32 // 0.64 // 0.53 // 0.41
- 1
- )->unfoldUsing(
- Html::body()->attr("role application")->unfold()
- );
-
- AssertEquals::applyWith(
- '',
- "string",
- 3.02, // 2.61, // 2.28, // 1.17, // 0.9, // 0.72, // 0.76 // 0.7 // 0.68 // 0.57 // 0.25 // 0.19 // 5.85
- 1
- )->unfoldUsing(
- Html::body()->attr("id acceptable")->unfold()
- );
- }
-}
diff --git a/tests/UIKit/MarkdownTest.php b/tests/Markdown.php
similarity index 100%
rename from tests/UIKit/MarkdownTest.php
rename to tests/Markdown.php
diff --git a/tests/UIKit/PageTest.php b/tests/Page.php
similarity index 100%
rename from tests/UIKit/PageTest.php
rename to tests/Page.php
diff --git a/tests/PageTitleTest.php b/tests/PageTitleTest.php
new file mode 100755
index 0000000..9efa57f
--- /dev/null
+++ b/tests/PageTitleTest.php
@@ -0,0 +1,36 @@
+reversed()
+ ->stringOnly()->build()
+ )->toBe(
+ 'How are you? : Hello!'
+ );
+});
+
+test('Page title respects custom separator', function() {
+ expect(
+ PageTitle::create(['Hello!', 'How are you?'], ' : ')->build()
+ )->toBe(
+ 'Hello! : How are you?'
+ );
+});
+
+test('Page title can have multiple parts', function() {
+ expect(
+ PageTitle::create(['Hello!', 'How are you?'])->build()
+ )->toBe(
+ 'Hello! | How are you?'
+ );
+});
+
+test('Page title returns correct element', function() {
+ expect(
+ PageTitle::create(['Hello!'])->build()
+ )->toBe(
+ 'Hello!'
+ );
+});
diff --git a/tests/UIKit/SimpleTest.php b/tests/Simple.php
similarity index 100%
rename from tests/UIKit/SimpleTest.php
rename to tests/Simple.php
diff --git a/tests/UIKit/SocialMetaTest.php b/tests/SocialMeta.php
similarity index 100%
rename from tests/UIKit/SocialMetaTest.php
rename to tests/SocialMeta.php
From ad991c233febee965c68ea7cf276321ff66ba32d Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 20:38:16 -0500
Subject: [PATCH 18/24] anchor tests + stan fixed
---
phpstan.neon | 2 ++
src/Anchor.php | 32 +++++++++++++++++++++++++-------
src/PageTitle.php | 6 ++++--
tests/AnchorTest.php | 21 +++++++++++++++++++++
4 files changed, 52 insertions(+), 9 deletions(-)
create mode 100755 tests/AnchorTest.php
diff --git a/phpstan.neon b/phpstan.neon
index c308dcf..59a23ba 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -2,3 +2,5 @@ parameters:
level: 8
paths:
- src
+ ignoreErrors:
+ - '#Call to an undefined static method Eightfold\\HTMLBuilder\\Element::(.*)#'
diff --git a/src/Anchor.php b/src/Anchor.php
index 6245000..8b3cd55 100755
--- a/src/Anchor.php
+++ b/src/Anchor.php
@@ -1,24 +1,42 @@
+ */
+ private array $properties = [];
+
+ public static function create(string $content, string $href): Anchor
+ {
+ return new Anchor($content, $href);
+ }
+
+ public function __construct(string $content, string $href)
{
- $this->text = $text;
+ $this->content = $content;
$this->href = $href;
- // parent::__construct($text, ["href {$href}"]);
+ }
+
+ public function props(string ...$properties): Anchor
+ {
+ $this->properties = $properties;
+
+ return $this;
}
public function build(): string
{
- return '';
- // return Html::a($this->main)->attr(...$this->attributes)->unfold();
+ return Element::a($this->content)
+ ->props('href ' . $this->href, ...$this->properties);
}
}
diff --git a/src/PageTitle.php b/src/PageTitle.php
index c33ee79..7706367 100755
--- a/src/PageTitle.php
+++ b/src/PageTitle.php
@@ -26,8 +26,10 @@ class PageTitle //extends HtmlElement
/**
* @param array $parts [description]
*/
- public static function create(array $parts, $separator = ' | ')
- {
+ public static function create(
+ array $parts,
+ string $separator = ' | '
+ ): PageTitle {
return new PageTitle($parts, $separator);
}
diff --git a/tests/AnchorTest.php b/tests/AnchorTest.php
new file mode 100755
index 0000000..f783ff2
--- /dev/null
+++ b/tests/AnchorTest.php
@@ -0,0 +1,21 @@
+props('class some-class', 'id some-id')
+ ->build()
+ )->toBe(
+ 'link content'
+ );
+});
+
+test('Anchor returns correct element; with required parts', function() {
+ expect(
+ Anchor::create('link content', 'https://8fold.pro')->build()
+ )->toBe(
+ 'link content'
+ );
+});
From f4ea54b474720e783437a650aa650a9e346e2175 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 20:49:55 -0500
Subject: [PATCH 19/24] image, anchor pass tests + stan - beginning simple list
---
src/Anchor.php | 3 ++-
src/Image.php | 37 +++++++++++++++++++++++---------
src/PageTitle.php | 2 +-
src/{List.php => SimpleList.php} | 0
tests/ImageTest.php | 21 ++++++++++++++++++
5 files changed, 51 insertions(+), 12 deletions(-)
rename src/{List.php => SimpleList.php} (100%)
create mode 100755 tests/ImageTest.php
diff --git a/src/Anchor.php b/src/Anchor.php
index 8b3cd55..8d58330 100755
--- a/src/Anchor.php
+++ b/src/Anchor.php
@@ -37,6 +37,7 @@ public function props(string ...$properties): Anchor
public function build(): string
{
return Element::a($this->content)
- ->props('href ' . $this->href, ...$this->properties);
+ ->props('href ' . $this->href, ...$this->properties)
+ ->build();
}
}
diff --git a/src/Image.php b/src/Image.php
index fe9598b..0056913 100755
--- a/src/Image.php
+++ b/src/Image.php
@@ -1,28 +1,45 @@
+ */
+ private array $properties = [];
+
+ public static function create(string $alt, string $src): Image
+ {
+ return new Image($alt, $src);
+ }
+
public function __construct(string $alt, string $src)
{
- $this->$alt = $alt;
- $this->$src = $src;
+ $this->alt = $alt;
+ $this->src = $src;
+ }
+
+ public function props(string ...$properties): Image
+ {
+ $this->properties = $properties;
+
+ return $this;
}
public function build(): string
{
- return '';
- // return Html::img()->attr(...$this->attributes)->unfold();
+ return HtmlElement::img()->omitEndTag()
+ ->props(
+ 'alt ' . $this->alt,
+ 'src ' . $this->src,
+ ...$this->properties
+ )->build();
}
}
diff --git a/src/PageTitle.php b/src/PageTitle.php
index 7706367..cf79b70 100755
--- a/src/PageTitle.php
+++ b/src/PageTitle.php
@@ -57,7 +57,7 @@ public function build(): string
}
- return HtmlElement::title($string);
+ return HtmlElement::title($string)->build();
}
public function reversed(): PageTitle
diff --git a/src/List.php b/src/SimpleList.php
similarity index 100%
rename from src/List.php
rename to src/SimpleList.php
diff --git a/tests/ImageTest.php b/tests/ImageTest.php
new file mode 100755
index 0000000..fd45004
--- /dev/null
+++ b/tests/ImageTest.php
@@ -0,0 +1,21 @@
+props('class some-class', 'id some-id')
+ ->build()
+ )->toBe(
+ '
'
+ );
+});
+
+test('Image returns correct element; with required parts', function() {
+ expect(
+ Image::create('alt content', 'https://8fold.pro')->build()
+ )->toBe(
+ '
'
+ );
+});
From 3f65eefb02b84657f5c37bad00c0975a15162105 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Fri, 8 Oct 2021 21:23:53 -0500
Subject: [PATCH 20/24] apply buildable from XML Builder + update dependencies
---
composer.lock | 28 ++++++++++++++--------------
src/Anchor.php | 8 +++++++-
src/Image.php | 8 +++++++-
src/Markdown.php | 8 +++++++-
src/PageTitle.php | 8 +++++++-
src/SimpleList.php | 8 +++++++-
tests/AnchorTest.php | 9 +++++++++
tests/ImageTest.php | 9 +++++++++
tests/PageTitleTest.php | 8 ++++++++
9 files changed, 75 insertions(+), 19 deletions(-)
diff --git a/composer.lock b/composer.lock
index 1cf5925..74291ed 100644
--- a/composer.lock
+++ b/composer.lock
@@ -8,20 +8,20 @@
"packages": [
{
"name": "8fold/php-html-builder",
- "version": "0.5.0",
+ "version": "0.5.1",
"source": {
"type": "git",
"url": "https://github.com/8fold/php-html-builder.git",
- "reference": "47964c800523605a47a7c03048604b85f7a76c26"
+ "reference": "6ed999954be9a304edd49ba77a570b400eb77567"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/8fold/php-html-builder/zipball/47964c800523605a47a7c03048604b85f7a76c26",
- "reference": "47964c800523605a47a7c03048604b85f7a76c26",
+ "url": "https://api.github.com/repos/8fold/php-html-builder/zipball/6ed999954be9a304edd49ba77a570b400eb77567",
+ "reference": "6ed999954be9a304edd49ba77a570b400eb77567",
"shasum": ""
},
"require": {
- "8fold/php-xml-builder": "^0.5",
+ "8fold/php-xml-builder": "^0.6",
"php": "^7.4||^8.0"
},
"require-dev": {
@@ -49,7 +49,7 @@
"description": "A library for building HTML document and element strings.",
"support": {
"issues": "https://github.com/8fold/php-html-builder/issues",
- "source": "https://github.com/8fold/php-html-builder/tree/0.5.0"
+ "source": "https://github.com/8fold/php-html-builder/tree/0.5.1"
},
"funding": [
{
@@ -61,20 +61,20 @@
"type": "github"
}
],
- "time": "2021-10-08T18:47:24+00:00"
+ "time": "2021-10-09T02:02:30+00:00"
},
{
"name": "8fold/php-xml-builder",
- "version": "0.5.3",
+ "version": "0.6.0",
"source": {
"type": "git",
"url": "https://github.com/8fold/php-xml-builder.git",
- "reference": "a06b7d10934148dcc3589e936bb2148befa88410"
+ "reference": "26b50c2b628e45b00a27e4286791f9953e5760c1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/8fold/php-xml-builder/zipball/a06b7d10934148dcc3589e936bb2148befa88410",
- "reference": "a06b7d10934148dcc3589e936bb2148befa88410",
+ "url": "https://api.github.com/repos/8fold/php-xml-builder/zipball/26b50c2b628e45b00a27e4286791f9953e5760c1",
+ "reference": "26b50c2b628e45b00a27e4286791f9953e5760c1",
"shasum": ""
},
"require": {
@@ -102,10 +102,10 @@
"email": "josh@8fold.pro"
}
],
- "description": "A library for building XML strings.",
+ "description": "A library for building XML document and element strings.",
"support": {
"issues": "https://github.com/8fold/php-xml-builder/issues",
- "source": "https://github.com/8fold/php-xml-builder/tree/0.5.3"
+ "source": "https://github.com/8fold/php-xml-builder/tree/0.6.0"
},
"funding": [
{
@@ -117,7 +117,7 @@
"type": "github"
}
],
- "time": "2021-10-08T00:40:01+00:00"
+ "time": "2021-10-09T01:55:37+00:00"
},
{
"name": "dflydev/dot-access-data",
diff --git a/src/Anchor.php b/src/Anchor.php
index 8d58330..81521db 100755
--- a/src/Anchor.php
+++ b/src/Anchor.php
@@ -2,9 +2,10 @@
namespace Eightfold\Markup;
+use Eightfold\XMLBuilder\Contracts\Buildable;
use Eightfold\HTMLBuilder\Element;
-class Anchor
+class Anchor implements Buildable
{
private string $content = '';
@@ -40,4 +41,9 @@ public function build(): string
->props('href ' . $this->href, ...$this->properties)
->build();
}
+
+ public function __toString(): string
+ {
+ return $this->build();
+ }
}
diff --git a/src/Image.php b/src/Image.php
index 0056913..88fca20 100755
--- a/src/Image.php
+++ b/src/Image.php
@@ -2,9 +2,10 @@
namespace Eightfold\Markup;
+use Eightfold\XMLBuilder\Contracts\Buildable;
use Eightfold\HTMLBuilder\Element as HtmlElement;
-class Image
+class Image implements Buildable
{
private string $alt = '';
@@ -42,4 +43,9 @@ public function build(): string
...$this->properties
)->build();
}
+
+ public function __toString(): string
+ {
+ return $this->build();
+ }
}
diff --git a/src/Markdown.php b/src/Markdown.php
index ffb13b7..8a98d24 100755
--- a/src/Markdown.php
+++ b/src/Markdown.php
@@ -3,12 +3,13 @@
namespace Eightfold\Markup\UIKit\Elements\Compound;
use League\CommonMark\Extension\ExtensionInterface;
+use Eightfold\XMLBuilder\Contracts\Buildable;
// use Eightfold\Markup\Html\HtmlElement;
// use Eightfold\ShoopShelf\Shoop;
-class Markdown //extends HtmlElement
+class Markdown implements Buildable //extends HtmlElement
{
private string $markdown = '';
@@ -124,4 +125,9 @@ public function build(): string
// $this->config
// )->unfold();
}
+
+ public function __toString(): string
+ {
+ return $this->build();
+ }
}
diff --git a/src/PageTitle.php b/src/PageTitle.php
index cf79b70..437cc72 100755
--- a/src/PageTitle.php
+++ b/src/PageTitle.php
@@ -3,6 +3,7 @@
namespace Eightfold\Markup;
use Eightfold\HTMLBuilder\Element as HtmlElement;
+use Eightfold\XMLBuilder\Contracts\Buildable;
// use Eightfold\Markup\Html\HtmlElement;
@@ -10,7 +11,7 @@
// use Eightfold\Markup\UIKit;
-class PageTitle //extends HtmlElement
+class PageTitle implements Buildable //extends HtmlElement
{
/**
* @var array
@@ -60,6 +61,11 @@ public function build(): string
return HtmlElement::title($string)->build();
}
+ public function __toString(): string
+ {
+ return $this->build();
+ }
+
public function reversed(): PageTitle
{
$this->reversed = true;
diff --git a/src/SimpleList.php b/src/SimpleList.php
index 9328103..b1cf001 100755
--- a/src/SimpleList.php
+++ b/src/SimpleList.php
@@ -3,6 +3,7 @@
namespace Eightfold\Markup\UIKit\Elements\Simple;
use Eightfold\HTMLBuilder\Element as HtmlElement;
+use Eightfold\XMLBuilder\Contracts\Buildable;
// use Eightfold\Markup\Html\HtmlElement;
@@ -10,7 +11,7 @@
// use Eightfold\Markup\UIKit;
-class SimpleList //extends HtmlElement
+class SimpleList implements Buildable //extends HtmlElement
{
/**
* @var array
@@ -37,6 +38,11 @@ public function build(): string
return '';
}
+ public function __toString(): string
+ {
+ return $this->build();
+ }
+
public function ordered(): SimpleList
{
$this->type = 'ordered';
diff --git a/tests/AnchorTest.php b/tests/AnchorTest.php
index f783ff2..fb040de 100755
--- a/tests/AnchorTest.php
+++ b/tests/AnchorTest.php
@@ -2,6 +2,15 @@
use Eightfold\Markup\Anchor;
+test('Anchor is castable to string', function() {
+ expect(
+ (string) Anchor::create('link content', 'https://8fold.pro')
+ ->props('class some-class', 'id some-id')
+ )->toBe(
+ 'link content'
+ );
+});
+
test('Anchor can have custom properties', function() {
expect(
Anchor::create('link content', 'https://8fold.pro')
diff --git a/tests/ImageTest.php b/tests/ImageTest.php
index fd45004..d9aa8df 100755
--- a/tests/ImageTest.php
+++ b/tests/ImageTest.php
@@ -2,6 +2,15 @@
use Eightfold\Markup\Image;
+test('Image is castable to string', function() {
+ expect(
+ (string) Image::create('alt content', 'https://8fold.pro')
+ ->props('class some-class', 'id some-id')
+ )->toBe(
+ '
'
+ );
+});
+
test('Image can have custom properties', function() {
expect(
Image::create('alt content', 'https://8fold.pro')
diff --git a/tests/PageTitleTest.php b/tests/PageTitleTest.php
index 9efa57f..2acb43c 100755
--- a/tests/PageTitleTest.php
+++ b/tests/PageTitleTest.php
@@ -2,6 +2,14 @@
use Eightfold\Markup\PageTitle;
+test('Page title is castable to string', function() {
+ expect(
+ (string) PageTitle::create(['Hello!', 'How are you?'], ' : ')->reversed()
+ )->toBe(
+ 'How are you? : Hello!'
+ );
+});
+
test('Page title can return without tag', function() {
expect(
PageTitle::create(['Hello!', 'How are you?'], ' : ')->reversed()
From 14bddcbd5bcc477db466fe19a63410a88418fc89 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Sun, 30 Jan 2022 12:34:55 -0600
Subject: [PATCH 21/24] deprecated: Markdown class, use
8fold/commonmark-fluent-markdown
---
composer.lock | 2347 ++++++++++++++++++++++++++++++++++++++++++++++
src/Markdown.php | 133 ---
2 files changed, 2347 insertions(+), 133 deletions(-)
create mode 100644 composer.lock
delete mode 100755 src/Markdown.php
diff --git a/composer.lock b/composer.lock
new file mode 100644
index 0000000..3251974
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,2347 @@
+{
+ "_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": "cc1f7661f8dd5a30b76d31ef0f789d7e",
+ "packages": [
+ {
+ "name": "8fold/php-html-builder",
+ "version": "0.6.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/8fold/php-html-builder.git",
+ "reference": "fe9efc42a473d1436c1d83ec507f3b93d6eed4e2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/8fold/php-html-builder/zipball/fe9efc42a473d1436c1d83ec507f3b93d6eed4e2",
+ "reference": "fe9efc42a473d1436c1d83ec507f3b93d6eed4e2",
+ "shasum": ""
+ },
+ "require": {
+ "8fold/php-xml-builder": "^0.6",
+ "php": "^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^1.2.0",
+ "phpunit/phpunit": "^9.5.0",
+ "squizlabs/php_codesniffer": "^3.6.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Eightfold\\HTMLBuilder\\": "./src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Josh Bruce",
+ "email": "josh@8fold.pro"
+ }
+ ],
+ "description": "A library for building HTML document and element strings.",
+ "support": {
+ "issues": "https://github.com/8fold/php-html-builder/issues",
+ "source": "https://github.com/8fold/php-html-builder/tree/0.6.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/8fold",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/joshbruce",
+ "type": "github"
+ }
+ ],
+ "time": "2021-12-25T19:21:20+00:00"
+ },
+ {
+ "name": "8fold/php-xml-builder",
+ "version": "0.6.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/8fold/php-xml-builder.git",
+ "reference": "1b8665052f0a8341797e36c91a8767ca03d519c7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/8fold/php-xml-builder/zipball/1b8665052f0a8341797e36c91a8767ca03d519c7",
+ "reference": "1b8665052f0a8341797e36c91a8767ca03d519c7",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.4||^8.0"
+ },
+ "require-dev": {
+ "pestphp/pest": "^1.20",
+ "phpstan/phpstan": "^0.12",
+ "psr/log": "^1.0.1",
+ "squizlabs/php_codesniffer": "^3.6"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Eightfold\\XMLBuilder\\": "./src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Josh Bruce",
+ "email": "josh@8fold.pro"
+ }
+ ],
+ "description": "A library for building XML document and element strings.",
+ "support": {
+ "issues": "https://github.com/8fold/php-xml-builder/issues",
+ "source": "https://github.com/8fold/php-xml-builder/tree/0.6.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/8fold",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/joshbruce",
+ "type": "github"
+ }
+ ],
+ "time": "2021-10-17T20:02:11+00:00"
+ }
+ ],
+ "packages-dev": [
+ {
+ "name": "doctrine/instantiator",
+ "version": "1.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/instantiator.git",
+ "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b",
+ "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^8.0",
+ "ext-pdo": "*",
+ "ext-phar": "*",
+ "phpbench/phpbench": "^0.13 || 1.0.0-alpha2",
+ "phpstan/phpstan": "^0.12",
+ "phpstan/phpstan-phpunit": "^0.12",
+ "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
+ },
+ "type": "library",
+ "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": "https://ocramius.github.io/"
+ }
+ ],
+ "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
+ "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
+ "keywords": [
+ "constructor",
+ "instantiate"
+ ],
+ "support": {
+ "issues": "https://github.com/doctrine/instantiator/issues",
+ "source": "https://github.com/doctrine/instantiator/tree/1.4.0"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-10T18:47:58+00:00"
+ },
+ {
+ "name": "myclabs/deep-copy",
+ "version": "1.10.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/myclabs/DeepCopy.git",
+ "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220",
+ "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/collections": "^1.0",
+ "doctrine/common": "^2.6",
+ "phpunit/phpunit": "^7.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"
+ ],
+ "support": {
+ "issues": "https://github.com/myclabs/DeepCopy/issues",
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2"
+ },
+ "funding": [
+ {
+ "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-13T09:40:50+00:00"
+ },
+ {
+ "name": "nikic/php-parser",
+ "version": "v4.13.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "210577fe3cf7badcc5814d99455df46564f3c077"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077",
+ "reference": "210577fe3cf7badcc5814d99455df46564f3c077",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": ">=7.0"
+ },
+ "require-dev": {
+ "ircmaxell/php-yacc": "^0.0.7",
+ "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "bin": [
+ "bin/php-parse"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.9-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "PhpParser\\": "lib/PhpParser"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Nikita Popov"
+ }
+ ],
+ "description": "A PHP parser written in PHP",
+ "keywords": [
+ "parser",
+ "php"
+ ],
+ "support": {
+ "issues": "https://github.com/nikic/PHP-Parser/issues",
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2"
+ },
+ "time": "2021-11-30T19:35:32+00:00"
+ },
+ {
+ "name": "phar-io/manifest",
+ "version": "2.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/manifest.git",
+ "reference": "97803eca37d319dfa7826cc2437fc020857acb53"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
+ "reference": "97803eca37d319dfa7826cc2437fc020857acb53",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-phar": "*",
+ "ext-xmlwriter": "*",
+ "phar-io/version": "^3.0.1",
+ "php": "^7.2 || ^8.0"
+ },
+ "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": "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)",
+ "support": {
+ "issues": "https://github.com/phar-io/manifest/issues",
+ "source": "https://github.com/phar-io/manifest/tree/2.0.3"
+ },
+ "time": "2021-07-20T11:28:43+00:00"
+ },
+ {
+ "name": "phar-io/version",
+ "version": "3.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/version.git",
+ "reference": "bae7c545bef187884426f042434e561ab1ddb182"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182",
+ "reference": "bae7c545bef187884426f042434e561ab1ddb182",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.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",
+ "support": {
+ "issues": "https://github.com/phar-io/version/issues",
+ "source": "https://github.com/phar-io/version/tree/3.1.0"
+ },
+ "time": "2021-02-23T14:00:09+00:00"
+ },
+ {
+ "name": "phpdocumentor/reflection-common",
+ "version": "2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-2.x": "2.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"
+ ],
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
+ },
+ "time": "2020-06-27T09:03:43+00:00"
+ },
+ {
+ "name": "phpdocumentor/reflection-docblock",
+ "version": "5.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
+ "reference": "622548b623e81ca6d78b721c5e029f4ce664f170"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170",
+ "reference": "622548b623e81ca6d78b721c5e029f4ce664f170",
+ "shasum": ""
+ },
+ "require": {
+ "ext-filter": "*",
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.2",
+ "phpdocumentor/type-resolver": "^1.3",
+ "webmozart/assert": "^1.9.1"
+ },
+ "require-dev": {
+ "mockery/mockery": "~1.3.2",
+ "psalm/phar": "^4.8"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.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"
+ },
+ {
+ "name": "Jaap van Otterdijk",
+ "email": "account@ijaap.nl"
+ }
+ ],
+ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0"
+ },
+ "time": "2021-10-19T17:43:47+00:00"
+ },
+ {
+ "name": "phpdocumentor/type-resolver",
+ "version": "1.6.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/TypeResolver.git",
+ "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706",
+ "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.0"
+ },
+ "require-dev": {
+ "ext-tokenizer": "*",
+ "psalm/phar": "^4.8"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-1.x": "1.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": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
+ "support": {
+ "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.0"
+ },
+ "time": "2022-01-04T19:58:01+00:00"
+ },
+ {
+ "name": "phpspec/prophecy",
+ "version": "v1.15.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpspec/prophecy.git",
+ "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13",
+ "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/instantiator": "^1.2",
+ "php": "^7.2 || ~8.0, <8.2",
+ "phpdocumentor/reflection-docblock": "^5.2",
+ "sebastian/comparator": "^3.0 || ^4.0",
+ "sebastian/recursion-context": "^3.0 || ^4.0"
+ },
+ "require-dev": {
+ "phpspec/phpspec": "^6.0 || ^7.0",
+ "phpunit/phpunit": "^8.0 || ^9.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Prophecy\\": "src/Prophecy"
+ }
+ },
+ "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"
+ ],
+ "support": {
+ "issues": "https://github.com/phpspec/prophecy/issues",
+ "source": "https://github.com/phpspec/prophecy/tree/v1.15.0"
+ },
+ "time": "2021-12-08T12:19:24+00:00"
+ },
+ {
+ "name": "phpstan/phpstan",
+ "version": "1.4.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/phpstan.git",
+ "reference": "89d10839dbfc95eeb7da656578b4a899ad2b59b1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/89d10839dbfc95eeb7da656578b4a899ad2b59b1",
+ "reference": "89d10839dbfc95eeb7da656578b4a899ad2b59b1",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1|^8.0"
+ },
+ "conflict": {
+ "phpstan/phpstan-shim": "*"
+ },
+ "bin": [
+ "phpstan",
+ "phpstan.phar"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "autoload": {
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHPStan - PHP Static Analysis Tool",
+ "support": {
+ "issues": "https://github.com/phpstan/phpstan/issues",
+ "source": "https://github.com/phpstan/phpstan/tree/1.4.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/ondrejmirtes",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/phpstan",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/phpstan",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-01-28T16:27:17+00:00"
+ },
+ {
+ "name": "phpunit/php-code-coverage",
+ "version": "9.2.10",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
+ "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d5850aaf931743067f4bfc1ae4cbd06468400687",
+ "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-libxml": "*",
+ "ext-xmlwriter": "*",
+ "nikic/php-parser": "^4.13.0",
+ "php": ">=7.3",
+ "phpunit/php-file-iterator": "^3.0.3",
+ "phpunit/php-text-template": "^2.0.2",
+ "sebastian/code-unit-reverse-lookup": "^2.0.2",
+ "sebastian/complexity": "^2.0",
+ "sebastian/environment": "^5.1.2",
+ "sebastian/lines-of-code": "^1.0.3",
+ "sebastian/version": "^3.0.1",
+ "theseer/tokenizer": "^1.2.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "suggest": {
+ "ext-pcov": "*",
+ "ext-xdebug": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "9.2-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"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.10"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-12-05T09:12:13+00:00"
+ },
+ {
+ "name": "phpunit/php-file-iterator",
+ "version": "3.0.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
+ "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf",
+ "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "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",
+ "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"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
+ "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-12-02T12:48:52+00:00"
+ },
+ {
+ "name": "phpunit/php-invoker",
+ "version": "3.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-invoker.git",
+ "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
+ "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "ext-pcntl": "*",
+ "phpunit/phpunit": "^9.3"
+ },
+ "suggest": {
+ "ext-pcntl": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.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": "Invoke callables with a timeout",
+ "homepage": "https://github.com/sebastianbergmann/php-invoker/",
+ "keywords": [
+ "process"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
+ "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:58:55+00:00"
+ },
+ {
+ "name": "phpunit/php-text-template",
+ "version": "2.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
+ "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "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": "Simple template engine.",
+ "homepage": "https://github.com/sebastianbergmann/php-text-template/",
+ "keywords": [
+ "template"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
+ "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T05:33:50+00:00"
+ },
+ {
+ "name": "phpunit/php-timer",
+ "version": "5.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-timer.git",
+ "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
+ "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.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"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-timer/issues",
+ "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:16:10+00:00"
+ },
+ {
+ "name": "phpunit/phpunit",
+ "version": "9.5.13",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/phpunit.git",
+ "reference": "597cb647654ede35e43b137926dfdfef0fb11743"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/597cb647654ede35e43b137926dfdfef0fb11743",
+ "reference": "597cb647654ede35e43b137926dfdfef0fb11743",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/instantiator": "^1.3.1",
+ "ext-dom": "*",
+ "ext-json": "*",
+ "ext-libxml": "*",
+ "ext-mbstring": "*",
+ "ext-xml": "*",
+ "ext-xmlwriter": "*",
+ "myclabs/deep-copy": "^1.10.1",
+ "phar-io/manifest": "^2.0.3",
+ "phar-io/version": "^3.0.2",
+ "php": ">=7.3",
+ "phpspec/prophecy": "^1.12.1",
+ "phpunit/php-code-coverage": "^9.2.7",
+ "phpunit/php-file-iterator": "^3.0.5",
+ "phpunit/php-invoker": "^3.1.1",
+ "phpunit/php-text-template": "^2.0.3",
+ "phpunit/php-timer": "^5.0.2",
+ "sebastian/cli-parser": "^1.0.1",
+ "sebastian/code-unit": "^1.0.6",
+ "sebastian/comparator": "^4.0.5",
+ "sebastian/diff": "^4.0.3",
+ "sebastian/environment": "^5.1.3",
+ "sebastian/exporter": "^4.0.3",
+ "sebastian/global-state": "^5.0.1",
+ "sebastian/object-enumerator": "^4.0.3",
+ "sebastian/resource-operations": "^3.0.3",
+ "sebastian/type": "^2.3.4",
+ "sebastian/version": "^3.0.2"
+ },
+ "require-dev": {
+ "ext-pdo": "*",
+ "phpspec/prophecy-phpunit": "^2.0.1"
+ },
+ "suggest": {
+ "ext-soap": "*",
+ "ext-xdebug": "*"
+ },
+ "bin": [
+ "phpunit"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "9.5-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "files": [
+ "src/Framework/Assert/Functions.php"
+ ]
+ },
+ "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"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/phpunit/issues",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.13"
+ },
+ "funding": [
+ {
+ "url": "https://phpunit.de/sponsors.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2022-01-24T07:33:35+00:00"
+ },
+ {
+ "name": "sebastian/cli-parser",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/cli-parser.git",
+ "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
+ "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.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 for parsing CLI options",
+ "homepage": "https://github.com/sebastianbergmann/cli-parser",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
+ "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:08:49+00:00"
+ },
+ {
+ "name": "sebastian/code-unit",
+ "version": "1.0.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/code-unit.git",
+ "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
+ "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.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": "Collection of value objects that represent the PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/code-unit",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:08:54+00:00"
+ },
+ {
+ "name": "sebastian/code-unit-reverse-lookup",
+ "version": "2.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
+ "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
+ "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "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": "Looks up which function or method a line of code belongs to",
+ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:30:19+00:00"
+ },
+ {
+ "name": "sebastian/comparator",
+ "version": "4.0.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/comparator.git",
+ "reference": "55f4261989e546dc112258c7a75935a81a7ce382"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382",
+ "reference": "55f4261989e546dc112258c7a75935a81a7ce382",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3",
+ "sebastian/diff": "^4.0",
+ "sebastian/exporter": "^4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
+ }
+ ],
+ "description": "Provides the functionality to compare PHP values for equality",
+ "homepage": "https://github.com/sebastianbergmann/comparator",
+ "keywords": [
+ "comparator",
+ "compare",
+ "equality"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/comparator/issues",
+ "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T15:49:45+00:00"
+ },
+ {
+ "name": "sebastian/complexity",
+ "version": "2.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/complexity.git",
+ "reference": "739b35e53379900cc9ac327b2147867b8b6efd88"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88",
+ "reference": "739b35e53379900cc9ac327b2147867b8b6efd88",
+ "shasum": ""
+ },
+ "require": {
+ "nikic/php-parser": "^4.7",
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "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": "Library for calculating the complexity of PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/complexity",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/complexity/issues",
+ "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T15:52:27+00:00"
+ },
+ {
+ "name": "sebastian/diff",
+ "version": "4.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/diff.git",
+ "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3",
+ "symfony/process": "^4.2 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
+ }
+ ],
+ "description": "Diff implementation",
+ "homepage": "https://github.com/sebastianbergmann/diff",
+ "keywords": [
+ "diff",
+ "udiff",
+ "unidiff",
+ "unified diff"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/diff/issues",
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:10:38+00:00"
+ },
+ {
+ "name": "sebastian/environment",
+ "version": "5.1.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/environment.git",
+ "reference": "388b6ced16caa751030f6a69e588299fa09200ac"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac",
+ "reference": "388b6ced16caa751030f6a69e588299fa09200ac",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "suggest": {
+ "ext-posix": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.1-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"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/environment/issues",
+ "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:52:38+00:00"
+ },
+ {
+ "name": "sebastian/exporter",
+ "version": "4.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/exporter.git",
+ "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9",
+ "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3",
+ "sebastian/recursion-context": "^4.0"
+ },
+ "require-dev": {
+ "ext-mbstring": "*",
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
+ }
+ ],
+ "description": "Provides the functionality to export PHP variables for visualization",
+ "homepage": "https://www.github.com/sebastianbergmann/exporter",
+ "keywords": [
+ "export",
+ "exporter"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/exporter/issues",
+ "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-11-11T14:18:36+00:00"
+ },
+ {
+ "name": "sebastian/global-state",
+ "version": "5.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/global-state.git",
+ "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49",
+ "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
+ },
+ "require-dev": {
+ "ext-dom": "*",
+ "phpunit/phpunit": "^9.3"
+ },
+ "suggest": {
+ "ext-uopz": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.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"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/global-state/issues",
+ "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-06-11T13:31:12+00:00"
+ },
+ {
+ "name": "sebastian/lines-of-code",
+ "version": "1.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/lines-of-code.git",
+ "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc",
+ "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc",
+ "shasum": ""
+ },
+ "require": {
+ "nikic/php-parser": "^4.6",
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.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 for counting the lines of code in PHP source code",
+ "homepage": "https://github.com/sebastianbergmann/lines-of-code",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
+ "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-28T06:42:11+00:00"
+ },
+ {
+ "name": "sebastian/object-enumerator",
+ "version": "4.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-enumerator.git",
+ "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
+ "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-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/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
+ "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:12:34+00:00"
+ },
+ {
+ "name": "sebastian/object-reflector",
+ "version": "2.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-reflector.git",
+ "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
+ "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "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": "Allows reflection of object attributes, including inherited and non-public ones",
+ "homepage": "https://github.com/sebastianbergmann/object-reflector/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:14:26+00:00"
+ },
+ {
+ "name": "sebastian/recursion-context",
+ "version": "4.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/recursion-context.git",
+ "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172",
+ "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ }
+ ],
+ "description": "Provides functionality to recursively process PHP variables",
+ "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:17:30+00:00"
+ },
+ {
+ "name": "sebastian/resource-operations",
+ "version": "3.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/resource-operations.git",
+ "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
+ "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.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": "Provides a list of PHP built-in functions that operate on resources",
+ "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
+ "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:45:17+00:00"
+ },
+ {
+ "name": "sebastian/type",
+ "version": "2.3.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/type.git",
+ "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914",
+ "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.3-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": "Collection of value objects that represent the types of the PHP type system",
+ "homepage": "https://github.com/sebastianbergmann/type",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/type/issues",
+ "source": "https://github.com/sebastianbergmann/type/tree/2.3.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-06-15T12:49:02+00:00"
+ },
+ {
+ "name": "sebastian/version",
+ "version": "3.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/version.git",
+ "reference": "c6c1022351a901512170118436c764e473f6de8c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
+ "reference": "c6c1022351a901512170118436c764e473f6de8c",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "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",
+ "role": "lead"
+ }
+ ],
+ "description": "Library that helps with managing the version number of Git-hosted PHP projects",
+ "homepage": "https://github.com/sebastianbergmann/version",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/version/issues",
+ "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:39:44+00:00"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "3.6.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
+ "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a",
+ "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "bin": [
+ "bin/phpcs",
+ "bin/phpcbf"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.x-dev"
+ }
+ },
+ "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": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "keywords": [
+ "phpcs",
+ "standards"
+ ],
+ "support": {
+ "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
+ "source": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
+ },
+ "time": "2021-12-12T21:44:58+00:00"
+ },
+ {
+ "name": "symfony/polyfill-ctype",
+ "version": "v1.24.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "30885182c981ab175d4d034db0f6f469898070ab"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab",
+ "reference": "30885182c981ab175d4d034db0f6f469898070ab",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-ctype": "*"
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-10-20T20:35:02+00:00"
+ },
+ {
+ "name": "theseer/tokenizer",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/theseer/tokenizer.git",
+ "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e",
+ "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": "^7.2 || ^8.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",
+ "support": {
+ "issues": "https://github.com/theseer/tokenizer/issues",
+ "source": "https://github.com/theseer/tokenizer/tree/1.2.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/theseer",
+ "type": "github"
+ }
+ ],
+ "time": "2021-07-28T10:34:58+00:00"
+ },
+ {
+ "name": "webmozart/assert",
+ "version": "1.10.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/webmozarts/assert.git",
+ "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25",
+ "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0",
+ "symfony/polyfill-ctype": "^1.8"
+ },
+ "conflict": {
+ "phpstan/phpstan": "<0.12.20",
+ "vimeo/psalm": "<4.6.1 || 4.6.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8.5.13"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.10-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"
+ ],
+ "support": {
+ "issues": "https://github.com/webmozarts/assert/issues",
+ "source": "https://github.com/webmozarts/assert/tree/1.10.0"
+ },
+ "time": "2021-03-09T10:59:23+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": true,
+ "prefer-lowest": false,
+ "platform": {
+ "php": "^8.1"
+ },
+ "platform-dev": [],
+ "plugin-api-version": "2.2.0"
+}
diff --git a/src/Markdown.php b/src/Markdown.php
deleted file mode 100755
index 8a98d24..0000000
--- a/src/Markdown.php
+++ /dev/null
@@ -1,133 +0,0 @@
-
- */
- private array $config = [];
-
- private bool $caseSensitive = true;
-
- /**
- * @var array
- */
- private array $markdownReplacements = [];
-
- /**
- * @var array
- */
- private $htmlReplacements = [];
-
- private bool $trim = true;
-
- private bool $minified = true;
-
- /**
- * @var array
- */
- private $extensions = [];
-
- /**
- * @param array $config [description]
- */
- public function __construct(string $markdown, array $config = [])
- {
- $this->config = $config;
- $this->markdown = $markdown;
- }
-
- public function caseSensitive(bool $caseSensitive = true): Markdown
- {
- $this->caseSensitive = $caseSensitive;
-
- return $this;
- }
-
- /**
- * @param array $replacements [description]
- */
- public function markdownReplacements($replacements = []): Markdown
- {
- $this->markdownReplacements = $replacements;
-
- return $this;
- }
-
- /**
- * @param array $replacements [description]
- */
- public function htmlReplacements($replacements = []): Markdown
- {
- $this->htmlReplacements = $replacements;
-
- return $this;
- }
-
- public function trim(bool $trim = true): Markdown
- {
- $this->trim = $trim;
-
- return $this;
- }
-
- public function minified(bool $minified = true): Markdown
- {
- $this->minified = $minified;
-
- return $this;
- }
-
- /**
- * @param ExtensionInterface $extensions [description]
- */
- public function extensions(...$extensions): Markdown
- {
- // $this->extensions = Shoop::this($extensions)
- // ->drop(fn($v) => empty($v))->unfold();
-
- return $this;
- }
-
- public function prepend(string $markdown): Markdown
- {
- $this->markdown = $markdown . $this->markdown;
-
- return $this;
- }
-
- public function meta(): object
- {
- return (object) [];
- // return Shoop::markdown($this->markdown)->meta();
- }
-
- public function build(): string
- {
- return '';
- // return Shoop::markdown($this->markdown, ...$this->extensions)
- // ->html(
- // $this->markdownReplacements,
- // $this->htmlReplacements,
- // $this->caseSensitive,
- // $this->minified,
- // $this->config
- // )->unfold();
- }
-
- public function __toString(): string
- {
- return $this->build();
- }
-}
From 6b57be8fb972ea1350e437138a677024913ff87c Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Sun, 30 Jan 2022 14:17:20 -0600
Subject: [PATCH 22/24] deprecated: Description list
---
src/Anchor.php | 5 +-
src/Image.php | 1 +
src/PageTitle.php | 9 +--
src/SimpleList.php | 96 +++++++++++----------------
tests/AnchorTest.php | 66 ++++++++++++-------
tests/Compound.php | 109 ------------------------------
tests/ImageTest.php | 66 ++++++++++++-------
tests/Markdown.php | 139 ---------------------------------------
tests/PageTitleTest.php | 105 ++++++++++++++++++-----------
tests/SimpleListTest.php | 65 ++++++++++++++++++
10 files changed, 258 insertions(+), 403 deletions(-)
delete mode 100755 tests/Compound.php
delete mode 100755 tests/Markdown.php
create mode 100755 tests/SimpleListTest.php
diff --git a/src/Anchor.php b/src/Anchor.php
index 81521db..ab58a20 100755
--- a/src/Anchor.php
+++ b/src/Anchor.php
@@ -3,7 +3,8 @@
namespace Eightfold\Markup;
use Eightfold\XMLBuilder\Contracts\Buildable;
-use Eightfold\HTMLBuilder\Element;
+
+use Eightfold\HTMLBuilder\Element as HtmlElement;
class Anchor implements Buildable
{
@@ -37,7 +38,7 @@ public function props(string ...$properties): Anchor
public function build(): string
{
- return Element::a($this->content)
+ return HtmlElement::a($this->content)
->props('href ' . $this->href, ...$this->properties)
->build();
}
diff --git a/src/Image.php b/src/Image.php
index 88fca20..66ea97b 100755
--- a/src/Image.php
+++ b/src/Image.php
@@ -3,6 +3,7 @@
namespace Eightfold\Markup;
use Eightfold\XMLBuilder\Contracts\Buildable;
+
use Eightfold\HTMLBuilder\Element as HtmlElement;
class Image implements Buildable
diff --git a/src/PageTitle.php b/src/PageTitle.php
index 437cc72..459c6d8 100755
--- a/src/PageTitle.php
+++ b/src/PageTitle.php
@@ -2,16 +2,11 @@
namespace Eightfold\Markup;
-use Eightfold\HTMLBuilder\Element as HtmlElement;
use Eightfold\XMLBuilder\Contracts\Buildable;
-// use Eightfold\Markup\Html\HtmlElement;
-
-// use Eightfold\Markup\Html;
-
-// use Eightfold\Markup\UIKit;
+use Eightfold\HTMLBuilder\Element as HtmlElement;
-class PageTitle implements Buildable //extends HtmlElement
+class PageTitle implements Buildable
{
/**
* @var array
diff --git a/src/SimpleList.php b/src/SimpleList.php
index b1cf001..f95b8b7 100755
--- a/src/SimpleList.php
+++ b/src/SimpleList.php
@@ -1,17 +1,12 @@
@@ -20,11 +15,20 @@ class SimpleList implements Buildable //extends HtmlElement
private string $type = 'unordered';
+ /**
+ * @var array
+ */
+ private array $properties = [];
+
/**
* @var array
*/
private array $descriptionTerms = [];
+ public static function create(...$items): SimpleList {
+ return new SimpleList(...$items);
+ }
+
/**
* @param HtmlElement|string $items [description]
*/
@@ -33,68 +37,44 @@ public function __construct(...$items)
$this->items = $items;
}
- public function build(): string
- {
- return '';
- }
-
- public function __toString(): string
- {
- return $this->build();
- }
-
- public function ordered(): SimpleList
+ public function props(string ...$properties): SimpleList
{
- $this->type = 'ordered';
- return $this;
- }
+ $this->properties = $properties;
- /**
- * @param HtmlElement|string $terms [description]
- */
- public function description(...$terms): SimpleList
- {
- $this->type = 'description';
- $this->descriptionTerms = $terms;
return $this;
}
- /**
- * @param array $content [description]
- * @return array [description]
- */
- private function listItems(array $content): array
+ public function build(): string
{
- return [];
- // $count = 0;
- // $listItems = [];
- // foreach ($content as $index => $item) {
- // if ($this->type == 'unordered' || $this->type == 'ordered') {
- // $listItems[] = Html::li($item);
-
- // } else {
- // $count++;
+ $items = [];
+ foreach ($this->items as $item) {
+ $items[] = HtmlElement::li($item);
+ }
- // if (count($this->descriptionTerms) == 0) {
- // if ($count % 2 == 0) {
- // $items = Html::dd($item);
+ $elem;
+ if ($this->type === 'ordered') {
+ $elem = HtmlElement::ol(...$items);
- // } else {
- // $items = Html::dt($item);
+ } else {
+ $elem = HtmlElement::ul(...$items);
- // }
+ }
- // } elseif (in_array($index + 1, $this->descriptionTerms)) {
- // $items = Html::dt($item);
+ if (count($this->properties) > 0) {
+ $elem = $elem->props(...$this->properties);
+ }
+ return $elem->build();
+ }
- // } else {
- // $items = Html::dd($item);
+ public function __toString(): string
+ {
+ return $this->build();
+ }
- // }
- // $listItems[] = $items;
- // }
- // }
- // return $listItems;
+ public function ordered(): SimpleList
+ {
+ $this->type = 'ordered';
+ return $this;
}
}
diff --git a/tests/AnchorTest.php b/tests/AnchorTest.php
index fb040de..9a1b6f2 100755
--- a/tests/AnchorTest.php
+++ b/tests/AnchorTest.php
@@ -1,30 +1,48 @@
props('class some-class', 'id some-id')
- )->toBe(
- 'link content'
- );
-});
+class AnchorTest extends TestCase
+{
+ /**
+ * @test
+ */
+ public function anchor_is_castable_to_string(): void
+ {
+ $this->assertEquals(
+ (string) Anchor::create('link content', 'https://8fold.pro')
+ ->props('class some-class', 'id some-id'),
+ 'link content'
+ );
+ }
-test('Anchor can have custom properties', function() {
- expect(
- Anchor::create('link content', 'https://8fold.pro')
- ->props('class some-class', 'id some-id')
- ->build()
- )->toBe(
- 'link content'
- );
-});
+ /**
+ * @test
+ */
+ public function anchor_can_have_custom_properties(): void
+ {
+ $this->assertEquals(
+ Anchor::create('link content', 'https://8fold.pro')
+ ->props('class some-class', 'id some-id')
+ ->build(),
+ 'link content'
+ );
+ }
-test('Anchor returns correct element; with required parts', function() {
- expect(
- Anchor::create('link content', 'https://8fold.pro')->build()
- )->toBe(
- 'link content'
- );
-});
+ /**
+ * @test
+ */
+ public function anchor_returns_correct_element_with_required_parts(): void
+ {
+ $this->assertEquals(
+ Anchor::create('link content', 'https://8fold.pro')->build(),
+ 'link content'
+ );
+ }
+}
diff --git a/tests/Compound.php b/tests/Compound.php
deleted file mode 100755
index 6eec9a1..0000000
--- a/tests/Compound.php
+++ /dev/null
@@ -1,109 +0,0 @@
-',
- "string",
- 20.36, // 9.97, // 7.79
- 578 // 573
- )->unfoldUsing(
- UIKit::doubleWrap()
- );
- }
-
- /**
- * @test
- */
- public function web_head()
- {
- // For 0.2.0 was 10.25
- AssertEquals::applyWith(
- '',
- "string",
- 7.78,
- 549 // 547
- )->unfoldUsing(
- UIKit::webHead()
- );
-
- // For 0.2.0 was 23.25
- AssertEquals::applyWith(
- '',
- "string",
- 41.86, // 22.09, // 13.62,
- 596 // 594 // 588
- )->unfoldUsing(
- UIKit::webHead()->favicons(
- "favicon.ico",
- "apple-touch-icon.png",
- "favicon-32x32.png",
- "favicon-16x16.png"
- )
- );
-
- // For 0.2.0 was 24ms
- AssertEquals::applyWith(
- '',
- "string",
- 14.36, // 14.24, // 14.08, // 13.84, // 13.31, // 10.88, // 6.17, // 5.86, // 5.14, // 4.95, // 4.47, // 3.73,
- 4 // 3
- )->unfoldUsing(
- UIKit::webHead()
- ->favicons("favicon.ico")
- ->styles("main.css")
- ->scripts("main.js")
- );
-
- // For 0.2.0 was 25ms
- AssertEquals::applyWith(
- '',
- "string",
- 27.96, // 24.18, // 22.08, // 21.04, // 19.46, // 14.88, // 12.25, // 7.47,
- 570
- )->unfoldUsing(
- UIKit::webHead()->social(
- "8fold PHP Markup",
- "https://8fold.dev/open-source/markup/php",
- "Get the HTML out of your PHP with this HTML generator."
- )->socialTwitter("8foldPros")
- );
- }
-
- /**
- * @test
- */
- public function accordion()
- {
- $summaryId = "accordion";
- $summary = "Summary";
- $content = UIKit::p("The content.");
-
- // For 0.2.0 was 24ms
- AssertEquals::applyWith(
- ''. $content->unfold() .'
',
- "string",
- 18.54, // 17.82, // 17.66, // 17.01, // 13.7, // 7.36, // 5.78
- 13
- )->unfoldUsing(
- UIKit::accordion($summaryId, $summary, $content)
- );
- }
-}
diff --git a/tests/ImageTest.php b/tests/ImageTest.php
index d9aa8df..ab64be8 100755
--- a/tests/ImageTest.php
+++ b/tests/ImageTest.php
@@ -1,30 +1,48 @@
props('class some-class', 'id some-id')
- )->toBe(
- '
'
- );
-});
+class ImageTest extends TestCase
+{
+ /**
+ * @test
+ */
+ public function image_is_castable_to_string(): void
+ {
+ $this->assertEquals(
+ (string) Image::create('alt content', 'https://8fold.pro')
+ ->props('class some-class', 'id some-id'),
+ '
'
+ );
+ }
-test('Image can have custom properties', function() {
- expect(
- Image::create('alt content', 'https://8fold.pro')
- ->props('class some-class', 'id some-id')
- ->build()
- )->toBe(
- '
'
- );
-});
+ /**
+ * @test
+ */
+ public function image_can_have_custom_properties(): void
+ {
+ $this->assertEquals(
+ Image::create('alt content', 'https://8fold.pro')
+ ->props('class some-class', 'id some-id')
+ ->build(),
+ '
'
+ );
+ }
-test('Image returns correct element; with required parts', function() {
- expect(
- Image::create('alt content', 'https://8fold.pro')->build()
- )->toBe(
- '
'
- );
-});
+ /**
+ * @test
+ */
+ public function image_returns_correct_element_with_required_parts(): void
+ {
+ $this->assertEquals(
+ Image::create('alt content', 'https://8fold.pro')->build(),
+ '
'
+ );
+ }
+}
diff --git a/tests/Markdown.php b/tests/Markdown.php
deleted file mode 100755
index 04dd1d3..0000000
--- a/tests/Markdown.php
+++ /dev/null
@@ -1,139 +0,0 @@
-HeadingContent
',
- "string",
- 30.48, // 13.06, // 12.69, // 11.83, // 11.8,
- 1868 // 1758 // 1658 // 1100
- )->unfoldUsing(
- UIKit::markdown($this->doc())
- );
-
- AssertEquals::applyWith(
- 'Hello, World!
',
- "string",
- 0.99, // 0.84, // 0.22, // 0.18, // 0.16,
- 42 // 39
- )->unfoldUsing(
- UIKit::markdown("Hello, World!")
- );
- }
-
- /**
- * @test
- */
- public function replacements()
- {
- AssertEquals::applyWith(
- 'Heading
Content
',
- "string",
- 12.97, // 11.24,
- 1092
- )->unfoldUsing(
- UIKit::markdown($this->doc())
- ->markdownReplacements(["# " => ""])
- );
-
- AssertEquals::applyWith(
- 'Content',
- "string",
- 12.55, // 11.83,
- 1091
- )->unfoldUsing(
- UIKit::markdown($this->doc())
- ->markdownReplacements(["# Heading" => ""])
- ->htmlReplacements(["" => "", "
" => ""])
- );
- }
-
- /**
- * @test
- */
- public function remove()
- {
- AssertEquals::applyWith(
- 'Content
',
- "string",
- 13.33,
- 1091
- )->unfoldUsing(
- UIKit::markdown($this->doc())
- ->markdownReplacements(["# Heading" => ""])
- );
- }
-
- /**
- * @test
- */
- public function default_extensions()
- {
- $expected = 'Header 1 | Header 2 |
---|
Cell 1 | Cell 2 |
';
-
- AssertEquals::applyWith(
- $expected,
- "string",
- 21.68,
- 1459
- )->unfoldUsing(
- UIKit::markdown($this->docTable())->extensions(
- new TableExtension()
- )
- );
- }
-
- /**
- * @test
- */
- public function testCanPrepend()
- {
- $doc = <<< EOD
- Base
- EOD;
-
- AssertEquals::applyWith(
- 'Heading
Base
',
- "string",
- 1.21, // 0.98, // 0.88, // 0.86, // 0.59, // 0.47,
- 48
- )->unfoldUsing(
- UIKit::markdown($doc)->prepend("# Heading\n\n")
- );
- }
-}
diff --git a/tests/PageTitleTest.php b/tests/PageTitleTest.php
index 2acb43c..3ea7ecb 100755
--- a/tests/PageTitleTest.php
+++ b/tests/PageTitleTest.php
@@ -1,44 +1,69 @@
reversed()
- )->toBe(
- 'How are you? : Hello!'
- );
-});
-
-test('Page title can return without tag', function() {
- expect(
- PageTitle::create(['Hello!', 'How are you?'], ' : ')->reversed()
- ->stringOnly()->build()
- )->toBe(
- 'How are you? : Hello!'
- );
-});
-
-test('Page title respects custom separator', function() {
- expect(
- PageTitle::create(['Hello!', 'How are you?'], ' : ')->build()
- )->toBe(
- 'Hello! : How are you?'
- );
-});
-
-test('Page title can have multiple parts', function() {
- expect(
- PageTitle::create(['Hello!', 'How are you?'])->build()
- )->toBe(
- 'Hello! | How are you?'
- );
-});
-
-test('Page title returns correct element', function() {
- expect(
- PageTitle::create(['Hello!'])->build()
- )->toBe(
- 'Hello!'
- );
-});
+class PageTitleTest extends TestCase
+{
+ /**
+ * @test
+ */
+ public function page_title_is_castable_to_string(): void
+ {
+ $this->assertEquals(
+ (string) PageTitle::create(['Hello!', 'How are you?'], ' : ')
+ ->reversed(),
+ 'How are you? : Hello!'
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function page_title_can_return_with_tag(): void
+ {
+ $this->assertEquals(
+ PageTitle::create(['Hello!', 'How are you?'], ' : ')->reversed()
+ ->stringOnly()->build(),
+ 'How are you? : Hello!'
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function page_title_respects_custom_separator(): void
+ {
+ $this->assertEquals(
+ PageTitle::create(['Hello!', 'How are you?'], ' : ')->build(),
+ 'Hello! : How are you?'
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function page_title_can_have_multiple_parts(): void
+ {
+ $this->assertEquals(
+ PageTitle::create(['Hello!', 'How are you?'])->build(),
+ 'Hello! | How are you?'
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function page_title_returns_correct_element(): void
+ {
+ $this->assertEquals(
+ PageTitle::create(['Hello!'])->build(),
+ 'Hello!'
+ );
+ }
+}
diff --git a/tests/SimpleListTest.php b/tests/SimpleListTest.php
new file mode 100755
index 0000000..68c7e5b
--- /dev/null
+++ b/tests/SimpleListTest.php
@@ -0,0 +1,65 @@
+assertEquals(
+ (string) SimpleList::create('list item'),
+ ''
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function list_can_have_custom_properties(): void
+ {
+ $this->assertEquals(
+ SimpleList::create(
+ 'list item',
+ Anchor::create('hello', 'file://example.pdf')
+ )->props('class some-class', 'id some-id')->build(),
+ ''
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function list_can_be_ordered(): void
+ {
+ $this->assertEquals(
+ SimpleList::create(
+ 'list item'
+ )->ordered()->build(),
+ '- list item
'
+ );
+ }
+
+ /**
+ * @test
+ */
+ public function list_returns_correct_default_element_with_required_parts(): void
+ {
+ $this->assertEquals(
+ SimpleList::create(
+ 'list item'
+ )->build(),
+ ''
+ );
+ }
+}
From 20775c14c7ad55318f0ed9fae53f5dc2087117d3 Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Sun, 30 Jan 2022 14:39:46 -0600
Subject: [PATCH 23/24] prepared for release
---
phpstan.neon | 2 -
src/SimpleList.php | 16 +---
tests/Page.php | 39 ----------
tests/Simple.php | 175 -------------------------------------------
tests/SocialMeta.php | 72 ------------------
5 files changed, 4 insertions(+), 300 deletions(-)
delete mode 100755 tests/Page.php
delete mode 100755 tests/Simple.php
delete mode 100755 tests/SocialMeta.php
diff --git a/phpstan.neon b/phpstan.neon
index bd28db0..5ba97e5 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -4,5 +4,3 @@ parameters:
- src
ignoreErrors:
- '#Call to an undefined static method Eightfold\\HTMLBuilder\\Element::(.*)#'
- - '#Call to an undefined static method Eightfold\\XMLBuilder\\Element::(.*)#'
- - '#Call to an undefined static method Eightfold\\XMLBuilder\\Document::(.*)#'
diff --git a/src/SimpleList.php b/src/SimpleList.php
index f95b8b7..656ffd0 100755
--- a/src/SimpleList.php
+++ b/src/SimpleList.php
@@ -20,19 +20,15 @@ class SimpleList implements Buildable
*/
private array $properties = [];
- /**
- * @var array
- */
- private array $descriptionTerms = [];
-
- public static function create(...$items): SimpleList {
+ public static function create(string|Buildable ...$items): SimpleList
+ {
return new SimpleList(...$items);
}
/**
* @param HtmlElement|string $items [description]
*/
- public function __construct(...$items)
+ public function __construct(string|Buildable ...$items)
{
$this->items = $items;
}
@@ -51,13 +47,9 @@ public function build(): string
$items[] = HtmlElement::li($item);
}
- $elem;
+ $elem = HtmlElement::ul(...$items);
if ($this->type === 'ordered') {
$elem = HtmlElement::ol(...$items);
-
- } else {
- $elem = HtmlElement::ul(...$items);
-
}
if (count($this->properties) > 0) {
diff --git a/tests/Page.php b/tests/Page.php
deleted file mode 100755
index 5af9945..0000000
--- a/tests/Page.php
+++ /dev/null
@@ -1,39 +0,0 @@
-UIKitHello, World!
',
- "string",
- 26.99, // 18.66, // 17.82, // 17.28, // 13.74, // 10.21 // 9.69 // 9.46
- 596
- )->unfoldUsing(
- UIKit::webView(
- "UIKit",
- UIKit::p("Hello, World!")
- )->meta(
- UIKit::meta()->attr("charset utf-8"),
- UIKit::meta()->attr(
- "name viewport",
- "content width=device-width, initial-scale=1"
- )
- )->bodyAttr("class theme")
- );
- }
-}
diff --git a/tests/Simple.php b/tests/Simple.php
deleted file mode 100755
index d551355..0000000
--- a/tests/Simple.php
+++ /dev/null
@@ -1,175 +0,0 @@
-Hello!',
- "string",
- 8.48, // 7.75, // 7.29,
- 573
- )->unfoldUsing(
- UIKit::p("Hello!")
- );
- }
-
- /**
- * @test
- */
- public function page_title()
- {
- AssertEquals::applyWith(
- 'Hello, World!',
- "string",
- 3.31, // 2.31, // 0.91, // 0.71, // 0.6,
- 5 // 4
- )->unfoldUsing(
- UIKit::pageTitle(["Hello, World!"])
- );
-
- AssertEquals::applyWith(
- 'How are you? | Hello, World!',
- "string",
- 2.13, // 1.94, // 1.66, // 0.91, // 0.71, // 0.6,
- 3
- )->unfoldUsing(
- UIKit::pageTitle(["How are you?", "Hello, World!"])
- );
-
- AssertEquals::applyWith(
- 'How are you? : Hello, World!',
- "string",
- 1.95, // 1.82, // 0.91, // 0.71, // 0.6,
- 3
- )->unfoldUsing(
- UIKit::pageTitle(["Hello, World!", "How are you?"], " : ")->reversed()
- );
-
- AssertEquals::applyWith(
- 'How are you? : Hello, World!',
- "string",
- 1.95, // 1.82, // 0.91, // 0.71, // 0.6,
- 3
- )->unfoldUsing(
- UIKit::pageTitle(["Hello, World!", "How are you?"], " : ")->reversed()->stringOnly()
- );
- }
-
- /**
- * @test
- */
- public function anchor()
- {
- // For 0.2.0 was 13.5ms
- AssertEquals::applyWith(
- 'Hello, World!',
- "string",
- 9.69, // 4.49,
- 18
- )->unfoldUsing(
- UIKit::anchor(
- 'Hello, World!',
- 'http://example.com'
- )->unfold()
- );
-
- AssertEquals::applyWith(
- 'Hello, World!',
- "string",
- 5.93, // 5.06, // 4.04, // 1.97, // 1.76, // 1.55, // 1.33,
- 1.09
- )->unfoldUsing(
- UIKit::anchor(
- "Hello, World!",
- "http://example.com"
- )->attr("id hello")->unfold()
- );
- }
-
- /**
- * @test
- */
- public function simple_lists()
- {
- AssertEquals::applyWith(
- '',
- "string",
- 11.32, // 6.34, // 4.93, // 4.69, // 3.8,
- 73 // 72 // 8
- )->unfoldUsing(
- UIKit::listWith(
- "hello",
- "good-bye"
- )->unfold()
- );
-
- AssertEquals::applyWith(
- '- hello
- good-bye
',
- "string",
- 10.88, // 6.43, // 5.99, // 5.6, // 5.11, // 3.65, // 3.59, // 3.56, // 2.23, // 2.19, // 2.1,
- 2.66
- )->unfoldUsing(
- UIKit::listWith(
- "hello",
- "good-bye"
- )->ordered()->unfold()
- );
-
- AssertEquals::applyWith(
- '- hello
- good-bye
',
- "string",
- 8.69, // 6.44, // 3.52, // 3.2,
- 1
- )->unfoldUsing(
- UIKit::listWith(
- "hello",
- "good-bye"
- )->description()->unfold()
- );
-
- AssertEquals::applyWith(
- '- hello
- good-bye
- hello
- good-bye
- good-bye
',
- "string",
- 12.48, // 12.37, // 12.16, // 11.53, // 10.71, // 5.25, // 4.59, // 4.49,
- 1
- )->unfoldUsing(
- UIKit::listWith(
- "hello",
- "good-bye",
- "hello",
- "good-bye",
- "good-bye"
- )->description(1, 3)->unfold()
- );
- }
-
- /**
- * @test
- */
- public function images()
- {
- AssertEquals::applyWith(
- '
',
- "string",
- 5.2, // 4.4, // 3.94, // 3.31, // 2.37, // 2.3, // 2.03,
- 3
- )->unfoldUsing(
- UIKit::image("Alt text", "https://path.to/image.jpg")
- );
- }
-}
diff --git a/tests/SocialMeta.php b/tests/SocialMeta.php
deleted file mode 100755
index 57b799e..0000000
--- a/tests/SocialMeta.php
+++ /dev/null
@@ -1,72 +0,0 @@
-',
- "string",
- 19.43, // 13.62, // 11.17, // 9.8, // 9.51,
- 552
- )->unfoldUsing(
- UIKit::socialMeta(
- "Hello, World!",
- "https://8fold.pro",
- "A short description. LinkedIn would like to have 100+ characters."
- )
- );
-
- AssertEquals::applyWith(
- '',
- "string",
- 41.13, // 22.92, // 21.38, // 20.31, // 18.94, // 18.23, // 16.28, // 9.33, // 8.67, // 8.61, // 6.3, // 5.93, // 5.54,
- 1
- )->unfoldUsing(
- UIKit::socialMeta(
- "Hello, World!",
- "https://8fold.pro",
- "A short description. LinkedIn would like to have 100+ characters.",
- "https://8fold.pro/assets/ui/logo.svg",
- "website",
- "ABCDEFGHIJKLMNOP"
- )
- );
- }
-
- /**
- * @test
- */
- public function twitter()
- {
- AssertEquals::applyWith(
- '',
- "string",
- 55.02, // 25.4, // 23.79, // 18.99, // 10.74, // 8.14, // 7.77, // 6.73, // 6.54,
- 1
- )->unfoldUsing(
- UIKit::socialMeta(
- "Hello, World!",
- "https://8fold.pro",
- "A short description. LinkedIn would like to have 100+ characters.",
- "https://8fold.pro/assets/ui/logo.svg",
- "website",
- "ABCDEFGHIJKLMNOP"
- )->twitter()
- );
- }
-}
From 307c8ab4b3bba7143f24614a25c766c0645520fe Mon Sep 17 00:00:00 2001
From: Josh Bruce
Date: Sun, 30 Jan 2022 14:43:10 -0600
Subject: [PATCH 24/24] update: Tests to use PHP 8.1
---
.github/workflows/php.yml | 33 -----------------------
.github/workflows/{php8.yml => php81.yml} | 2 +-
2 files changed, 1 insertion(+), 34 deletions(-)
delete mode 100644 .github/workflows/php.yml
rename .github/workflows/{php8.yml => php81.yml} (95%)
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
deleted file mode 100644
index e58325f..0000000
--- a/.github/workflows/php.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-name: PHP 7.4
-
-on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Setup PHP Action
- uses: shivammathur/setup-php@2.15.0
- with:
- php-version: '7.4'
-
- - name: Validate composer.json and composer.lock
- run: composer validate
-
- - name: Install dependencies
- run: composer install --prefer-dist --no-progress
-
- - name: Run style check
- run: composer run style
-
- - name: Run static analyzer
- run: composer run stan
-
- - name: Run tests
- run: composer run test
diff --git a/.github/workflows/php8.yml b/.github/workflows/php81.yml
similarity index 95%
rename from .github/workflows/php8.yml
rename to .github/workflows/php81.yml
index cd55c28..30842e9 100644
--- a/.github/workflows/php8.yml
+++ b/.github/workflows/php81.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup PHP Action
uses: shivammathur/setup-php@2.15.0
with:
- php-version: '8.0'
+ php-version: '8.1'
- name: Validate composer.json and composer.lock
run: composer validate