albertcht / lumen-helpers by albertcht

To support Laravel 's unsupported features in Lumen.
30,125
29
2
Package Data
Maintainer Username: albertcht
Maintainer Contact: albert.cht@gmail.com (Albert Chen)
Package Create Date: 2017-12-31
Package Last Update: 2022-11-15
Language: PHP
License: MIT
Last Refreshed: 2024-04-18 15:14:40
Package Statistics
Total Downloads: 30,125
Monthly Downloads: 138
Daily Downloads: 6
Total Stars: 29
Total Watchers: 2
Total Forks: 19
Total Open Issues: 6

Lumen Helpers

php-badge packagist-badge Total Downloads

Description

It can be used for improving implementation compatibility, assuming that you are planning to migrate from Lumen to Laravel in the future.

Session is not included in this package.

Installation

If composer is used, it can be introduced by adding the following description.

composer require albertcht/lumen-helpers

How to use

This package currently provides the following helper functions.

  • mix
  • abort_if
  • abort_unless
  • action
  • app_path
  • asset
  • auth
  • back
  • bcrypt
  • cache
  • request
  • logger
  • method_field
  • mix
  • policy
  • public_path
  • config_path
  • report
  • validator
  • cookie

    It will return Symfony\Component\HttpFoundation\Cookie directly.

  • app_with

    An app () compatible helper corresponding to makeWith call. illuminate/container: From 5.4, you can not pass $parameters to make, instead makeWith prepared, By using app_with, make can be done by passing parameters that ask Lumen, illuminate / container version.