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",
"description": "",
"name": "appolo/elloha",
"description": "Bolt Extension for Tourinsoft contents",
"type": "bolt-extension",
"keywords": [
],
......@@ -13,25 +13,25 @@
"license": "MIT",
"authors": [
{
"name": "",
"email": "you@example.com"
"name": "Appolo",
"email": "support@appolo.fr"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Bolt\\Extension\\YourName\\ExtensionName\\": "src"
"Bolt\\Extension\\Appolo\\Elloha\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Bolt\\Extension\\YourName\\ExtensionName\\Tests\\": "tests",
"Bolt\\Extension\\Appolo\\Elloha\\Tests\\": "tests",
"Bolt\\Tests\\": "vendor/bolt/bolt/tests/phpunit/unit/"
}
},
"extra": {
"bolt-assets": "web",
"bolt-class": "Bolt\\Extension\\YourName\\ExtensionName\\ExtensionNameExtension"
"bolt-class": "Bolt\\Extension\\Appolo\\Elloha\\EllohaExtension"
}
}
<?php
namespace Bolt\Extension\YourName\ExtensionName;
namespace Bolt\Extension\Appolo\Elloha;
use Bolt\Extension\SimpleExtension;
/**
* ExtensionName extension class.
*
* @author Your Name <you@example.com>
* Class EllohaExtension
* @package Bolt\Extension\Appolo\Elloha
*/
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