Commit 1b8d7fcc by Van

feat(all): Some stuff

parent 374d40ea
Bolt Extension Starter Elloha Extension
====================== ======================
A starter skeleton for a Bolt v3.x Extension #### Requires installation of the translation extension bolt before installing this extension:
animal/translate
## Installation
To get going run the following command, replacing the last argument with the name of your extension: ### Composer.json edition
`composer create-project --no-install 'bolt/bolt-extension-starter:^3.0' <newextname>` In file extension/composer.json
For more information, see this page in the Bolt documentation: https://docs.bolt.cm/extensions/building-starter/about In this block :
````
"repositories": {
"packagist": false,
"bolt": {
"type": "composer",
"url": "https://market.bolt.cm/satis/"
}
},
````
add :
````
"appolo": {
"type": "composer",
"url" : "https://packages.lab.appolo.fr/"
},
````
### Composer require
Go to the base dir with terminal and run this following lines :
```
cd extensions
composer require appolo/elloha
```
\ No newline at end of file
{ {
"name": "bolt/bolt-extension-starter", "name": "appolo/elloha",
"description": "", "description": "Bolt Extension for Tourinsoft contents",
"type": "bolt-extension", "type": "bolt-extension",
"keywords": [ "keywords": [
], ],
...@@ -13,25 +13,25 @@ ...@@ -13,25 +13,25 @@
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {
"name": "", "name": "Appolo",
"email": "you@example.com" "email": "support@appolo.fr"
} }
], ],
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true, "prefer-stable": true,
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Bolt\\Extension\\YourName\\ExtensionName\\": "src" "Bolt\\Extension\\Appolo\\Elloha\\": "src"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"Bolt\\Extension\\YourName\\ExtensionName\\Tests\\": "tests", "Bolt\\Extension\\Appolo\\Elloha\\Tests\\": "tests",
"Bolt\\Tests\\": "vendor/bolt/bolt/tests/phpunit/unit/" "Bolt\\Tests\\": "vendor/bolt/bolt/tests/phpunit/unit/"
} }
}, },
"extra": { "extra": {
"bolt-assets": "web", "bolt-assets": "web",
"bolt-class": "Bolt\\Extension\\YourName\\ExtensionName\\ExtensionNameExtension" "bolt-class": "Bolt\\Extension\\Appolo\\Elloha\\EllohaExtension"
} }
} }
<?php <?php
namespace Bolt\Extension\YourName\ExtensionName; namespace Bolt\Extension\Appolo\Elloha;
use Bolt\Extension\SimpleExtension; use Bolt\Extension\SimpleExtension;
/** /**
* ExtensionName extension class. * Class EllohaExtension
* * @package Bolt\Extension\Appolo\Elloha
* @author Your Name <you@example.com>
*/ */
class ExtensionNameExtension extends SimpleExtension class EllohaExtension extends SimpleExtension
{ {
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment