Preparing Environment for Developing Extensions
Introduction
This page is written to give readers a better experiences on how to prepare your local machine to develop Mediawiki Extension functionality.
Requirement
Below are the set of versions of each component, use to develop extension on PKC Implementation.
No | Description and Version |
---|---|
1 | PHP 7.4.29 |
2 | Maria DB |
3 | Mediawiki 1.37.1 |
The easiest method to get all the component to work is to install XAMPP Package, which can be found in Apache Friends Site. Also please see the PHP Component requirement list in Mediawiki Requirement Page. Most of the component required should be readily available at the XAMPP package, in the event the required component is not complete, please refer to Mediawiki Requirement Page for installation in Ubuntu Machine.
Known Issues
In XAMPP for MacOS, found that intl PHP component is not available. Hence, several steps need to be done, this step is the actual working step, after testing on Homebrew method, which not working correctly.
1. Install ICU
ICU4C can be installed through Homebrew, using below command
brew install icu
Then, we will need to find out where is the ICU4C installation folder, normally its installed on /usr/local/Cellar/icu4c/[some version number]
2. Download PHP
Download PHP from php.net according to you version, which is 7.4.29, and extract all the files to you chosen folder.