Simple yet complete PHP8 Framework

0.3 2024-12-15 17:51 UTC

This package is auto-updated.

Last update: 2025-03-17 22:08:18 UTC


README

Welcome !

Sharp is a framework for PHP 8 that focuses on code cleanliness and simplicity, the goal is to have a good balance between abstraction and concrete objects, making a framework that can work with your IDE and doesn't use magic syntaxes or unnecessary complexity layers.

📚 Documentation and Tutorials

You can find resources to work/learn with Sharp in the docs/ directory

📦 Get Sharp

composer create-project yonis-savary/sharp-project NewProject
cd NewProject

php do serve

Your directory will look like

  • .git/
  • MyProject/
  • Public/
  • vendor/
  • .gitignore
  • composer.json
  • composer.lock
  • do
  • sharp.php

Release's features

  • 🟢 - tested feature
  • 🔵 - tested feature (some edge-case tests may be missing)
  • 🟡 - untested feature

🫀 Core

  • 🟢 Configuration (sharp.php)
  • 🟢 Caching
  • 🟢 Logging
  • 🟢 Events
  • 🟢 CLI Commands (With base utilities commands)
  • 🔵 CLI build system
  • 🟢 Tests

🌐 Web

  • 🟢 Session
  • 🟢 Request / Responses
  • 🔵 Request Fetch (CURL)
  • 🟢 Controllers
  • 🔵 Renderer
  • 🟢 Routing / Middlewares

📁 Data

  • 🟢 Database (With SQLite support)
  • 🔵 Simple migration system
  • 🟢 Models
  • 🟢 FTP directory support
  • 🟢 Queues support
  • 🟢 Array object (for functional programming)

🔐 Security

  • 🟢 Authentication
  • 🟢 CSRF

🚀 Extras

  • 🟢 Simple assets serving
  • 🔵 Node modules dist file serving !
  • 🟢 Automatic CRUD API for your models
  • 🟢 Scheduler system

...and more ! The SharpExtension repository got some additionnal features that can be used to make development faster

Next release objectives

  • Scheduler system
  • New request validation system
  • Command rework
  • Framework installation rework
  • Test every framework commands
  • Test app creation/integration
  • Test caching & benchmark performances