"Ninety percent of everything is crud."
Theodore Sturgeon
ohCRUD is a lightweight, open-source PHP micro-framework designed for developers who need a simple yet powerful toolkit to build web applications and APIs quickly. It's built to be fast, flexible, and easy to learn, allowing you to focus on creating your application without being bogged down by complex configurations.
- Simple Routing: A straightforward routing system that maps URLs to controllers.
- Database Abstraction: A simple database layer for performing CRUD operations.
- Built-in CMS: A basic Content Management System for managing pages and content.
- User Authentication: A simple user management system with permission levels.
- Theming Engine: Easily customize the look and feel of your application.
- Composer Ready: Utilizes Composer for dependency management and autoloading.
- CLI Support: Interact with your application through the command line.
- PHP >= 8.0
- Composer
- PDO PHP Extension
- Mbstring PHP Extension
- PHP Curl Extension
- PHP SQLITE 3 (if using SQLite)
-
Clone the repository:
git clone https://github.com/fellowgeek/ohcrud.git cd ohcrud -
Install dependencies:
composer install
-
Configure your application:
- Copy
public/settings.sample.phptopublic/settings.php. - Update
public/settings.phpwith your database credentials and other settings.
- Copy
-
Set up your web server:
- Point your web server's document root to the
publicdirectory. - Ensure URL rewriting is enabled to direct all requests to
index.php.
- Point your web server's document root to the
After installation, you can access the built-in CMS and admin panel.
- Admin Login:
/login - Default Username:
admin - Default Password:
admin
For detailed information on configuration, API, CMS, theming, and more, please refer to our full documentation.
Contributions are welcome! Please feel free to submit a pull request or open an issue.
ohCRUD is open-source software licensed under the MIT license.
