All Projects → appstract → Laravel Response Macros

appstract / Laravel Response Macros

Licence: mit
Extra response macro's for Laravel

Programming Languages

macros
77 projects

Projects that are alternatives of or similar to Laravel Response Macros

Response Xml
The missing XML support for Laravel's Response class.
Stars: ✭ 56 (+60%)
Mutual labels:  laravel, response
Multiformat Response Objects
Response objects for handling multiple response formats within the one controller
Stars: ✭ 59 (+68.57%)
Mutual labels:  laravel, response
Cors
🔮Supported(Laravel/Lumen/PSR-15/Swoft/Slim/ThinkPHP) - PHP CORS (Cross-origin resource sharing) middleware.
Stars: ✭ 266 (+660%)
Mutual labels:  laravel, response
Phpstorm Settings
PHPStorm - Facebook style theme, Live templates etc
Stars: ✭ 31 (-11.43%)
Mutual labels:  laravel
Rememberable
Query caching for Laravel
Stars: ✭ 960 (+2642.86%)
Mutual labels:  laravel
Cms
Statamic 3: The Core Composer Package
Stars: ✭ 965 (+2657.14%)
Mutual labels:  laravel
Nideadmin
【未完成】NideAdmin - 基于 Vue.js + Egg.js 的微信小程序后台框架
Stars: ✭ 35 (+0%)
Mutual labels:  laravel
Laravel Highcharts
Laravel 5 Highcharts Package
Stars: ✭ 31 (-11.43%)
Mutual labels:  laravel
Laravel Package Top 100
对 Packagist 上打了 Laravel 标签 的扩展包进行整理,截止到现在 2016 年 8 月 9号,有超过 7176 个扩展包,以下是下载量最大的 100 个。
Stars: ✭ 971 (+2674.29%)
Mutual labels:  laravel
Laravel Pg Extensions
Laravel extensions for Postgres
Stars: ✭ 33 (-5.71%)
Mutual labels:  laravel
Laravel Mixins
A collection of Laravel goodies.
Stars: ✭ 33 (-5.71%)
Mutual labels:  laravel
Aliyun Oss
Aliyun oss for Laravel5, also support flysystem adapter
Stars: ✭ 31 (-11.43%)
Mutual labels:  laravel
Larabbs
A forum project base on Laravel
Stars: ✭ 967 (+2662.86%)
Mutual labels:  laravel
Enso
Laravel Vue SPA, Bulma themed. For demo login use `[email protected]el-enso.com` & `password` -
Stars: ✭ 959 (+2640%)
Mutual labels:  laravel
Nova Laravel Update Card
Check if you're running the latest Laravel version right from your Nova dashboard.
Stars: ✭ 34 (-2.86%)
Mutual labels:  laravel
Laravel Couchbase
Couchbase providers for Laravel
Stars: ✭ 31 (-11.43%)
Mutual labels:  laravel
Iot
IoT, 这是一个最小Internet of Things ,一个Internet of Things相关的毕业设计产生的一个简化的物联网系统。 。
Stars: ✭ 970 (+2671.43%)
Mutual labels:  laravel
Laravel Guided Image
Simplified and ready image manipulation for Laravel through intervention image.
Stars: ✭ 32 (-8.57%)
Mutual labels:  laravel
Nem Php
NEM Blockchain NIS API Wrapper and Software Development Kit for PHP
Stars: ✭ 32 (-8.57%)
Mutual labels:  laravel
Deapk
DeAPK is an open-source, online APK decompiler which lets you upload an APK and then decompile it to Smali or Java sources. It is built using Laravel, Vue.js, Bootstrap, FontAwesome, Pusher, Redis, MySQL, apktool, jadx and hosted atop Oracle cloud platform.
Stars: ✭ 33 (-5.71%)
Mutual labels:  laravel

Laravel Response Macros

Latest Version on Packagist Total Downloads Software License Build Status

This package is a collection of custom response macros that you can re-use in a variety of your routes and controllers.

Installation

You can install the package via composer:

composer require appstract/laravel-response-macros

Usage

Message

return response()->message('hello world!', 200);

Result

{
    "message": "hello world!"
}

With the Http Status Code: 200

Error

return response()->error('Something went wrong', $statuscode = 400);

Result

{
    "message": "Something went wrong"
}

With the Http Status Code: 400

Success

return response()->success(['some' => 'data'], $statuscode = 200);

Result

{
    "data": {"some": "data"}
}

With the Http Status Code: 200

PDF

Creates a (downloadable) PDF response from PDF contents.

return response()->pdf($pdfData, 'filename.pdf', $download = false);

Testing

$ composer test

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].