A PHP-based CRUD (Create, Read, Update, Delete) application with DOCKER integration for streamlined development and deployment.
This repository contains a PHP CRUD application designed to demonstrate basic database operations using PHP. It includes essential components for development and deployment, such as Docker support and environment configuration, facilitating a DevOps-friendly workflow.
- PHP-based CRUD functionality for managing data records
- Dockerfile included for containerized deployment
- Environment variable support via
.env.samplefile - Composer dependencies managed for PHP packages
- Simple and clean codebase suitable for learning and extension
- Docker installed on your machine for containerized deployment
- PHP environment (if running locally without Docker)
- Composer for PHP dependency management
- A database server (e.g., MySQL) configured and accessible
- Clone the repository
git clone https://github.com/soocrates/PHP_CRUD_DEVOPS.git
cd PHP_CRUD_DEVOPS- Copy
.env.sampleto.envand configure your environment variables accordingly. - Install PHP dependencies using Composer
composer install- Build and run the Docker container (optional)
docker build -t php_crud_devops .
docker run -p 8080:80 php_crud_devops- Access the application via
http://localhost:8080in your web browser.
This project serves as a foundation for PHP CRUD operations with integrated DevOps practices. You can:
- Create, read, update, and delete records through the web interface
- Extend the application with additional features or database support
- Use the Docker setup for consistent development and deployment environments
app/– Contains PHP application codeinfo/– Additional informational files or documentation.env.sample– Sample environment configuration filedockerfile– Docker configuration for containerizing the appcomposer.jsonandcomposer.lock– PHP dependency management filesindex.html– Entry point or landing page
Contributions are welcome! Feel free to fork the repository, make improvements, and submit pull requests.