Coder Social home page Coder Social logo

andykwesi / leaf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leafsphp/leaf

0.0 0.0 0.0 902 KB

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

Home Page: https://leafphp.dev

License: MIT License

PHP 100.00%

leaf's Introduction




Leaf 3

Latest Stable Version Total Downloads License



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 the Leaf CLI

leaf create <project-name> --v3 --basic

<project-name> is your project name

You can also use Composer to install Leaf 3 in your project quickly.

composer require leafs/leaf

Install Leaf 2:

You can install Leaf 2 in your project 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. After installing Leaf, create an index.php file.

<?php

require __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 documentation here

✈️ The Leaf Ecosystem (Libs & Frameworks)

Project Status Description
leaf Latest Stable Version Total Downloads Create websites and APIs quickly
leafmvc Latest Stable Version Total Downloads An MVC wrapper for leaf (for general development)
leafapi Latest Stable Version Total Downloads An MVC wrapper for leaf geared towards API development
skeleton Latest Stable Version Total Downloads Leaf boilerplate for rapid development
leaf-ui Latest Stable Version Total Downloads A PHP library for building user interfaces
cli Latest Stable Version Total Downloads CLI for creating & interacting with your leaf apps

🧩 The Leaf Ecosystem (Modules)

Project Status Description
alchemy Latest Stable Version Total Downloads Simpler tests for your PHP apps
aloe Latest Stable Version Total Downloads Smart console helper for leaf mvc, leaf api and skeleton
anchor Latest Stable Version Total Downloads Basic security tools
auth Latest Stable Version Total Downloads Simple but powerful authentication system for your apps
bareui Latest Stable Version Total Downloads Dead simple templating engine with no compilation (blazing speed)
blade Latest Stable Version Total Downloads Laravel blade templating port for leaf
cookie Latest Stable Version Total Downloads Cookie management without the tears
cors Latest Stable Version Total Downloads CORS operations made simple
csrf Latest Stable Version Total Downloads Basic CSRF protection
date Latest Stable Version Total Downloads PHP dates for humans
db Latest Stable Version Total Downloads Leaf Db from v2 (actively maintained)
db-old Latest Stable Version Total Downloads Leaf Db from v1 (still maintained)
exception Latest Stable Version Total Downloads Leaf's exception wrapper (fork of whoops)
experiments Latest Stable Version Total Downloads collection of experimental modules
fetch Latest Stable Version Total Downloads HTTP requests made simple
form Latest Stable Version Total Downloads Form processes and validation
fs Latest Stable Version Total Downloads Awesome filesystem operations + file uploads
http Latest Stable Version Total Downloads Http operations made simple (request, response, ...)
logger Latest Stable Version Total Downloads leaf logger module
mail Latest Stable Version Total Downloads Mailing made easy with leaf
mvc-core Latest Stable Version Total Downloads Core MVC tools powering our MVC wrappers
password Latest Stable Version Total Downloads Password encryption/validation/hashing in one box
redis Latest Stable Version Total Downloads Redis module
router Latest Stable Version Total Downloads Default router for leaf php
session Latest Stable Version Total Downloads PHP sessions made simple
tilly Latest Stable Version Total Downloads Simple utility 'toolkit' for PHP applications
veins Latest Stable Version Total Downloads Leaf veins templating engine
viewi Latest Stable Version Total Downloads Leaf integration with Viewi PHP

πŸ’¬ Stay In Touch

πŸ““ Learning Leaf 3

  • Leaf has a very easy to understand documentation which contains information on all operations in Leaf.
  • You can also check out our youtube channel which has video tutorials on different topics
  • You can also learn from codelabs and contribute as well.

πŸ˜‡ Contributing

We are glad to have you. All contributions are welcome! To get started, familiarize yourself with our contribution 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

Wahyu Kristianto

JeiHO

🀩 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 on open collective or check the contribution page for a list of ways to contribute.

And to all our existing cash/code contributors, we love you all ❀️

Sponsors


Netlify

Casprine

Vano

Farhan Yahaya

Lucas Chaplain

Dawuda Iddris

Aaron Smith

Peter Bogner

King David Gyimah

Andy Kwesi Apenteng

🀯 Links/Projects

leaf's People

Contributors

awilum avatar ftonato avatar herber avatar jeijei4 avatar kristories avatar monkeywithacupcake avatar mychidarko avatar pablouser1 avatar pjotrsavitski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.