Download the PHP package teners/laravel-key-case without Composer

On this page you can find all versions of the php package teners/laravel-key-case. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-key-case

Laravel Key Case

A Laravel package that transforms request and response data keys.

Latest Version on Packagist GitHub Tests Action Status issues stars GitHub license Total Downloads

Why?

It is a common convention to work with camel case in Javascript and most front-end technologies and snake case in PHP (Backend), this package makes that a breeze as you can work with your data columns just as you like in laravel and your responces or request data are automatically converted to any case.

Installation

Install Laravel Key Case, run the following command in your terminal:

Publish the package configuration file

You can then customize what case to use for each of the request and the response data.

Use the middlewares

This package includes two middlewares

You can register their aliases (or use them dirrectly on the api route group if you are using them through the api) for easy reference elsewhere in your app:

In Laravel 11 open /bootstrap/app.php and register them there:

In Laravel 9 and 10 you can add them in /app/Http/Kernel.php:

Ignoring Routes

You can specify routes to be ignored for request and response transformation in the configuration file:

Route listed in the ignore will not be transformed for bothe the resquest and response, while those in the ignoreRequest will not be transformed for only the request, and those in ignoreResponse will be ignored for the response transformation.

Contributions

Contributions are welcome via Pull Requests on Github.

Issues

Please report any issue you encounter in using the package through the Github Issues tab.

Testing

To run tests, use:

Credits

Contributors

Contributors list will be added here

License

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


All versions of laravel-key-case with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package teners/laravel-key-case contains the following files

Loading the files please wait ....