You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extension-maintainers.md
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,65 @@ Cannot use myvendor/myextension's latest version 1.2.3 as it requires
240
240
ext-something * which is missing from your platform.
241
241
```
242
242
243
+
#### Checking the extension will work
244
+
245
+
First up, you can use `composer validate` to check your `composer.json` is
246
+
formatted correctly, e.g.:
247
+
248
+
```shelle
249
+
$ composer validate
250
+
./composer.json is valid
251
+
```
252
+
253
+
You may then use `pie install` to install your extension while in its directory:
254
+
255
+
```shell
256
+
$ cd /path/to/my/extension
257
+
$ pie install
258
+
🥧 PHP Installer for Extensions (PIE) 1.0.0, from The PHP Foundation
259
+
Installing PIE extension from /home/james/workspace/phpf/example-pie-extension
260
+
This command may need elevated privileges, and may prompt you for your password.
261
+
You are running PHP 8.4.8
262
+
Target PHP installation: 8.4.8 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php8.4)
263
+
Found package: asgrim/example-pie-extension:dev-main which provides ext-example_pie_extension
264
+
Extracted asgrim/example-pie-extension:dev-main source to: /home/james/.config/pie/php8.4_572ee73609adb95bf0b8539fecdc5c0e/vendor/asgrim/example-pie-extension
0 commit comments