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
Instead of `bin` tag (which represents latest binary-only image) you can also use explicit version (in `x.y.z-bin` format). Use [GitHub registry](https://ghcr.io/php/pie) to find available tags.
39
39
40
-
> [!IMPORTANT]
40
+
> [!IMPORTANT]
41
41
> Binary-only images don't include PHP runtime so you can't use them for _running_ PIE. This is just an alternative way of distributing PHAR file, you still need to satisfy PIE's runtime requirements on your own.
42
42
43
43
#### Example of PIE working in a Dockerfile
@@ -197,7 +197,7 @@ functionality, or to provide paths to libraries not automatically detected.
197
197
In order to determine what configure options are available for an extension,
198
198
you may use `pie info <vendor>/<package>` which will return a list, such as:
199
199
200
-
```
200
+
```text
201
201
Configure options:
202
202
--enable-some-functionality (whether to enable some additional functionality provided)
203
203
--with-some-library-name=? (Path for some-library)
@@ -215,6 +215,45 @@ pie install example/some-extension --with-some-library-name=/path/to/the/lib --e
215
215
216
216
### Configuring the INI file
217
217
218
-
At the moment, PIE does not configure the INI file, although this improvement
219
-
is planned soon. In the meantime, you must enable the extension after installing
220
-
by adding a line such as `extension=foo` to your `php.ini`.
218
+
PIE will automatically try to enable the extension by adding `extension=...` or
219
+
`zend_extension=...` in the appropriate INI file. If you want to disable this
220
+
behaviour, pass the `--skip-enable-extension` flag to your `pie install`
221
+
command. The following techniques are used to attempt to enable the extension:
222
+
223
+
*`phpenmod`, if using the deb.sury.org distribution
224
+
*`docker-php-ext-enable` if using Docker's PHP image
225
+
* Add a new file to the "additional .ini file" path, if configured
226
+
* Append to the standard php.ini, if configured
227
+
228
+
If none of these techniques work, or you used the `--skip-enable-extension`
229
+
flag, PIE will warn you that the extension was not enabled, and will note that
230
+
you must enable the extension yourself.
231
+
232
+
### Adding non-Packagist.org repositories
233
+
234
+
Sometimes you may want to install an extension from a package repository other
235
+
than Packagist.org (such as [Private Packagist](https://packagist.com/)), or
236
+
from a local directory. Since PIE is based heavily on Composer, it is possible
0 commit comments