The Influencer Platform is a vanilla PHP application designed to create dynamic and engaging content for influencers and writers. It leverages Object-Oriented Programming (OOP) principles for backend functionality and uses Tailwind CSS for a modern, responsive frontend design. This platform allows users to sign up as writers, explore articles, and connect with brands.
- Dynamic Content Generation: Built with vanilla PHP and OOP for clean, modular, and maintainable code.
- Responsive Design: Styled with Tailwind CSS for a seamless user experience across devices.
- Sign-Up Form: Allows influencers to register with details like name, email, bio, and product group.
- Article Showcase: Displays latest articles dynamically with placeholders for future integration.
- Modern UI: Designed with a minimalistic and professional look, using Tailwind's utility-first approach.
root/
├── public/
│ ├── index.php # Main entry point
│ ├── css/ # Tailwind CSS styles (if compiled locally)
│ ├── js/ # JavaScript files (if needed)
│ └── other assets... # Static assets like images, fonts, etc.
├── src/
│ ├── classes/ # PHP classes for OOP
│ ├── controllers/ # Controllers for handling logic
│ ├── models/ # Models for database interaction
│ └── views/ # Views for rendering HTML templates
├── composer.json # Composer dependencies (if used)
├── Procfile # Heroku process file for deployment
├── README.md # Project documentation
- PHP 7.4+: Ensure PHP is installed and available on your system.
- Composer: For managing dependencies (if applicable).
- Tailwind CSS: Included via CDN for simplicity, but can be compiled locally if needed.
- Web Server: Apache or Nginx recommended for local development.
-
Clone the repository:
git clone https://github.com/your-username/influencer-platform.git cd influencer-platform
-
Set up a local server:
- If using PHP's built-in server:
php -S localhost:8000 -t public/
- If using PHP's built-in server:
-
Ensure the
public/
folder is set as the document root when deploying to a web server.
This project is configured for deployment on Heroku. Follow these steps:
-
Ensure the
Procfile
is in the root directory:web: heroku-php-apache2 public/
-
Push the code to Heroku:
git push heroku master
-
Scale the web dyno:
heroku ps:scale web=1
-
Visit your Heroku app URL to verify the deployment.
- Homepage: Displays a hero section with a call-to-action for influencers to sign up.
- Sign-Up Form: Collects user data (name, email, bio, product group) via a simple form.
- Articles: Lists the latest articles with placeholders for dynamic content.
- Backend:
- Vanilla PHP
- Object-Oriented Programming (OOP) principles
- Frontend:
- Tailwind CSS (via CDN)
- Responsive design for mobile and desktop
- Deployment:
- Heroku (Apache server with PHP)
- Database Integration: Add a MySQL or PostgreSQL database to store user and article data.
- Authentication: Implement user login and session management.
- Dynamic Articles: Fetch and display articles dynamically from the database.
- API Integration: Connect with third-party APIs for additional features like analytics or social media sharing.
- Custom Tailwind Build: Compile Tailwind CSS locally for optimized performance.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature-name"
- Push to your branch:
git push origin feature-name
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.