{"id":14987206,"url":"https://github.com/sloharkar/php-codeigniter-crud-application","last_synced_at":"2025-04-11T23:23:20.227Z","repository":{"id":244921078,"uuid":"816693543","full_name":"SLoharkar/PHP-CodeIgniter-CRUD-Application","owner":"SLoharkar","description":"PHP CodeIgniter 3 CRUD Application","archived":false,"fork":false,"pushed_at":"2024-06-18T09:15:52.000Z","size":9748,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T19:14:41.924Z","etag":null,"topics":["backend-development","codeigniter","codeigniter-crud","codeigniter3","crud","crud-application","model-view-controller","mvc-architecture","php","php-crud","php-framework","php-framework-codeigniter","web-development"],"latest_commit_sha":null,"homepage":"https://github.com/SLoharkar/PHP-CodeIgniter-CRUD-Application","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SLoharkar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T08:20:44.000Z","updated_at":"2024-09-13T08:15:52.000Z","dependencies_parsed_at":"2024-06-18T10:05:59.230Z","dependency_job_id":null,"html_url":"https://github.com/SLoharkar/PHP-CodeIgniter-CRUD-Application","commit_stats":null,"previous_names":["sloharkar/php-codeigniter-crud-application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLoharkar%2FPHP-CodeIgniter-CRUD-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLoharkar%2FPHP-CodeIgniter-CRUD-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLoharkar%2FPHP-CodeIgniter-CRUD-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLoharkar%2FPHP-CodeIgniter-CRUD-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SLoharkar","download_url":"https://codeload.github.com/SLoharkar/PHP-CodeIgniter-CRUD-Application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493510,"owners_count":21113273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend-development","codeigniter","codeigniter-crud","codeigniter3","crud","crud-application","model-view-controller","mvc-architecture","php","php-crud","php-framework","php-framework-codeigniter","web-development"],"created_at":"2024-09-24T14:14:15.263Z","updated_at":"2025-04-11T23:23:20.209Z","avatar_url":"https://github.com/SLoharkar.png","language":"PHP","readme":"# PHP CodeIgniter 3 CRUD Application\n\nThis repository contains a comprehensive CRUD (Create, Read, Update, Delete) application developed using PHP and CodeIgniter 3. The application demonstrates a well-structured MVC (Model-View-Controller) architecture with additional features for session management, validation, and security. It includes a `HomeController`, `CrudController`, `CrudService`, `CrudRepository`, and `DatabaseModel`, along with a Validation Helper and View Handling.\n\n## Features\n\n- **MVC Architecture**: Organized code structure for maintainability and scalability.\n- **CRUD Operations**: Perform Create, Read, Update, and Delete operations.\n- **Session Management**: Secure and efficient session handling.\n- **Validation**: Extensive form validation using CodeIgniter's `form_validation`.\n- **Security**: User passwords are stored using `password_hash` for enhanced security.\n- **Unified Form**: Registration and update are managed through a single form.\n- **Exception Handling**: Proper exception handling throughout the application.\n- **Logging**: Specific logging for tracking application behavior.\n- **Code Commenting**: Well-commented code for better understanding and maintainability.\n- **Professional Project Structure**: Adheres to professional standards for project creation and management.\n\n## Usage\n\n### Register and Update Form\n\n- **Register**: Access the registration form to create a new user. Passwords are securely hashed using `password_hash`.\n- **Update**: Use the same form to update user information.\n\n### CRUD Operations\n\n- **Create**: Add new records to the database.\n- **Read**: Retrieve and display records from the database.\n- **Update**: Modify existing records in the database.\n- **Delete**: Remove records from the database.\n\n## Code Structure\n\n- **Controllers**: Handle incoming requests and interact with services.\n  - `HomeController`: Manages the Login, Register, and Logout operations.\n  - `CrudController`: Manages CRUD operations and interactions with services.\n- **Libraries**: Contain business logic and act as intermediaries between controllers and repositories.\n  - `CrudService`: Handles the business logic for CRUD operations.\n- **Models**: Represent database entities and handle data operations.\n  - `CrudRepository`: Mediator of `CrudService` and `DatabaseModel`, managing data persistence and retrieval.\n  - `DatabaseModel`: Contains all database-related operations.\n  - **View Handler**: Manages the presentation layer of the application.\n- **Helpers**: Provide utility functions for validation and other common tasks.\n  - `Validation Helper`: Manages form validation related functions.\n\n## Installation and Setup\n\n### Prerequisites\n\n- PHP (\u003e= 7.4)\n- MySQL\n- Apache Server (or any compatible web server)\n\n### Steps\n\n1. **Clone the repository**:\n   ```sh\n   git clone https://github.com/SLoharkar/PHP-CodeIgniter-CRUD-Application.git\n   cd PHP-CodeIgniter-CRUD-Application\n   ```\n\n2. **Configure the database**:\n   - Create a database in MySQL.\n   - Update the database configuration in `application/config/database.php` with your database credentials.\n\n4. **Run the migrations**:\n   - Import the `database.sql` file located in the root of the project to your MySQL database. This will create the necessary tables.\n\n5. **Configure the base URL**:\n   - Update the base URL in `application/config/config.php` to match your local or production environment.\n\n6. **Start the application**:\n   - Place the project in the web root directory of your server (e.g., `htdocs` for XAMPP).\n   - Start the Apache server.\n   - Access the application via your browser at `http://localhost/PHP-CodeIgniter-CRUD-Application`.\n\n## Video Trailer\n\nFor a quick overview of the application, watch the video trailer below:\n\nhttps://github.com/SLoharkar/PHP-CodeIgniter-CRUD-Application/assets/68845746/f20945c3-1262-4b18-a0b9-2c1d8703402e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloharkar%2Fphp-codeigniter-crud-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloharkar%2Fphp-codeigniter-crud-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloharkar%2Fphp-codeigniter-crud-application/lists"}