diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ea976b7..4a4f93f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.3, 7.4, 8.0] + php: [8.0, 8.1] dependency-version: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} @@ -29,8 +29,8 @@ jobs: with: php-version: ${{ matrix.php }} extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv - coverage: xdebug tools: composer:v2 + coverage: pcov - name: Install dependencies run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction @@ -40,7 +40,7 @@ jobs: mkdir -p build/logs vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover - - name: Scrutinizer CI - run: | - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --format=php-clover coverage.clover +# - name: Scrutinizer CI +# run: | +# wget https://scrutinizer-ci.com/ocular.phar +# php ocular.phar code-coverage:upload --format=php-clover coverage.clover diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 8a9285f..69d4755 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -22,7 +22,7 @@ checks: tools: external_code_coverage: timeout: 600 - runs: 6 + runs: 4 php_code_sniffer: enabled: true config: diff --git a/LICENSE.md b/LICENSE.md index 6d3d084..d563ba4 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2020 | ARCANEDEV - noCaptcha +Copyright (c) ARCANEDEV - noCaptcha Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 207113b..6e0ce2f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ reCAPTCHA comes in the form of a widget that you can easily add to your blog, fo * Easy setup & configuration. * Well documented & IDE Friendly. * Well tested with maximum code quality. - * Laravel `4.2` to `8.x` are supported. + * Laravel `4.2` to `9.x` are supported. * PSR-7 Support (ServerRequest verification). * Made with :heart: & :coffee:. diff --git a/_docs/0-Home.md b/_docs/0-Home.md deleted file mode 100644 index 44fcd7d..0000000 --- a/_docs/0-Home.md +++ /dev/null @@ -1,28 +0,0 @@ -# noCAPTCHA - -reCAPTCHA is a free service that protects your site from spam and abuse. It uses advanced risk analysis engine to tell humans and bots apart. -With the new API, a significant number of your valid human users will pass the reCAPTCHA challenge without having to solve a CAPTCHA. -reCAPTCHA comes in the form of a widget that you can easily add to your blog, forum, registration form, etc. - -![New Google reCAPTCHA](https://developers.google.com/recaptcha/images/newCaptchaAnchor.gif) - -> Source : [Google RECAPTCHA](https://developers.google.com/recaptcha/) - -### Features - - * Framework agnostic package. - * `v2` (+ Invisible) & `v3` reCaptcha are supported. - * Easy setup & configuration. - * Well documented & IDE Friendly. - * Well tested with maximum code quality. - * Laravel `4.2` to `8.x` are supported. - * PSR-7 Support (ServerRequest verification). - * Made with :heart: & :coffee:. - -## Table of contents - - 1. [Installation and Setup](1-Installation-and-Setup.md) - 2. [Configuration](2-Configuration.md) - 3. [Usage](3-Usage.md) - 4. [Extras](4-Extras.md) - 5. [FAQ](5-FAQ.md) diff --git a/_docs/1-Installation-and-Setup.md b/_docs/1-Installation-and-Setup.md index 8985e1b..d0fdfe0 100644 --- a/_docs/1-Installation-and-Setup.md +++ b/_docs/1-Installation-and-Setup.md @@ -20,6 +20,7 @@ For more details, check the [official documentation](https://developers.google.c | Laravel | noCaptcha | |:-----------------------------|:--------------------------------------------------------------------| +| ![Laravel v9.x][laravel_9_x] | ![noCaptcha v13.x][no_captcha_13_x] | | ![Laravel v8.x][laravel_8_x] | ![noCaptcha v12.x][no_captcha_12_x] | | ![Laravel v7.x][laravel_7_x] | ![noCaptcha v11.x][no_captcha_11_x] | | ![Laravel v6.x][laravel_6_x] | ![noCaptcha v10.x][no_captcha_10_x] | @@ -36,6 +37,7 @@ For more details, check the [official documentation](https://developers.google.c > **Note :** This is a framework-agnostic package, so you can use any version of this package in your PHP project. +[laravel_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "Laravel v9.x" [laravel_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "Laravel v8.x" [laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.x" [laravel_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "Laravel v6.x" @@ -50,6 +52,7 @@ For more details, check the [official documentation](https://developers.google.c [laravel_5_0]: https://img.shields.io/badge/version-5.0-blue.svg?style=flat-square "Laravel v5.0" [laravel_4_2]: https://img.shields.io/badge/version-4.2-blue.svg?style=flat-square "Laravel v4.2" +[no_captcha_13_x]: https://img.shields.io/badge/version-13.x-blue.svg?style=flat-square "noCaptcha v13.x" [no_captcha_12_x]: https://img.shields.io/badge/version-12.x-blue.svg?style=flat-square "noCaptcha v12.x" [no_captcha_11_x]: https://img.shields.io/badge/version-11.x-blue.svg?style=flat-square "noCaptcha v11.x" [no_captcha_10_x]: https://img.shields.io/badge/version-10.x-blue.svg?style=flat-square "noCaptcha v10.x" diff --git a/composer.json b/composer.json index ae2cdd4..e39550e 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "type": "library", "license": "MIT", "require": { - "php": "^7.3|^8.0", + "php": "^8.0", "ext-curl": "*", "ext-json": "*", "arcanedev/php-html": "^6.0", @@ -24,7 +24,7 @@ "require-dev": { "orchestra/testbench": "^7.0", "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^9.3.3" + "phpunit/phpunit": "^9.5.8" }, "autoload": { "psr-4": {