Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
- "8.3"
- "8.4"
- "8.5"
- "8.6"

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -35,7 +36,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v3
uses: actions/cache@v6
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -48,6 +49,6 @@ jobs:
run: vendor/bin/phpunit --colors=always --coverage-clover clover.xml

- name: Send code coverage report to Codecov.io
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
name: Run PHPStan checks

jobs:
mutation:
static-analysis:
name: PHPStan ${{ matrix.php }}-${{ matrix.os }}

runs-on: ${{ matrix.os }}
Expand All @@ -18,24 +18,25 @@ jobs:
- "8.3"
- "8.4"
- "8.5"
- "8.6"

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: pcov
coverage: none
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
tools: composer:v2, cs2pr

- name: Determine composer cache directory
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
composer.lock
.phpunit.result.cache
.phpcs-cache
.phpunit.cache
3 changes: 3 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"ignore_php_platform_requirements": {
"8.6": true
},
"backwardCompatibilityCheck": true
}
290 changes: 290 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
# Changelog

All notable changes to this project are documented in this file, newest first.

## 3.0.0 - TBD

### Added

- PHP 8.6 support.
- "Next steps" are printed after `make command`, `make middleware` and `make entity`, not only after `make module`, and every message is kept when several components are created in one run.
- `Input::isExhausted()` to detect the end of input.
- `.gitattributes`, so the Composer package no longer ships tests, docs and tooling files.
- Upgrade guide in the documentation.

### Changed

- PHPUnit 12 and PHPStan level 8.
- Names must start with a letter and must not be PHP reserved words, with or without the component suffix.
- A name that is only the component suffix (for example `Entity`) is kept as the class name.
- `bin/dot-maker` exits with code 1 when the command fails.
- `make form` in an API project fails before asking for a module.
- Generated arrays are aligned to the Laminas Coding Standard.
- Generated `GetEdit...FormHandler` and `GetDelete...FormHandler` pass the entity to the template under its camelCase name, like the POST handlers.
- `Context::getRootNamespace()` and `Context::getProjectType()` return `string`, and `Context` requires a non-Core namespace under `autoload.psr-4`.
- `FileInterface::create()` returns `File` instead of `?File`.
- `Module::getMessages()` returns the messages grouped by priority.

### Deprecated

- Nothing.

### Removed

- `Entity::getNumericIdentifierTraitFqcn()` and `FileSystem::coreModule()`, which nothing called.

### Fixed

- Infinite loop when the input ends at the "Existing module name" prompt.
- Wrong console name for Commands whose name contains "Command" before the end.
- Generated files that failed `php -l` for names starting with a digit or matching a PHP reserved word.
- Empty class name (`.php` file) when the name was only the component suffix.
- `TypeError` for an invalid `composer.json` or `config/autoload/maker.local.php`.
- `File::create('')` reported a failure after writing the file.
- `TypeError` when writing to a closed output stream.

### Security

- Nothing.

## 2.1.0 - 2026-10-13

### Added

- `operationId` in generated OpenAPI operations (#46).

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- PHP 8.2 support (#47).

### Fixed

- Nothing.

### Security

- Nothing.

## 2.0.0 - 2025-12-15

### Added

- Nothing.

### Changed

- Generated code adapted for Headless Platform 7 (#44, #45).

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

### Security

- Nothing.

## 1.1.0 - 2025-10-29

### Added

- PHP 8.4 and 8.5 support (#42).

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- PHP 8.1 support (#42).

### Fixed

- Invalid array type assignations reported by PHPStan (#40).

### Security

- Nothing.

## 1.0.5 - 2025-09-25

### Added

- Link to the tutorial video in the documentation (#38).

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

### Security

- Nothing.

## 1.0.4 - 2025-09-10

### Added

- Nothing.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Installation instructions in the documentation (#36).

### Security

- Nothing.

## 1.0.3 - 2025-09-09

### Added

- Nothing.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Package installation command (#34).

### Security

- Nothing.

## 1.0.2 - 2025-09-02

### Added

- Nothing.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Resources in routes must be singular (#19).
- InputFilters initialised via `init` in Admin and via the constructor in API (#21).
- Form factory used in ConfigProvider (#23).
- Handler naming pattern for non-API projects (#25).
- Invalid `CsrfInput` name in non-API InputFilters (#27).
- Template naming pattern (#28).
- Route name used in Form action attributes (#29).

### Security

- Nothing.

## 1.0.1 - 2025-08-22

### Added

- Nothing.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Collection path generated in RoutesDelegator (#8).
- Invalid property initialisations (#10).
- `(Core)ConfigProvider` and Middleware related messages after `make module` (#12).

### Security

- Nothing.

## 1.0.0 - 2025-08-21

### Added

- Initial release.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

### Security

- Nothing.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ Documentation is available at: https://docs.dotkernel.org/dot-maker/.
## Badges

![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-maker)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-maker/2.1.0)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-maker/3.0.0)

[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-maker)](https://github.com/dotkernel/dot-maker/issues)
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-maker)](https://github.com/dotkernel/dot-maker/network)
[![GitHub stars](https://img.shields.io/github/stars/dotkernel/dot-maker)](https://github.com/dotkernel/dot-maker/stargazers)
[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-maker)](https://github.com/dotkernel/dot-maker/blob/2.0/LICENSE)
[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-maker)](https://github.com/dotkernel/dot-maker/blob/3.0/LICENSE)

[![Build Static](https://github.com/dotkernel/dot-maker/actions/workflows/continuous-integration.yml/badge.svg?branch=2.0)](https://github.com/dotkernel/dot-maker/actions/workflows/continuous-integration.yml)
[![Build Static](https://github.com/dotkernel/dot-maker/actions/workflows/continuous-integration.yml/badge.svg?branch=3.0)](https://github.com/dotkernel/dot-maker/actions/workflows/continuous-integration.yml)
[![codecov](https://codecov.io/gh/dotkernel/dot-maker/graph/badge.svg?token=KT9UA402B4)](https://codecov.io/gh/dotkernel/dot-maker)
[![PHPStan](https://github.com/dotkernel/dot-maker/actions/workflows/static-analysis.yml/badge.svg?branch=2.0)](https://github.com/dotkernel/dot-maker/actions/workflows/static-analysis.yml)
[![PHPStan](https://github.com/dotkernel/dot-maker/actions/workflows/static-analysis.yml/badge.svg?branch=3.0)](https://github.com/dotkernel/dot-maker/actions/workflows/static-analysis.yml)

## Installation

Expand Down
Loading
Loading