The official developer portal for The Give Hub platform. This portal provides documentation, tools, and resources for developers integrating with The Give Hub's APIs and services to help make global impact through technology.
The Give Hub Developer Portal is built with:
- 📱 Vanilla JavaScript for frontend interactivity
- ⚡ PHP backend for API handling and developer registration
- 💾 MySQL/MariaDB for data storage
- 🔗 Stellar blockchain integration via Soroban smart contracts
- PHP 8.1 or higher
- MySQL/MariaDB 10.4 or higher
- Node.js 18+ (for build tools)
- Composer
- Clone the repository:
git clone https://github.com/thegivehub/developer-portal.git
cd developer-portal
- Install dependencies:
composer install
npm install
- Copy the example configuration:
cp config.example.php config.php
- Create the database and run migrations:
mysql -u root -p
CREATE DATABASE givehub_dev;
exit;
php migrations/run.php
- Start the development server:
php -S localhost:8000
The portal should now be accessible at http://localhost:8000
🎉
├── api/ # API endpoints
│ └── developer/ # Developer-specific endpoints
├── lib/ # PHP library files
├── public/ # Static assets
│ ├── css/
│ ├── js/
│ └── img/
├── templates/ # HTML templates
├── migrations/ # Database migrations
├── tests/ # Test files
└── config.php # Configuration file
- 📚 Interactive API Documentation
- 🔑 Developer Registration System
- 🎮 API Key Management
- 📊 Usage Analytics Dashboard
- 🏗️ Sandbox Environment
- 🔔 Webhook Configuration
- 🔒 OAuth 2.0 Integration
- ⛓️ Stellar Network Integration
Key configuration options in config.php
:
// Database
define('DB_HOST', 'localhost');
define('DB_NAME', 'givehub_dev');
define('DB_USER', 'your_user');
define('DB_PASS', 'your_password');
// API Settings
define('API_RATE_LIMIT', 1000);
define('API_VERSION', 'v1');
// Stellar Network
define('STELLAR_NETWORK', 'testnet'); // or 'public'
We follow PSR-12 for PHP code style. You can check your code with:
composer run-script check-style
composer test
The documentation is built using markdown files in the docs/
directory. To build:
npm run build-docs
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Please read CONTRIBUTING.md for details on our code of conduct and pull request process.
Full API documentation is available at https://developers.givehub.org/docs
Quick links:
- 🔐 Authentication
- 📢 Campaigns
- 💰 Donations
- 🔔 Webhooks
- 💻 Developer Forum
- 🎮 Discord Community
- ✉️ Email: [email protected]
This project is licensed under the MIT License - see the LICENSE file for details.
Please report security vulnerabilities to [email protected]. We have a responsible disclosure policy and will work with you to address any issues.