https://github.com/bolt/local-extension-boilerplate
Boilerplate for a Local Extension in Bolt 3.3
https://github.com/bolt/local-extension-boilerplate
bolt extension php
Last synced: about 1 month ago
JSON representation
Boilerplate for a Local Extension in Bolt 3.3
- Host: GitHub
- URL: https://github.com/bolt/local-extension-boilerplate
- Owner: bolt
- Created: 2017-02-01T15:38:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-02T15:16:58.000Z (almost 9 years ago)
- Last Synced: 2025-12-13T04:38:59.011Z (7 months ago)
- Topics: bolt, extension, php
- Language: PHP
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Boilerplate Extension
=====================
This is a boilerplate Local Extension for Bolt 3.3 and up. Clone, search and replace, and hack away.
To set up, do the following, replacing `[Name]` with the desired name of your extension.
```
mkdir -p extensions/local
git clone https://github.com/bolt/local-extension-boilerplate extensions/local/[Name]
cd extensions/local/[Name]
sed -i 's/Boilerplate/[Name]/g' BoilerplateExtension.php
mv src/BoilerplateExtension.php src/[Name]Extension.php
```
After this, your local extension is ready, and you can start editing it.
Note that you might need to add `extensions/local` to the Autoloader, as described in the [Bolt documentation][bundled].
[bundled]: https://docs.bolt.cm/extensions/bundled/introduction