Skip to content

Shahana-code/php-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern Web - PHP Bootstrap Website

A stunning, modern website built with PHP, HTML, CSS, and Bootstrap 5. Features a beautiful dark theme with gradient accents, smooth animations, and fully responsive design.

🚀 Features

  • Modern Design: Premium dark theme with vibrant gradients and glassmorphism effects
  • Fully Responsive: Perfect experience across all devices and screen sizes
  • PHP Powered: Dynamic content with PHP includes and form handling
  • Bootstrap 5: Latest Bootstrap framework for robust components
  • Smooth Animations: AOS (Animate On Scroll) library for beautiful scroll animations
  • Interactive Elements: Hover effects, transitions, and micro-animations
  • SEO Optimized: Proper meta tags and semantic HTML structure
  • Contact Form: Working PHP contact form with validation

📁 Project Structure

php-bootstrap-website/
├── assets/
│   ├── css/
│   │   └── style.css          # Custom styles
│   └── js/
│       └── main.js            # Custom JavaScript
├── includes/
│   ├── header.php             # Header and navigation
│   └── footer.php             # Footer and scripts
├── index.php                  # Homepage
├── about.php                  # About page
├── services.php               # Services page
├── contact.php                # Contact page with form
└── README.md                  # This file

🛠️ Installation & Setup

Prerequisites

  • PHP 7.4 or higher
  • A web server (Apache, Nginx, or PHP built-in server)

Quick Start

  1. Clone or download this project to your local machine

  2. Navigate to the project directory:

    cd php-bootstrap-website
  3. Start the PHP development server:

    php -S localhost:8000
  4. Open your browser and visit:

    http://localhost:8000
    

Alternative: Using XAMPP/WAMP

  1. Copy the project folder to your htdocs (XAMPP) or www (WAMP) directory
  2. Start Apache from the control panel
  3. Visit http://localhost/php-bootstrap-website

📄 Pages

Home (index.php)

  • Hero section with call-to-action
  • Features showcase
  • Statistics counter
  • Call-to-action section

About (about.php)

  • Company story
  • Core values
  • Team members

Services (services.php)

  • Service offerings
  • Process workflow
  • Detailed feature lists

Contact (contact.php)

  • Contact information
  • Working contact form
  • Map placeholder

🎨 Customization

Colors

Edit the CSS variables in assets/css/style.css:

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    /* ... more colors */
}

Content

  • Edit PHP files to change content
  • Modify arrays in PHP to add/remove features, services, team members, etc.
  • Update navigation in includes/header.php

Styling

  • Custom styles are in assets/css/style.css
  • Bootstrap classes can be used throughout
  • Modify animations in the CSS file

📦 Dependencies

CSS Libraries

  • Bootstrap 5.3.2
  • Bootstrap Icons 1.11.1
  • AOS (Animate On Scroll) 2.3.1
  • Google Fonts (Inter)

JavaScript Libraries

  • Bootstrap 5.3.2 Bundle (includes Popper)
  • AOS 2.3.1

All dependencies are loaded via CDN, so no installation required!

🌐 Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Opera (latest)

📧 Contact Form

The contact form in contact.php includes:

  • Client-side validation
  • Server-side PHP processing
  • Success/error messages
  • Spam protection ready

To enable email sending, modify the form handler in contact.php to include your email configuration.

🚀 Deployment

For Production:

  1. Upload files to your web hosting via FTP/SFTP
  2. Configure your domain to point to the project directory
  3. Set up email for the contact form
  4. Enable HTTPS for security
  5. Optimize images if you add custom images

Recommended Hosting:

  • Shared hosting with PHP support
  • VPS with Apache/Nginx
  • Cloud platforms (AWS, DigitalOcean, etc.)

📝 License

This project is open source and available for personal and commercial use.

🤝 Contributing

Feel free to fork this project and customize it for your needs!

💡 Tips

  • Use the browser's developer tools to customize colors and spacing
  • Add your own images to replace icon placeholders
  • Integrate with a database for dynamic content
  • Add more pages as needed
  • Implement a CMS for easier content management

🎯 Future Enhancements

  • Blog section
  • Portfolio/gallery
  • User authentication
  • Admin panel
  • Database integration
  • Email newsletter integration
  • Live chat support
  • Multi-language support

Built with ❤️ using PHP, HTML, CSS, and Bootstrap

For questions or support, please visit the contact page!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published