Skip to content

Commit

Permalink
Support Laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwest committed Mar 31, 2023
1 parent 5456eae commit 3fd5980
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1]
laravel: [9.*]
laravel: [9.*, 10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*

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

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<img src="./art/social-image.png" alt=""/>

[![Latest Version on Packagist](https://img.shields.io/packagist/v/rickwest/laravel-wordpress-api.svg?style=flat-square)](https://packagist.org/packages/rickwest/laravel-wordpress-api)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/rickwest/laravel-wordpress-api/run-tests?label=tests)](https://github.com/rickwest/laravel-wordpress-api/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/rickwest/laravel-wordpress-api/Check%20&%20fix%20styling?label=code%20style)](https://github.com/rickwest/laravel-wordpress-api/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/rickwest/laravel-wordpress-api/run-tests.yml?branch=main&label=tests)](https://github.com/rickwest/laravel-wordpress-api/actions/workflows/run-tests.yml)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/rickwest/laravel-wordpress-api/php-cs-fixer.yml?branch=main&label=code%20style)](https://github.com/rickwest/laravel-wordpress-api/actions/workflows/php-cs-fixer.yml)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/rickwest/laravel-wordpress-api/phpstan.yml?branch=main&label=static%20analysis)](https://github.com/rickwest/laravel-wordpress-api/actions/workflows/php-cs-fixer.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/rickwest/laravel-wordpress-api.svg?style=flat-square)](https://packagist.org/packages/rickwest/laravel-wordpress-api)
[![MIT Licensed](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

An unambitious read-only client for the WordPress REST API (v2). This package is the by-product of a side project, having found that I wanted a more expressive, fluent, Laravel-esque way of querying the WordPress API.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"require": {
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9.2",
"illuminate/contracts": "^9.0"
"illuminate/contracts": "^9.0|^10.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
Expand Down

0 comments on commit 3fd5980

Please sign in to comment.