Skip to content

Commit

Permalink
Merge pull request #60 from kiwilan/develop
Browse files Browse the repository at this point in the history
v2.0.0
  • Loading branch information
ewilan-riviere authored Mar 16, 2024
2 parents 1ae5270 + 73c4a52 commit 256872e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
php: [8.2, 8.3]
node: [18]
stability: [prefer-stable]
services:
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,31 @@ If you want to use some helpers with [Inertia](https://inertiajs.com/), you can

## Installation

This version requires [PHP](https://www.php.net/) `8.2+` and supports [Laravel](https://laravel.com/) 11.

> [!WARNING]
>
> PHP 8.1+ is required and Laravel 9+ is recommended.
> Laravel 11 dropped [Doctrine DBAL](https://laravel.com/docs/11.x/upgrade#doctrine-dbal-removal). For previous Laravel versions, you can use `1.12.03` version.
| Version | L9 | L10 | L11 |
| -------------------------------------------------------------------------------- | ------------------ | ------------------ | ------------------ |
| [1.12.03](https://packagist.org/packages/kiwilan/typescriptable-laravel#1.12.03) | :white_check_mark: | :white_check_mark: | :x: |
| [2.0.0](https://packagist.org/packages/kiwilan/typescriptable-laravel#2.0.0) | :x: | :x: | :white_check_mark: |

You can install the package via composer:

With **Laravel v11+** and PHP v`8.2`

```bash
composer require kiwilan/typescriptable-laravel
```

With **Laravel v9-10** and PHP v`8.1`

```
composer require kiwilan/typescriptable-laravel:1.12.03
```

### About TypeScript

If you want to use `.d.ts` files, you need to use TypeScript in your Laravel project, you have to create a `tsconfig.json` file and add `.d.ts` paths in `compilerOptions.types`:
Expand Down Expand Up @@ -269,5 +284,5 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[tests-href]: https://github.com/kiwilan/typescriptable-laravel/actions/workflows/run-tests.yml
[codecov-src]: https://codecov.io/gh/kiwilan/typescriptable-laravel/branch/main/graph/badge.svg?token=P9XIK2KV9G
[codecov-href]: https://codecov.io/gh/kiwilan/typescriptable-laravel
[laravel-src]: https://img.shields.io/static/v1?label=Laravel&message=v9&style=flat-square&colorA=18181B&colorB=FF2D20
[laravel-src]: https://img.shields.io/static/v1?label=Laravel&message=v9-11&style=flat-square&colorA=18181B&colorB=FF2D20
[laravel-href]: https://laravel.com
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/typescriptable-laravel",
"description": "PHP package for Laravel to type Eloquent models, routes, Spatie Settings with autogenerated TypeScript. If you want to use some helpers with Inertia, you can install associated NPM package.",
"version": "1.12.03",
"version": "2.0.0",
"keywords": [
"kiwilan",
"laravel",
Expand All @@ -25,18 +25,17 @@
}
],
"require": {
"php": "^8.1",
"doctrine/dbal": "^3.5",
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0",
"illuminate/database": "^9.0 || ^10.0 || ^11.0",
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
"php": "^8.2",
"illuminate/contracts": "^11.0",
"illuminate/database": "^11.0",
"illuminate/support": "^11.0",
"spatie/laravel-package-tools": "^1.16.3"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.6.0 || ^8.0",
"nunomaduro/collision": "^8.0",
"larastan/larastan": "^2.8.0",
"orchestra/testbench": "^8.5 || ^9.0",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.8.1",
"pestphp/pest-plugin-laravel": "*",
"phpstan/extension-installer": "^1.1",
Expand Down

0 comments on commit 256872e

Please sign in to comment.