Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rmunate/quick-request-laravel
Execute requests easily and quickly to the Laravel backend with QuickRequest, leave Ajax aside, now you have an easy, secure, and modern way of making requests.
https://github.com/rmunate/quick-request-laravel
ajax axios js laravel quickrequest
Last synced: 15 days ago
JSON representation
Execute requests easily and quickly to the Laravel backend with QuickRequest, leave Ajax aside, now you have an easy, secure, and modern way of making requests.
- Host: GitHub
- URL: https://github.com/rmunate/quick-request-laravel
- Owner: rmunate
- License: mit
- Created: 2024-05-20T21:12:55.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-01T15:15:09.000Z (4 months ago)
- Last Synced: 2024-10-11T11:11:21.469Z (about 1 month ago)
- Topics: ajax, axios, js, laravel, quickrequest
- Homepage: https://rmunate.github.io/Quick-Request-Laravel/
- Size: 2.55 MB
- Stars: 20
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QuickRequest Laravel
![Banner de Quick Request](https://rmunate.github.io/Quick-Request-Laravel/img/quick-request-banner.png "Quick Request")
## Introduction
**QuickRequest** is an ultra-lightweight tool designed for swift and efficient requests to the Laravel backend.
By leveraging the "fetch" mechanism, this solution streamlines the execution of requests to Laravel controllers, eliminating the need for manual assignment of tokens, base URLs, hidden inputs, and other method-specific parameters.
QuickRequest provides a clean and elegant coding experience, making it a pleasant shift for developers accustomed to older technologies like Ajax.
Tailored to meet specific requirements, QuickRequest offers essential features for easily managing various request types in a standard Laravel application, including GET, POST, PUT, PATCH, and DELETE.
Additionally, it offers a convenient approach for efficient file downloads by effectively handling Blobs.
Forget about writing extra lines of codeβexperience the minimalist style of QuickRequest.
## Documentation
[![πππ **FULL DOCUMENTATION** πππ](https://img.shields.io/badge/FULL%20DOCUMENTATION-Visit%20Here-blue?style=for-the-badge)](https://rmunate.github.io/Quick-Request-Laravel/)### Installation
In order to utilize this tool, you need to have the `csrf-token` meta tag in your main template, as per the official Laravel documentation on [X-CSRF-TOKEN](https://laravel.com/docs/11.x/csrf#csrf-x-csrf-token). This value will be independently read by the `QuickRequest` package, so you should NOT include the `@csrf` directives in your forms or create hidden inputs with this value, as **the library handles it for you**.
```html
```
### CDN Usage
If you're not using VITE in your project, you can install this solution simply by utilizing the CDN available for your use.
It's as easy as adding the following line of code to the `` section of your main template.
```html
```
Alternatively, you could download the content from the aforementioned URL, place it in the `public` directory within a `js` folder, keeping the code locally in your project. However, this means you would maintain code that won't be updated with the adjustments or enhancements applied to the project.
```html
```
### NPM Usage with VITE
If you're developing your project with VITE, it will be much more convenient to install this solution using the following command.
```bash
npm i quick-request-laravel
```This way, the package will be readily available in your system; you just need to import it into your modules.
```javascript
import { QuickRequest } from 'quick-request-laravel';
```## License
This project is under the [MIT License](https://choosealicense.com/licenses/mit/).π Support My Projects! π
[![Become a Sponsor](https://img.shields.io/badge/-Become%20a%20Sponsor-blue?style=for-the-badge&logo=github)](https://github.com/sponsors/rmunate)
Make any contributions you see fit; the code is entirely yours. Together, we can do amazing things and improve the world of development. Your support is invaluable. β¨
If you have ideas, suggestions, or just want to collaborate, we are open to everything! Join our community and be part of our journey to success! ππ©βπ»π¨βπ»