Skip to content

Commit 446110d

Browse files
authored
Merge pull request #21 from Xerkus/feature/php83
Add php 8.3 support, drop php 7.4 and 8.0
2 parents 1bbfc0c + b34d771 commit 446110d

File tree

7 files changed

+375
-435
lines changed

7 files changed

+375
-435
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
laminas-composer-autoloading
2-
=======================
1+
# laminas-composer-autoloading
32

4-
[![Build Status](https://github.com/laminas/laminas-composer-autoloading/workflows/Continuous%20Integration/badge.svg)](https://github.com/laminas/laminas-composer-autoloading/actions?query=workflow%3A"Continuous+Integration")
3+
[![Build Status](https://github.com/laminas/laminas-composer-autoloading/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/laminas/laminas-composer-autoloading/actions/workflows/continuous-integration.yml)
4+
[![type-coverage](https://shepherd.dev/github/laminas/laminas-composer-autoloading/coverage.svg)](https://shepherd.dev/github/laminas/laminas-composer-autoloading)
5+
[![Psalm level](https://shepherd.dev/github/laminas/laminas-composer-autoloading/level.svg)](https://shepherd.dev/github/laminas/laminas-composer-autoloading)
56

67
> ## 🇷🇺 Русским гражданам
78
>
@@ -19,8 +20,7 @@ laminas-composer-autoloading
1920
>
2021
> You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"
2122
22-
Introduction
23-
------------
23+
## Introduction
2424

2525
The `laminas-composer-autoloading` package provides the following commands for use with [laminas-cli](https://docs.laminas.dev/laminas-cli/):
2626

@@ -34,8 +34,7 @@ Both commands also dump the autoloading rules on completion.
3434
> If you were using the v2 series of this component, the package previously provided its own binary, `laminas-composer-autoloading`.
3535
> You will now call `laminas composer:autoload:(disable|enable)` instead.
3636
37-
Installation
38-
------------
37+
## Installation
3938

4039
Run the following `composer` command:
4140

@@ -45,8 +44,7 @@ $ composer require --dev "laminas/laminas-composer-autoloading"
4544

4645
Note the `--dev` flag; this tool is intended for use in development only.
4746

48-
Usage
49-
-----
47+
## Usage
5048

5149
```bash
5250
# Enable the module "Foo" and autodetermine if PSR-0 or PSR-4 autoloading should be generated
@@ -65,8 +63,7 @@ Use `laminas help <command>` to get detailed help about available options and ar
6563
- If unable to determine the autoloading type, the command raises an exception.
6664
- On enabling autoloading, if the `Module` class file for the module is in the module root, it will be moved to the module's `src/` directory (laminas-mvc applications only).
6765

68-
Examples
69-
--------
66+
## Examples
7067

7168
1. Autodetect a module's autoloading type, and generate a Composer autoloading
7269
entry for "Status" module.

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"config": {
2020
"sort-packages": true,
2121
"platform": {
22-
"php": "7.4.99"
22+
"php": "8.1.99"
2323
},
2424
"allow-plugins": {
2525
"dealerdirect/phpcodesniffer-composer-installer": true
@@ -32,7 +32,7 @@
3232
}
3333
},
3434
"require": {
35-
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
35+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
3636
"ext-json": "*",
3737
"laminas/laminas-cli": "^1.4.0",
3838
"webmozart/assert": "^1.10"
@@ -42,7 +42,7 @@
4242
"mikey179/vfsstream": "^1.6.11",
4343
"phpunit/phpunit": "^9.5.27",
4444
"psalm/plugin-phpunit": "^0.18.4",
45-
"vimeo/psalm": "^5.4"
45+
"vimeo/psalm": "^5.16"
4646
},
4747
"autoload": {
4848
"psr-4": {
@@ -61,6 +61,7 @@
6161
],
6262
"cs-check": "phpcs",
6363
"cs-fix": "phpcbf",
64+
"static-analysis": "psalm --shepherd --stats",
6465
"test": "phpunit --colors=always",
6566
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
6667
}

0 commit comments

Comments
 (0)