https://github.com/b13/typo3-composerize
Prepare TYPO3 extensions for composer
https://github.com/b13/typo3-composerize
Last synced: 12 months ago
JSON representation
Prepare TYPO3 extensions for composer
- Host: GitHub
- URL: https://github.com/b13/typo3-composerize
- Owner: b13
- License: gpl-2.0
- Created: 2021-04-08T16:32:26.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T15:49:42.000Z (about 5 years ago)
- Last Synced: 2024-05-16T06:10:26.367Z (about 2 years ago)
- Language: PHP
- Size: 85 KB
- Stars: 2
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TYPO3 Composerize
## What does it do?
`typo3-composerize check` - will check extensions for composer compatability. A extension is considered incompatible if either `composer.json`
does not exist or the `composer.json` does not contain an `extension-key` property in `extra -> typo3/cms` section
`typo3-composerize create` - if the `composer.json` does not exist it will send a request containing the contents of `ext_emconf.php` as a JSON payload to TER (POST https://extensions.typo3.org/composerize/) and returns a `composer.json` which will be stored in the extension folder. In case the `extension-key` is missing it will automatically set according to the extensions folder name.
## Usage
Install: `composer require b13/typo3-composerize`
Check if given extensions are compatible:
* `./vendor/bin/typo3-composerize check -d "ext_key1,ext_key2"`
Update given extensions:
* `./vendor/bin/typo3-composerize create -d "ext_key1,ext_key2"`
## Tests & Linting
Install composer including `require-dev`: `composer install --dev`
Run ...
* PHPUnit - `./vendor/bin/phpunit`
* PHPStan - `./vendor/bin/phpstan analyse --no-progress Classes/ Tests/`
* PHP CS Fixer - `./vendor/bin/php-cs-fixer fix -vvv --dry-run --diff`