From 5d89cb458c046d7749b671cd373a0bb70f079f67 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Fri, 31 Mar 2023 00:46:58 +0700 Subject: [PATCH] [add] new dependencies, PHP 8 support --- .gitignore | 1 + README.md | 7 +- composer.json | 17 +++- composer.lock | 258 +++++++++++++++++--------------------------------- package.json | 2 +- 5 files changed, 107 insertions(+), 178 deletions(-) diff --git a/.gitignore b/.gitignore index e251b11..c4ab1b3 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ vendor/ #node.js node_modules/ +*.phar diff --git a/README.md b/README.md index 99e4fba..6dbd3d8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +![PHP version icon](https://img.shields.io/static/v1?label=PHP&message=7.3%20-%208.0&color=blue) +![License icon](https://img.shields.io/badge/License-GPL--3-green) +![Platfrom icon](https://img.shields.io/badge/Platform-Window%2C%20Linux-green) + # The Idea of Backlink Checker It's a casual task to work with backlinks in SEO. There are several tools to check or search for backlinks. Unlike other tools, we do not scan all possible websites in Internet and does not analyze Google Search results in order to find backlinks to your website. We only validate a list of backlinks that you already know. You receive a list of backlinks using one of the following ways: @@ -134,7 +138,8 @@ $base64_image = "data:image/jpeg;base64," . base64_encode($response->getScreensh Examples are available in a dedicated project on [GitHub](https://github.com/rvalitov/backlink-checker-php-demo). # System Requirements -We use dependencies, therefore we need PHP 7.2 and later. +We use dependencies, therefore we need PHP 7.3 and later. +PHP 8.0 supported. PHP 8.1 not supported. # Feedback Your feedback is very appreciated. If you want to see new features in this project, please, post your ideas and feature requests in the [issue tracker](https://github.com/rvalitov/backlink-checker-php/issues). diff --git a/composer.json b/composer.json index bfe2df0..c94ba08 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,8 @@ { "name": "rvalitov/backlink-checker-php", "description": "Validates a predefined list of backlinks on remote websites that they exist and are correct (for SEO). Simple and Javascript-enabled web engines are used for scraping.", - "minimum-stability": "stable", + "minimum-stability": "dev", + "prefer-stable": true, "license": "GPL-3.0-or-later", "homepage": "https://github.com/rvalitov/backlink-checker-php", "authors": [ @@ -16,12 +17,22 @@ "source": "https://github.com/rvalitov/backlink-checker-php" }, "require": { - "php": ">=7.4.0", + "php": "^7.3 || ^8.0", "kub-at/php-simple-html-dom-parser": "^1.9.1", "guzzlehttp/guzzle": "7.*", - "nesk/puphpeteer": "2.*", + "nesk/puphpeteer": "dev-zoon", "ext-json": "*" }, + "repositories": [ + { + "type": "git", + "url": "https://github.com/zoonru/puphpeteer.git" + }, + { + "type": "git", + "url": "https://github.com/zoonru/rialto.git" + } + ], "autoload": { "psr-4": { "Valitov\\": "src/" diff --git a/composer.lock b/composer.lock index 44a016d..37ccaa1 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": "a2ea617452dc13e2de5b1cdfc0c064b1", + "content-hash": "01d7843842205a753a43fbeb2c0336a8", "packages": [ { "name": "clue/socket-raw", @@ -458,36 +458,48 @@ }, { "name": "nesk/puphpeteer", - "version": "2.0.0", + "version": "dev-zoon", "source": { "type": "git", - "url": "https://github.com/rialto-php/puphpeteer.git", - "reference": "0d51359c98cb6500edc033260be5944b23cbf573" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/rialto-php/puphpeteer/zipball/0d51359c98cb6500edc033260be5944b23cbf573", - "reference": "0d51359c98cb6500edc033260be5944b23cbf573", - "shasum": "" + "url": "https://github.com/zoonru/puphpeteer.git", + "reference": "163955fe30d00aa8c67f65be823a074396879347" }, "require": { - "nesk/rialto": "^1.2.0", - "php": ">=7.3", - "psr/log": "^1.0", + "ext-json": "*", + "nesk/rialto": "dev-zoon", + "php": "^7.3 || ^8.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", "vierbergenlars/php-semver": "^3.0.2" }, "require-dev": { - "monolog/monolog": "^2.0", + "monolog/monolog": "^2.0|^3.0", "phpunit/phpunit": "^9.0", - "symfony/process": "^4.0|^5.0" + "symfony/console": "^4.0|^5.0|^6.0", + "symfony/process": "^4.0|^5.0|^6.0" }, + "default-branch": true, "type": "library", "autoload": { "psr-4": { "Nesk\\Puphpeteer\\": "src/" } }, - "notification-url": "https://packagist.org/downloads/", + "autoload-dev": { + "psr-4": { + "Nesk\\Puphpeteer\\Tests\\": "tests/" + } + }, + "scripts": { + "post-install-cmd": [ + "npm install" + ], + "test": [ + "./vendor/bin/phpunit" + ], + "update-docs": [ + "php bin/console doc:generate" + ] + }, "license": [ "MIT" ], @@ -507,62 +519,49 @@ "testing", "web" ], - "support": { - "issues": "https://github.com/rialto-php/puphpeteer/issues", - "source": "https://github.com/rialto-php/puphpeteer/tree/2.0.0" - }, - "funding": [ - { - "url": "https://www.paypal.me/johannpardanaud", - "type": "custom" - }, - { - "url": "https://github.com/nesk", - "type": "github" - }, - { - "url": "https://github.com/spekulatius", - "type": "github" - } - ], - "abandoned": true, - "time": "2020-12-01T11:49:36+00:00" + "time": "2022-08-16T11:52:01+00:00" }, { "name": "nesk/rialto", - "version": "1.4.0", + "version": "dev-zoon", "source": { "type": "git", - "url": "https://github.com/nesk/rialto.git", - "reference": "a3db615d845cca42135fa1e271b323ffe904b83c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nesk/rialto/zipball/a3db615d845cca42135fa1e271b323ffe904b83c", - "reference": "a3db615d845cca42135fa1e271b323ffe904b83c", - "shasum": "" + "url": "https://github.com/zoonru/rialto.git", + "reference": "c6ffad796941eaaf166c089f116a762f1c79d2e4" }, "require": { "clue/socket-raw": "^1.2", - "php": ">=7.1", - "psr/log": "^1.0", - "symfony/process": "^3.3|^4.0|^5.0" + "php": "^7.2 || ^8.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/process": "^3.3 || ^4.0 || ^5.0 || ^6.0" }, "require-dev": { - "codedungeon/phpunit-result-printer": ">=0.6 <1.0", - "monolog/monolog": "^1.23", - "phpunit/phpunit": "^6.5|^7.0" + "monolog/monolog": "^1.0 || ^2.0 || ^3.0", + "phpunit/phpunit": "^8.0 || ^9.0" }, "suggest": { "ext-weakref": "Required to run all the tests" }, + "default-branch": true, "type": "library", "autoload": { "psr-4": { "Nesk\\Rialto\\": "src/" } }, - "notification-url": "https://packagist.org/downloads/", + "autoload-dev": { + "psr-4": { + "Nesk\\Rialto\\Tests\\": "tests/" + } + }, + "scripts": { + "post-install-cmd": [ + "npm install" + ], + "test": [ + "./vendor/bin/phpunit" + ] + }, "license": [ "MIT" ], @@ -574,19 +573,14 @@ ], "description": "Manage Node resources from PHP", "keywords": [ - "Bridge", - "Socket", + "bridge", "communication", "node", "php", + "socket", "wrapper" ], - "support": { - "issues": "https://github.com/nesk/rialto/issues", - "source": "https://github.com/nesk/rialto/tree/1.4.0" - }, - "abandoned": true, - "time": "2020-04-12T13:11:08+00:00" + "time": "2022-08-16T11:54:56+00:00" }, { "name": "psr/http-client", @@ -750,30 +744,30 @@ }, { "name": "psr/log", - "version": "1.1.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "3.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -794,9 +788,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" + "source": "https://github.com/php-fig/log/tree/3.0.0" }, - "time": "2021-05-03T11:20:27+00:00" + "time": "2021-07-14T16:46:02+00:00" }, { "name": "ralouphie/getallheaders", @@ -844,25 +838,25 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.2", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -891,7 +885,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2" }, "funding": [ { @@ -907,108 +901,24 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.27.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "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.27.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": "2022-11-03T14:55:06+00:00" + "time": "2022-01-02T09:55:41+00:00" }, { "name": "symfony/process", - "version": "v5.4.21", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd" + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", + "url": "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4", + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.0.2" }, "type": "library", "autoload": { @@ -1036,7 +946,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.21" + "source": "https://github.com/symfony/process/tree/v6.0.19" }, "funding": [ { @@ -1052,7 +962,7 @@ "type": "tidelift" } ], - "time": "2023-02-21T19:46:44+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "vierbergenlars/php-semver", @@ -1113,14 +1023,16 @@ ], "packages-dev": [], "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, + "minimum-stability": "dev", + "stability-flags": { + "nesk/puphpeteer": 20 + }, + "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=7.4.0", + "php": "^7.3 || ^8.0", "ext-json": "*" }, "platform-dev": [], - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.3.0" } diff --git a/package.json b/package.json index 49f62e2..9c1bf87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backlink-checker-php", - "version": "1.1.0", + "version": "2.0.0", "description": "Validates a predefined list of backlinks on remote websites that they exist and are correct (for SEO). Simple and Javascript-enabled web engines are used for scraping.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"