- Notifications
You must be signed in to change notification settings - Fork0
🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly
License
LadyK-21/leaf
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Leaf is a PHP framework that helps you create clean, simple but powerful web apps and APIs quickly and easily. Leaf introduces a cleaner and much simpler structure to the PHP language while maintaining it's flexibility. With a simple structure and a shallow learning curve, it's an excellent way to rapidly build powerful and high performant web apps and APIs.
Leaf 3 brings a much cleaner, faster and simpler workflow to your apps. Powered by an ecosystem of powerful modules with zero setup and it's ease of use, Leaf now allows you to tackle complexities no matter the scale.
Install Leaf 3:
You can create a Leaf 3 app with theLeaf CLI
leaf create<project-name> --v3 --basic
<project-name>
is your project name
You can also useComposer to install Leaf 3 in your project quickly.
composer require leafs/leaf
Install Leaf 2:
Since leaf 3 is still in beta, you might want to install the stable leaf 2 instead. You can do this with Leaf CLI or composer.
leaf create<project-name> --basic --v2
Or with composer
composer require leafs/leaf v2.6
This is a simple demonstration of Leaf's simplicity.Afterinstalling Leaf, create anindex.php file.
<?phprequire__DIR__ ."/vendor/autoload.php";app()->get("/",function () {response()->json(["message" =>"Welcome!" ]);});app()->run();
If you use the Leaf CLI, this is already done for you 🚀.
You may quickly test this using the built-in PHP server:
php -S localhost:8000
Or with the Leaf CLI:
leaf serve
You can view the full documentationhere
Project | Status | Description |
---|---|---|
leaf | Create websites and APIs quickly | |
leafmvc | An MVC wrapper for leaf (for general development) | |
leafapi | An MVC wrapper for leaf geared towards API development | |
skeleton | Leaf boilerplate for rapid development | |
leaf-ui | A PHP library for building user interfaces | |
cli | CLI for creating & interacting with your leaf apps |
Project | Status | Description |
---|---|---|
aloe | Smart console helper for leaf mvc, leaf api and skeleton | |
router | Default router for leaf php | |
experiments | collection of experimental modules | |
Mailing made easy with leaf | ||
auth | Simple but powerful authentication system for your apps | |
form | Form processes and validation | |
password | Password encryption/validation/hashing in one box | |
db-old | Leaf Db from v1 (still maintained) | |
db | Leaf Db from v2 (actively maintained) | |
session | PHP sessions made simple | |
cookie | Cookie management without the tears | |
http | Http operations made simple (request, response, ...) | |
cors | CORS operations made simple | |
csrf | Basic CSRF protection | |
anchor | Basic security tools | |
logger | leaf logger module | |
fs | Awesome filesystem operations + file uploads | |
date | PHP dates for humans | |
bareui | Dead simple templating engine with no compilation (blazing speed) | |
blade | Laravel blade templating port for leaf | |
veins | Leaf veins templating engine | |
mvc-core | Core MVC tools powering our MVC wrappers | |
exception | Leaf's exception wrapper (fork of whoops) | |
fetch | HTTP requests made simple | |
redis | Redis module |
- Leaf has a very easy to understanddocumentation which contains information on all operations in Leaf.
- You can also check out ouryoutube channel which has video tutorials on different topics
- You can also learn fromcodelabs and contribute as well.
We are glad to have you. All contributions are welcome! To get started, familiarize yourself with ourcontribution guide and you'll be ready to make your first pull request 🚀.
To report a security vulnerability, you can reach out to@mychidarko or@leafphp on twitter. We will coordinate the fix and eventually commit the solution in this project.
Michael Darko | Ademílson F. Tonato | Tobias Herber | Pjotr Savitski |
Pablo Ferreiro | jess | Sergey Romanenko |
Your cash contributions go a long way to help us make Leaf even better for you. You can sponsor Leaf and any of our packages onopen collective or check thecontribution page for a list of ways to contribute.
And to all our existing cash/code contributors, we love you all ❤️
Aaron Smith | Peter Bogner | Vano | Casprine |
About
🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly
Resources
License
Stars
Watchers
Forks
Packages0
Languages
- PHP100.0%