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 high-performance Laravel package that automatically transforms request and response data keys between different naming conventions (camelCase โ†” snake_case, kebab-case, etc.).

Latest Version on Packagist GitHub Tests Action Status Issues Stars GitHub License Total Downloads

๐ŸŽฏ Why Laravel Key Case?

Bridge the gap between frontend and backend naming conventions effortlessly. Work with your preferred naming style in both JavaScript (camelCase) and PHP (snake_case) without manual conversion.

๐Ÿ“ฆ Installation

Install via Composer:

Publish Configuration (Optional)

Quick Start

Laravel 11

Register middleware in bootstrap/app.php:

Older laravel versions

Add to app/Http/Kernel.php:

Configuration

The package works with zero configuration, but you can customize it by publishing the config file:

๐Ÿ“– Usage Examples

Basic API Transformation

Frontend (JavaScript)

Backend (Laravel)

Route-Specific Control

Supported Case Types

Case Type Example Use Case
camel firstName JavaScript, JSON APIs
snake first_name PHP, Database columns
kebab first-name URLs, CSS classes
studly FirstName Class names
lower firstname Simple keys
upper FIRSTNAME Constants
ucfirst Firstname Sentences
ucwords First Name Titles
singular user (from users) Model names
plural users (from user) Collections
slug first-name URLs
title First Name Display text

Error Resilience

๐Ÿงช Testing

Run the test suite:

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.

When reporting issues, please include:

Testing

To run tests, use:

Credits

Contributors list will be added here

License

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

Made with โค๏ธ by Teners - if this package helped you โญ Star us on GitHub


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 ....