Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
forked fromleafsphp/leaf

🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly

License

NotificationsYou must be signed in to change notification settings

LadyK-21/leaf

 
 

Repository files navigation




Leaf 3

Latest Stable VersionTotal DownloadsLicense



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.

📦 Installation

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

🗂 Basic Usage

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

✈️ The Leaf Ecosystem (Libs & Frameworks)

ProjectStatusDescription
leafLatest Stable VersionTotal DownloadsCreate websites and APIs quickly
leafmvcLatest Stable VersionTotal DownloadsAn MVC wrapper for leaf (for general development)
leafapiLatest Stable VersionTotal DownloadsAn MVC wrapper for leaf geared towards API development
skeletonLatest Stable VersionTotal DownloadsLeaf boilerplate for rapid development
leaf-uiLatest Stable VersionTotal DownloadsA PHP library for building user interfaces
cliLatest Stable VersionTotal DownloadsCLI for creating & interacting with your leaf apps

🧩 The Leaf Ecosystem (Modules)

ProjectStatusDescription
aloeLatest Stable VersionTotal DownloadsSmart console helper for leaf mvc, leaf api and skeleton
routerLatest Stable VersionTotal DownloadsDefault router for leaf php
experimentsLatest Stable VersionTotal Downloadscollection of experimental modules
mailLatest Stable VersionTotal DownloadsMailing made easy with leaf
authLatest Stable VersionTotal DownloadsSimple but powerful authentication system for your apps
formLatest Stable VersionTotal DownloadsForm processes and validation
passwordLatest Stable VersionTotal DownloadsPassword encryption/validation/hashing in one box
db-oldLatest Stable VersionTotal DownloadsLeaf Db from v1 (still maintained)
dbLatest Stable VersionTotal DownloadsLeaf Db from v2 (actively maintained)
sessionLatest Stable VersionTotal DownloadsPHP sessions made simple
cookieLatest Stable VersionTotal DownloadsCookie management without the tears
httpLatest Stable VersionTotal DownloadsHttp operations made simple (request, response, ...)
corsLatest Stable VersionTotal DownloadsCORS operations made simple
csrfLatest Stable VersionTotal DownloadsBasic CSRF protection
anchorLatest Stable VersionTotal DownloadsBasic security tools
loggerLatest Stable VersionTotal Downloadsleaf logger module
fsLatest Stable VersionTotal DownloadsAwesome filesystem operations + file uploads
dateLatest Stable VersionTotal DownloadsPHP dates for humans
bareuiLatest Stable VersionTotal DownloadsDead simple templating engine with no compilation (blazing speed)
bladeLatest Stable VersionTotal DownloadsLaravel blade templating port for leaf
veinsLatest Stable VersionTotal DownloadsLeaf veins templating engine
mvc-coreLatest Stable VersionTotal DownloadsCore MVC tools powering our MVC wrappers
exceptionLatest Stable VersionTotal DownloadsLeaf's exception wrapper (fork of whoops)
fetchLatest Stable VersionTotal DownloadsHTTP requests made simple
redisLatest Stable VersionTotal DownloadsRedis module

💬 Stay In Touch

📓 Learning Leaf 3

  • 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.

😇 Contributing

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.

Code contributors


Michael Darko

Ademílson F. Tonato

Tobias Herber

Pjotr Savitski

Pablo Ferreiro

jess

Sergey Romanenko

🤩 Sponsoring Leaf

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 ❤️

Cash contributors


Aaron Smith

Peter Bogner

Vano

Casprine

🤯 Links/Projects

About

🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP100.0%

[8]ページ先頭

©2009-2025 Movatter.jp