Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jessebyarugaba/Unofficial-Uganda-Securities-Exhange-API/llms.txt
Use this file to discover all available pages before exploring further.
System requirements
Before installing the library, ensure your environment meets these requirements:- PHP: Version 5.6 or higher
- ext-iconv: Required for character encoding conversion
Recommended extensions
- ext-mbstring: Provides better decoding for multi-byte documents
- ext-curl: Enables cURL download support in the HtmlWeb class
- ext-openssl: Allows loading HTTPS pages when using cURL
Installation methods
Currently, this library is not available on Packagist. Installation requires manual download and inclusion in your project.
Manual installation
Alternative: Download as ZIP
You can also download the repository as a ZIP file:- Visit the GitHub repository
- Click the green Code button
- Select Download ZIP
- Extract the files to your project directory
- Include
PortfolioManager.phpin your code
Verify installation
Test your installation with this simple script:verify-installation.php
Web server setup
To run the API in a web environment:- XAMPP
- WAMP
- Built-in PHP server
- Install XAMPP
- Copy project files to
C:\xampp\htdocs\use-api\(Windows) or/opt/lampp/htdocs/use-api/(Linux) - Start Apache from the XAMPP control panel
- Access via
http://localhost/use-api/PortfolioManager.php
Troubleshooting
Error: Unable to load HTML from the specified URL
Error: Unable to load HTML from the specified URL
This error occurs when the library cannot connect to the Uganda Securities Exchange website.Solutions:
- Check your internet connection
- Verify that
allow_url_fopenis enabled in your php.ini: - Install the ext-curl extension for alternative HTTP methods
- Check if a firewall is blocking outbound connections
Character encoding issues
Character encoding issues
If you see garbled text or encoding errors:Solutions:
- Ensure ext-iconv is installed:
- Install ext-mbstring for better multi-byte support:
SSL/HTTPS errors
SSL/HTTPS errors
When accessing HTTPS URLs fails:Solutions:
- Install ext-openssl:
- Update your CA certificates:
Next steps
Quickstart guide
Learn how to make your first API call
API reference
Explore all available methods