Learn how to add non-standard PHP extensions to your pod. Most extensions can be installed without additional configurations. However, some extensions (e.g., oci8) require additional libraries be installed and configured.
Operating System: Any
Applies To: Faculty or Staff using CaaS
Last Updated: October 29, 2024
A library is a collection of PHP classes (native PHP code) which solve generic tasks such as building HTML forms and sending emails. PHP libraries are usually fairly easy to install and use. Examples of PHP libraries include:
1. Add a composer.json file to your repository using the following structure. You will need to replace the items enclosed in "< >" with the appropriate values.
composer.json
2. Follow the steps for How to create a new pod (aka container).
The following composer.json file will cause your pod to install any 2.x version of the phpseclib library:
{
"require": {
"phpseclib/phpseclib": "2.*"
}
}
Contact the UBIT Help Center.