You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leaf's core http functionality packaged as a serve-yourself module. **Although seperated from Leaf core, it is still part of the default initial installation and doesn't need to be installed manually (unless you want a particular version).**
30
+
Leaf's HTTP abstraction is a developer friendly way to interact with HTTP requests and responses. If you are using it within a Leaf app, there's no need to install anything as it comes pre-installed with Leaf. If you are using it outside of Leaf, you can install it via composer.
31
31
32
32
## Installation
33
33
@@ -45,140 +45,30 @@ composer require leafs/http
45
45
46
46
## Basic Usage
47
47
48
-
The http module comes with a bunch of packages which help you manage the input and output of your app or API. This module comes with the most used Http related functionality like requests, responses, ...
48
+
You can find the full documentation on how to use Leaf Http [here](https://leafphp.dev/docs/http/request).
**The docs for Leaf Http v2 can be found at [https://leafphp.dev/modules/http/v/2/](https://leafphp.dev/modules/http/v/2/).**
59
-
60
-
## Request
61
-
62
-
This is a developer friendly interface which allows you to interact with data coming into your application. [Read the docs](https://leafphp.dev/modules/http/request)
63
-
64
-
## Response
65
-
66
-
This interface allows you to output data from your application in different forms. [Read the docs](https://leafphp.dev/modules/http/response)
67
-
68
-
## Headers
69
-
70
-
This interface allows you to manage headers in your application. [Read the docs](https://leafphp.dev/modules/http/headers)
71
-
72
-
## Cache
73
-
74
-
This interface allows you to manage http cache in your app. [Read the docs](https://leafphp.dev/modules/http/cache)
75
-
76
-
## Status
77
-
78
-
This interface allows you to manage http status codes in your app. [Read the docs](https://leafphp.dev/modules/http/status)
79
-
80
-
**There are also some add on classes which can be installed on demand.**
81
-
82
-
## Session (module)
83
-
84
-
This module allows you to manage session in your application. [Read the docs](/modules/session/)
85
-
86
-
## Cookies (module)
87
-
88
-
This module allows you to manage cookies in your application. [Read the docs](/modules/cookies)
89
-
90
-
## 💬 Stay In Touch
50
+
## Stay In Touch
91
51
92
52
-[Twitter](https://twitter.com/leafphp)
93
53
-[Join the forum](https://github.com/leafsphp/leaf/discussions/37)
94
54
-[Chat on discord](https://discord.com/invite/Pkrm9NJPE3)
95
55
96
-
## 📓 Learning Leaf 3
56
+
## Learning Leaf PHP
97
57
98
58
- Leaf has a very easy to understand [documentation](https://leafphp.dev) which contains information on all operations in Leaf.
99
59
- You can also check out our [youtube channel](https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw) which has video tutorials on different topics
100
-
-We are also working on codelabs which will bring hands-on tutorials you can follow and contribute to.
60
+
-You can also learn from [codelabs](https://leafphp.dev/codelabs/)and contribute as well.
101
61
102
-
## 😇 Contributing
62
+
## Contributing
103
63
104
64
We are glad to have you. All contributions are welcome! To get started, familiarize yourself with our [contribution guide](https://leafphp.dev/community/contributing.html) and you'll be ready to make your first pull request 🚀.
105
65
106
66
To report a security vulnerability, you can reach out to [@mychidarko](https://twitter.com/mychidarko) or [@leafphp](https://twitter.com/leafphp) on twitter. We will coordinate the fix and eventually commit the solution in this project.
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](https://opencollective.com/leaf) or check the [contribution page](https://leafphp.dev/support/) for a list of ways to contribute.
136
-
137
-
And to all our existing cash/code contributors, we love you all ❤️
We are committed to keeping Leaf open-source and free, but maintaining and developing new features now requires significant time and resources. As the project has grown, so have the costs, which have been mostly covered by the team. To sustain and grow Leaf, we need your help to support full-time maintainers.
71
+
72
+
You can sponsor Leaf and any of our packages on [open collective](https://opencollective.com/leaf) or check the [contribution page](https://leafphp.dev/support/) for a list of ways to contribute.
73
+
74
+
And to all our [existing cash/code contributors](https://leafphp.dev#sponsors), we love you all ❤️
0 commit comments