Skip to content

Commit

Permalink
Merge pull request #21 from Xerkus/feature/php83
Browse files Browse the repository at this point in the history
Add php 8.3 support, drop php 7.4 and 8.0
  • Loading branch information
Xerkus authored Dec 4, 2023
2 parents 1bbfc0c + b34d771 commit 446110d
Show file tree
Hide file tree
Showing 7 changed files with 375 additions and 435 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
laminas-composer-autoloading
=======================
# laminas-composer-autoloading

[![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")
[![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)
[![type-coverage](https://shepherd.dev/github/laminas/laminas-composer-autoloading/coverage.svg)](https://shepherd.dev/github/laminas/laminas-composer-autoloading)
[![Psalm level](https://shepherd.dev/github/laminas/laminas-composer-autoloading/level.svg)](https://shepherd.dev/github/laminas/laminas-composer-autoloading)

> ## 🇷🇺 Русским гражданам
>
Expand All @@ -19,8 +20,7 @@ laminas-composer-autoloading
>
> 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!"
Introduction
------------
## Introduction

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

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

Run the following `composer` command:

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

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

Usage
-----
## Usage

```bash
# Enable the module "Foo" and autodetermine if PSR-0 or PSR-4 autoloading should be generated
Expand All @@ -65,8 +63,7 @@ Use `laminas help <command>` to get detailed help about available options and ar
- If unable to determine the autoloading type, the command raises an exception.
- 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).

Examples
--------
## Examples

1. Autodetect a module's autoloading type, and generate a Composer autoloading
entry for "Status" module.
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "7.4.99"
"php": "8.1.99"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand All @@ -32,7 +32,7 @@
}
},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-json": "*",
"laminas/laminas-cli": "^1.4.0",
"webmozart/assert": "^1.10"
Expand All @@ -42,7 +42,7 @@
"mikey179/vfsstream": "^1.6.11",
"phpunit/phpunit": "^9.5.27",
"psalm/plugin-phpunit": "^0.18.4",
"vimeo/psalm": "^5.4"
"vimeo/psalm": "^5.16"
},
"autoload": {
"psr-4": {
Expand All @@ -61,6 +61,7 @@
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"static-analysis": "psalm --shepherd --stats",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
Expand Down
Loading

0 comments on commit 446110d

Please sign in to comment.