-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from arhimede/master
Added blog article related to maintenance status of packages
- Loading branch information
Showing
10 changed files
with
136 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
data/blog/2024/2024-07-29-current-maintenance-status-of-laminas-mezzio-packages.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
id: 2024-07-29-current-maintenance-status-of-laminas-mezzio-packages | ||
author: julian | ||
title: 'Current Maintenance Status of Laminas & Mezzio Packages' | ||
draft: false | ||
public: true | ||
created: '2024-07-29T11:00:00-01:00' | ||
updated: '2024-07-29T11:00:00-01:00' | ||
tags: | ||
- maintenance status | ||
--- | ||
|
||
The Laminas Project has created a large number of packages to serve the needs of the PHP community. | ||
But what happens when you need to make sure that the package you want to use in your application is being actively | ||
maintained? | ||
Sure, you can check each package manually, but the most useful thing would be a full overview of this vital | ||
information. | ||
|
||
<!--- EXTENDED --> | ||
|
||
### Laminas and Mezzio packages maintenance status at a glance | ||
|
||
The page below intends to provide exactly that - a fast, accessible way to examine every package at a glance. It | ||
contains columns for each subproject: Mezzio, Laminas Components, Laminas MVC and API Tools. The page automatically | ||
refreshes the package status daily, is sorted alphabetically and is publicly available. | ||
|
||
[**Current Maintenance Status of Laminas & Mezzio Packages**](https://getlaminas.org/packages-maintenance-status/) | ||
|
||
### The best way to stay up-to-date | ||
|
||
Laminas and Mezzio packages are constantly in motion. | ||
This page allows you to regularly check the packages you chose for your project and make sure they are still reliable. | ||
If the status of a package changes from `active` to `maintenance-only`, `security-only` or is discontinued, you can | ||
quickly see it and take action. | ||
The handy link to the relevant Technical Steering Committee minute file details the reason for the status change and a | ||
recommended solution for moving forward. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Handler; | ||
|
||
use Laminas\Diactoros\Response\JsonResponse; | ||
use Psr\Http\Message\ResponseInterface; | ||
use Psr\Http\Message\ServerRequestInterface; | ||
use Psr\Http\Server\RequestHandlerInterface; | ||
|
||
use const JSON_PRETTY_PRINT; | ||
|
||
class MaintenanceStatusHandler implements RequestHandlerInterface | ||
{ | ||
public function __construct(private array $repositoryData) | ||
{ | ||
} | ||
|
||
public function handle(ServerRequestInterface $request): ResponseInterface | ||
{ | ||
return new JsonResponse( | ||
data: $this->repositoryData, | ||
encodingOptions: JsonResponse::DEFAULT_JSON_FLAGS | JSON_PRETTY_PRINT | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Handler; | ||
|
||
use Psr\Container\ContainerInterface; | ||
|
||
use function assert; | ||
use function file_get_contents; | ||
use function getcwd; | ||
use function is_array; | ||
use function json_decode; | ||
use function sprintf; | ||
|
||
class MaintenanceStatusHandlerFactory | ||
{ | ||
public function __invoke(ContainerInterface $container): MaintenanceStatusHandler | ||
{ | ||
$rawData = file_get_contents( | ||
sprintf( | ||
'%s/%s', | ||
getcwd() . MaintenanceOverviewHandler::CUSTOM_PROPERTIES_DIRECTORY, | ||
MaintenanceOverviewHandler::CUSTOM_PROPERTIES_FILE | ||
) | ||
); | ||
|
||
$repositoryData = json_decode($rawData, true); | ||
assert(is_array($repositoryData)); | ||
|
||
return new MaintenanceStatusHandler($repositoryData); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters