Skip to content

Commit f285abc

Browse files
committed
Merge pull request #21 from VSEphpbb/release-prep
Release prep
2 parents 0220728 + 36d11f3 commit f285abc

4 files changed

Lines changed: 42 additions & 72 deletions

File tree

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
1-
# phpBB Skeleton Extension
1+
# phpBB Skeleton Extension
2+
3+
phpBB's Skeleton Extension is a tool for extension authors to help speed up and simplify the task of starting a new extension project. It generates sample starter files and directories in a skeleton package that you can use to begin building your extension.
24

35
## Installation
46

5-
To install the source code from this repository, clone this extension repository to `phpBB/ext/phpbb/skeleton`:
7+
- [Download the latest release](https://github.com/phpbb-extensions/phpbb-ext-skeleton/releases).
8+
- Unzip and install to your phpBB `ext/` folder
9+
- Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB Skeleton Extension" extension.
10+
11+
## Contributing
12+
13+
To install the source code from this repository, clone the contents of this repository to `phpBB/ext/phpbb/skeleton`, then run Composer from the extension's directory:
614

7-
$ git clone https://github.com/phpbb-extensions/phpbb-ext-skeleton.git
815
$ php composer.phar install
916

10-
Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB Skeleton Extension" extension.
17+
## Create an Extension Skeleton
1118

12-
## Creating an extension via web UI
19+
### Web-based user interface
1320

1421
In order to create an extension via the web UI just open your board an visit the
15-
"Create skeleton extension" link at the top left:
22+
"Create skeleton extension" link in the forum's navigation bar:
1623

1724
https://localhost/phpBB/app.php/skeleton
1825

19-
The `.zip` is then offered as a download. Additionally it can be found at
26+
A packaged ZIP file is then offered as a download. Additionally it can be found in
2027
`store/tmp-ext/`.
2128

22-
## Creating an extension via console
29+
### Command line interface
2330

24-
In order to create an extension, you need to open the console of your server.
31+
In order to create an extension via the CLI, you need to open the console of your server.
2532
Then run the following command in your phpBB root (next to config.php):
2633

2734
$ ./bin/phpbbcli.php extension:create

composer.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
{
22
"name": "phpbb/skeleton",
33
"type": "phpbb-extension",
4-
"description": "phpBB Extension creating extension skeletons",
5-
"homepage": "https://github.com/nickv-phpbb/phpbb-ext-skeleton",
6-
"version": "1.0.0-dev",
7-
"time": "2015-05-29",
4+
"description": "A phpBB Extension for creating extension skeletons",
5+
"homepage": "https://github.com/phpbb-extensions/phpbb-ext-skeleton",
6+
"version": "1.0.0-a1",
7+
"time": "2016-04-04",
88
"license": "GPL-2.0",
9-
"authors": [{
9+
"authors": [
10+
{
1011
"name": "Joas Schilling",
1112
"email": "nickvergessen@gmx.de",
1213
"homepage": "https://github.com/nickvergessen/",
1314
"role": "Lead Developer"
14-
}],
15+
},
16+
{
17+
"name": "Matt Friedman",
18+
"homepage": "http://mattfriedman.me",
19+
"role": "Extensions Development Team Lead"
20+
}
21+
],
1522
"require": {
1623
"php": ">=5.3.3",
1724
"symfony/finder": "2.8.*"
@@ -23,6 +30,11 @@
2330
"display-name": "phpBB Skeleton Extension",
2431
"soft-require": {
2532
"phpbb/phpbb": ">=3.1.4,<3.3.0@dev"
33+
},
34+
"version-check": {
35+
"host": "version.phpbb.com",
36+
"directory": "/phpbb-extensions",
37+
"filename": "skeleton_versions.json"
2638
}
2739
}
2840
}

composer.lock

Lines changed: 3 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

helper/packager.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ public function create_extension($data)
128128
}
129129
else
130130
{
131+
// Work-around for bug in phpBB 3.2.0-dev-3.2.0-b2
132+
$cache_dir = ($this->phpbb_container->hasParameter('core.cache_dir')) ? $this->phpbb_container->getParameter('core.cache_dir') : $this->phpbb_container->getParameter('core.root_path') . 'cache/';
133+
131134
$template_engine = new twig(
132135
$this->phpbb_container->get('path_helper'),
133136
$config,
@@ -137,13 +140,13 @@ public function create_extension($data)
137140
$this->phpbb_container->get('filesystem'),
138141
$this->phpbb_container->get('path_helper'),
139142
$this->phpbb_container,
140-
$this->phpbb_container->getParameter('core.cache_dir'),
143+
$cache_dir,
141144
$this->phpbb_container->get('ext.manager'),
142145
new loader(
143146
new \phpbb\filesystem\filesystem()
144147
)
145148
),
146-
$this->phpbb_container->getParameter('core.cache_dir'),
149+
$cache_dir,
147150
$this->phpbb_container->get('user')
148151
);
149152
}

0 commit comments

Comments
 (0)