Download the PHP package internetguru/laravel-common without Composer

On this page you can find all versions of the php package internetguru/laravel-common. 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-common

Laravel Common

This package provides handy utilities for Laravel applications.

Branch Status Code Coverage
Main tests coverage
Staging tests coverage
Dev tests coverage

Installation

You can install the package via Composer:

Run Tests Locally

In Visual Studio Code you can simpy use Ctrl+Shift+B to run the tests.

To run the tests manually, you can use the following commands:

Helper Methods ~ Globals

The Helpers class provides useful methods for Laravel applications.

Configuration and example usage:

  1. Add the following lines to the config/app.php file:

  2. Use Helpers class methods in your application:

For all available methods, see the Helpers class.

Helper Macros

Package registers a set of useful macros for Carbon and Numbers. See the macros.php file for the complete list.

Example usage:

CheckPostItemNames Middleware

Middleware that checks for invalid POST parameter names containing dots ".". This middleware helps prevent issues with Laravel's input handling. Throws an exception in non-production environments and logs a warning in production.

To use the middleware for the web group, add the following lines to the bootstrap/app.php file:

Alternatively, you can assign the middleware to specific routes or controllers as needed.

Example:

Translation Service Provider

Logs missing translations and translation variables in the current language. Throws an exception when not in production environment. In debug mode, checks all available languages.

To use the provider, add the following lines to the config/app.php file:

Carbon Interval Cast

Casts a string to a CarbonInterval and back.

Example usage:

Breadcrumb Blade Component

Renders breadcrumb navigation based on routes matching the current URL segments. Supports translations with short and long labels, custom divider, and segment skipping.

Key Features:

Usage:

Example:

System Messages Blade Component

Renders system temporary success messages and persistent error messages in different colors, with a close button.

Include the component in your Blade template where you want the system messages to appear:

Form Blade Components

The package provides a set of Blade components for form and various inputs.

Notes:

Complete example:

Language Switch Blade Component

Renders a language switcher as a list of links with the current language highlighted.

Include the component in your Blade template where you want the language switcher to appear:

License

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


All versions of laravel-common with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^10.0 || ^11.0
torann/geoip Version ^3.0
spatie/laravel-ignition Version ^2.9
livewire/livewire Version ^3.6
internetguru/laravel-recaptchav3 Version dev-master
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 internetguru/laravel-common contains the following files

Loading the files please wait ....