Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/.travis.yml export-Ignore
/pint.json export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on:
push:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2

- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress
composer require --dev laravel/pint --no-interaction --no-progress

- name: Lint with Pint
run: vendor/bin/pint --test
102 changes: 0 additions & 102 deletions .github/workflows/tests-php7.yml

This file was deleted.

91 changes: 58 additions & 33 deletions .github/workflows/tests-php8.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests php 8.x
name: Tests

on:
push:
Expand All @@ -11,66 +11,90 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.4, 8.3, 8.2, 8.1, 8.0]
laravel: [^12.0, ^11.0, ^10.0, ^9.0, ^8.0, ^7.0, ^6.0]
php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0]
laravel: ['6.*', '7.*', '8.*', '9.*', '10.*', '11.*', '12.*', '13.*']
include:
- laravel: ^6.0
testbench: ^4.0
- laravel: ^7.0
testbench: ^5.0
- laravel: ^8.0
- laravel: 6.*
testbench: 4.*
phpunit: ^9.3
- laravel: 7.*
testbench: 5.*
phpunit: ^9.3
- laravel: 8.*
testbench: ^6.0
- laravel: ^9.0
phpunit: ^9.3
- laravel: 9.*
testbench: ^7.0
- laravel: ^10.0
phpunit: ^9.5.10
- laravel: 10.*
testbench: ^8.0
- laravel: ^11.0
phpunit: ^10.5
- laravel: 11.*
testbench: ^9.0
- laravel: "12.0"
phpunit: ^11.5.3
- laravel: 12.*
testbench: ^10.0
phpunit: ^11.5.3
- laravel: 13.*
testbench: ^11.0
phpunit: ^12.5.12
exclude:
- laravel: ^6.0
- laravel: 6.*
php: 8.1
- laravel: ^6.0
- laravel: 6.*
php: 8.2
- laravel: ^6.0
- laravel: 6.*
php: 8.3
- laravel: ^6.0
- laravel: 6.*
php: 8.4
- laravel: ^7.0
- laravel: 6.*
php: 8.5
- laravel: 7.*
php: 8.1
- laravel: ^7.0
- laravel: 7.*
php: 8.2
- laravel: ^7.0
- laravel: 7.*
php: 8.3
- laravel: ^7.0
- laravel: 7.*
php: 8.4
- laravel: ^8.0
- laravel: 7.*
php: 8.5
- laravel: 8.*
php: 8.2
- laravel: ^8.0
- laravel: 8.*
php: 8.3
- laravel: ^8.0
- laravel: 8.*
php: 8.5
- laravel: 8.*
php: 8.4
- laravel: ^9.0
- laravel: 9.*
php: 8.3
- laravel: ^9.0
- laravel: 9.*
php: 8.4
- laravel: ^10.0
- laravel: 9.*
php: 8.5
- laravel: 10.*
php: 8.0
- laravel: ^11.0
- laravel: 11.*
php: 8.0
- laravel: ^11.0
- laravel: 11.*
php: 8.1
- laravel: "12.0"
- laravel: 12.*
php: 8.0
- laravel: "12.0"
- laravel: 12.*
php: 8.1
- laravel: 13.*
php: 8.2
- laravel: 13.*
php: 8.1
- laravel: 13.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand All @@ -94,7 +118,7 @@ jobs:
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: $p{{ matrix.php }}-l{{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -103,7 +127,8 @@ jobs:
- name: Install dependencies
run: |
composer config --no-plugins allow-plugins.kylekatarnls/update-helper true
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update
composer require "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --dev --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress

- name: Execute tests
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ build
composer.lock
vendor
phpunit.xml
.phpunit.result.cache
.phpunit.cache
7 changes: 0 additions & 7 deletions .styleci.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `artisan-cloudflare` will be documented in this file.

## 2.9.0 - 2026-06-03

- Laravel 13.x Compatibility [#28](https://github.com/sebdesign/artisan-cloudflare/pull/28)
- Drop support for PHP 7.x
- Drop support for Laravel 5.x

## 2.8.0 - 2025-02-20

- Laravel 12.x Compatibility [#27](https://github.com/sebdesign/artisan-cloudflare/pull/27)
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@

[![Latest Version on Packagist](https://img.shields.io/packagist/v/sebdesign/artisan-cloudflare.svg?style=flat-square)](https://packagist.org/packages/sebdesign/artisan-cloudflare)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/github/workflow/status/sebdesign/artisan-cloudflare/Tests/master?style=flat-square)](https://github.com/sebdesign/artisan-cloudflare/actions)
[![Build Status](https://img.shields.io/github/actions/workflow/status/sebdesign/artisan-cloudflare/tests.yml?branch=master&style=flat-square)](https://github.com/sebdesign/artisan-cloudflare/actions)
[![Quality Score](https://img.shields.io/scrutinizer/g/sebdesign/artisan-cloudflare.svg?style=flat-square)](https://scrutinizer-ci.com/g/sebdesign/artisan-cloudflare)
[![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/sebdesign/artisan-cloudflare.svg?style=flat-square)](https://scrutinizer-ci.com/g/sebdesign/artisan-cloudflare)
[![StyleCI](https://styleci.io/repos/74228812/shield?style=flat-square)](https://styleci.io/repos/74228812)

Laravel artisan commands for interacting with the CloudFlare API.

![artisan-cloudflare.png](https://s13.postimg.cc/6cukzjf53/artisan-cloudflare.png)

## Installation

You can install the package via composer. This package requires Laravel 5.5 or higher.
You can install the package via composer. This package requires Laravel 6.0 or higher.

``` bash
composer require sebdesign/artisan-cloudflare
```

Since version 5.5, Laravel uses package auto-discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery or you are using an older version, add the service provider in `config/app.php`.
Since version 5.5, Laravel uses package auto-discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery, add the service provider in `config/app.php`.

``` php
<?php
Expand Down
16 changes: 9 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
}
],
"require": {
"php": "^7.2.5|^8.0",
"php": "^8.0",
"guzzlehttp/guzzle": "^7.0",
"illuminate/console": "^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"
"illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0"
},
"require-dev": {
"mockery/mockery": "^0.9|^1.0",
"orchestra/testbench": "^3.5|^4.0|^5.0|^6.0|^8.0|^9.0|^10.0",
"phpunit/phpunit": "^7.0|^8.5|^9.3|^10.5|^11.5.3"
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"phpunit/phpunit": "^9.3|^10.5|^11.5.3|^12.5.12"
},
"autoload": {
"psr-4": {
Expand All @@ -40,7 +40,9 @@
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"lint": "vendor/bin/pint --test",
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true
Expand All @@ -52,4 +54,4 @@
"providers": "Sebdesign\\ArtisanCloudflare\\ServiceProvider"
}
}
}
}
4 changes: 4 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"preset": "laravel",
"rules": {}
}
Loading