Skip to content

Commit

Permalink
Merge pull request #18 from ARCANEDEV/develop
Browse files Browse the repository at this point in the history
 Starting Laravel 8 support
  • Loading branch information
arcanedev-maroc authored Sep 10, 2020
2 parents 02d7f31 + d1e8024 commit 578853a
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4]
php: [7.3, 7.4]
dependency-version: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
Expand All @@ -22,7 +22,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-7-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
key: dependencies-laravel-8-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 6
runs: 4
php_code_sniffer:
enabled: true
config:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdo

### Features

* Laravel `5.1` to `7.x` are supported.
* Laravel `5.1` to `8.x` are supported.
* Easy setup & configuration.
* Well tested (100% code coverage with maximum code quality).
* Made with :heart: & :coffee:.
Expand All @@ -43,7 +43,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
- [All Contributors][link-contributors]

[badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-markdown.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%207.x-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%208.x-orange.svg?style=flat-square
[badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/LaravelMarkdown/run-tests?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LaravelMarkdown.svg?style=flat-square
[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/LaravelMarkdown.svg?style=flat-square
Expand Down
2 changes: 1 addition & 1 deletion _docs/0-Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdo

### Features

* Laravel `5.1` to `7.x` are Supported.
* Laravel `5.1` to `8.x` are Supported.
* Easy setup & configuration.
* Well tested (100% code coverage with maximum code quality).
* Made with :heart: & :coffee:.
Expand Down
3 changes: 3 additions & 0 deletions _docs/1-Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Laravel | Laravel Markdown |
|:-----------------------------|:----------------------------------------------------------------------------------------------|
| ![Laravel v7.x][laravel_8_x] | ![Laravel Markdown v5.x][laravel_markdown_5_x] |
| ![Laravel v7.x][laravel_7_x] | ![Laravel Markdown v4.x][laravel_markdown_4_x] |
| ![Laravel v6.x][laravel_6_x] | ![Laravel Markdown v2.x][laravel_markdown_2_x] ![Laravel Markdown v3.x][laravel_markdown_3_x] |
| ![Laravel v5.8][laravel_5_8] | ![Laravel Markdown v1.6.x][laravel_markdown_1_6_x] |
Expand All @@ -16,6 +17,7 @@
| ![Laravel v5.1][laravel_5_1] | ![Laravel Markdown v1.1.x][laravel_markdown_1_1_x] |
| ![Laravel v5.0][laravel_5_0] | ![Laravel Markdown v1.1.x][laravel_markdown_1_1_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"
[laravel_5_8]: https://img.shields.io/badge/version-5.8-blue.svg?style=flat-square "Laravel v5.8"
Expand All @@ -28,6 +30,7 @@
[laravel_5_1]: https://img.shields.io/badge/version-5.1-blue.svg?style=flat-square "Laravel v5.1"
[laravel_5_0]: https://img.shields.io/badge/version-5.0-blue.svg?style=flat-square "Laravel v5.0"

[laravel_markdown_5_x]: https://img.shields.io/badge/version-5.x-blue.svg?style=flat-square "Laravel Markdown v5.x"
[laravel_markdown_4_x]: https://img.shields.io/badge/version-4.x-blue.svg?style=flat-square "Laravel Markdown v4.x"
[laravel_markdown_3_x]: https://img.shields.io/badge/version-3.x-blue.svg?style=flat-square "Laravel Markdown v3.x"
[laravel_markdown_2_x]: https://img.shields.io/badge/version-2.x-blue.svg?style=flat-square "Laravel Markdown v2.x"
Expand Down
20 changes: 15 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^7.2.5",
"arcanedev/support": "^7.0",
"league/commonmark": "^1.3"
"php": "^7.3",
"arcanedev/support": "^8.0",
"league/commonmark": "^1.3"
},
"require-dev": {
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^8.5|^9.0"
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
Expand All @@ -33,14 +33,24 @@
"Arcanedev\\LaravelMarkdown\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit",
"coverage": "phpunit --coverage-html build/coverage/html"
},
"extra": {
"branch-alias": {
"dev-develop": "5.x-dev"
},
"laravel": {
"providers": [
"Arcanedev\\LaravelMarkdown\\LaravelMarkdownServiceProvider",
"Arcanedev\\LaravelMarkdown\\Providers\\DeferredServicesProvider"
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
28 changes: 12 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</include>
<report>
<clover outputFile="build/coverage/clover.xml"/>
<html outputDirectory="build/coverage/html"/>
<text outputFile="build/coverage/coverage.txt" showOnlySummary="true"/>
</report>
</coverage>
<php>
<env name="APP_ENV" value="testing"/>
</php>
<logging>
<log type="coverage-clover" target="build/coverage/clover.xml"/>
<log type="coverage-text" target="build/coverage/coverage.txt"/>
<log type="coverage-html" target="build/coverage/html"/>
</logging>
</phpunit>
5 changes: 2 additions & 3 deletions src/Contracts/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
namespace Arcanedev\LaravelMarkdown\Contracts;

/**
* Interface Markdown
* Interface Markdown
*
* @package Arcanedev\LaravelMarkdown\Contracts
* @author ARCANEDEV <[email protected]>
* @author ARCANEDEV <[email protected]>
*/
interface Markdown
{
Expand Down
1 change: 0 additions & 1 deletion src/Contracts/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/**
* Interface Parser
*
* @package Arcanedev\LaravelMarkdown\Contracts
* @author ARCANEDEV <[email protected]>
*/
interface Parser
Expand Down
1 change: 0 additions & 1 deletion src/Exceptions/ParserBufferingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/**
* Class ParserBufferingException
*
* @package Arcanedev\LaravelMarkdown\Exceptions
* @author ARCANEDEV <[email protected]>
*/
class ParserBufferingException extends Exception
Expand Down
1 change: 0 additions & 1 deletion src/LaravelMarkdownServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/**
* Class LaravelMarkdownServiceProvider
*
* @package Arcanedev\LaravelMarkdown
* @author ARCANEDEV <[email protected]>
*/
class LaravelMarkdownServiceProvider extends PackageServiceProvider
Expand Down
1 change: 0 additions & 1 deletion src/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/**
* Class Markdown
*
* @package Arcanedev\LaravelMarkdown
* @author ARCANEDEV <[email protected]>
*
* @method \Illuminate\Support\HtmlString parse(string $text)
Expand Down
1 change: 0 additions & 1 deletion src/Parsers/AbstractParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/**
* Class AbstractParser
*
* @package Arcanedev\LaravelMarkdown\Parsers
* @author ARCANEDEV <[email protected]>
*/
abstract class AbstractParser implements Parser
Expand Down
1 change: 0 additions & 1 deletion src/Parsers/CommonMarkParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/**
* Class CommonMarkParser
*
* @package Arcanedev\LaravelMarkdown
* @author ARCANEDEV <[email protected]>
*/
class CommonMarkParser extends AbstractParser
Expand Down
1 change: 0 additions & 1 deletion src/Providers/DeferredServicesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
/**
* Class DeferredServicesProvider
*
* @package Arcanedev\LaravelMarkdown\Providers
* @author ARCANEDEV <[email protected]>
*/
class DeferredServicesProvider extends ServiceProvider implements DeferrableProvider
Expand Down
1 change: 0 additions & 1 deletion tests/LaravelMarkdownServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/**
* Class LaravelMarkdownServiceProviderTest
*
* @package Arcanedev\LaravelMarkdown\Tests
* @author ARCANEDEV <[email protected]>
*/
class LaravelMarkdownServiceProviderTest extends TestCase
Expand Down
3 changes: 1 addition & 2 deletions tests/MarkdownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
use Illuminate\Support\HtmlString;

/**
* Class MarkdownParserTest
* Class MarkdownTest
*
* @package Arcanedev\LaravelMarkdown\Tests
* @author ARCANEDEV <[email protected]>
*/
class MarkdownTest extends TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Providers/DeferredServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/**
* Class DeferredServiceProviderTest
*
* @package Arcanedev\LaravelMarkdown\Tests\Providers
* @author ARCANEDEV <[email protected]>
*/
class DeferredServiceProviderTest extends TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/**
* Class TestCase
*
* @package Arcanedev\LaravelMarkdown\Tests
* @author ARCANEDEV <[email protected]>
*/
abstract class TestCase extends BaseTestCase
Expand Down

0 comments on commit 578853a

Please sign in to comment.