https://blog.astrid-guenther.de/der-weg-zu-joomlae4-erweiterungen/
Boilerplate files for Joomla! 4 extensions.
You can find the Tutorial Sample Files in the folder Tutorial :)
A installable zip file of the last version you can find in the release tab. So you do not need to clone this repo.
The boilerplates are in the folder src
. They can be installed
as-is using the Extension Manager.
However, the component, module and plugin will be called Foo :)
The easiest way is to copy
- the files in administrator folder in the administrator folder of your Joomla installation.
- the files in components folder in the components folder of your Joomla installation.
- the files in media folder in the media folder of your Joomla installation.
Then you can run discover this extension via Joomla System Installer.
To create installable zip packages, you need to run
composer i
and and after that vendor/bin/robo build
and in the dist
folder it is ready to be installed.
To customize the boilerplates using your own name you need to take the following steps:
- Do a case-sensitive replace on the following strings and replace them with your own name:
- foo
- Foo
- FOO
- Do a case-sensitive replace on the following tags with their actual information:
- [DATE]
- [PROJECT_NAME]
- [AUTHOR]
- [AUTHOR_EMAIL]
- [AUTHOR_URL]
- [COPYRIGHT]
- [PACKAGE_NAME]