Download the PHP package abdullah-mateen/laravel-helping-metarial without Composer

On this page you can find all versions of the php package abdullah-mateen/laravel-helping-metarial. 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-helping-metarial

Laravel Helping Material

This package is a collection of useful tools for Laravel developers. It includes helper functions for common tasks, enums for defining constants, helpful traits for models and controllers, laravel validation rules for custom validations, and a simple media upload library for handling file uploads. This package aims to make Laravel development easier and faster.

Table of contents

Getting Started

This package offers a variety of features to enhance your web development experience. Some of the features are:

This package is designed to help you with your web development projects. We hope you find it useful and enjoyable.

Prerequisites

(Back to top)

This project requires PHP (version 8.1 or later) you can use xampp, wamp, laragon or any other option that is suitable to you, they are really easy to install. To make sure you have them available on your machine, try running the following command.

Installation

(Back to top)

Require this package with composer using the following command:

Publish

(Back to top)

You can use the publish command to publish all the files. This will allow you to modify the files as you wish. To publish your files, you need to execute this command in PowerShell, cmd or any other terminal.

Once you run the above command it will display a menu of files to publish. You can select one or more files by typing their numbers separated by commas, as shown below:

Usage

Enums

(Back to top)

This package is using php default enums which are available from (PHP 8 >= 8.1.0) onward.

Dir Enums Description
Media MediaDiskEnum
MediaTypeEnum
Both enums are related to Media model which is also included in this package.
Mostly used in Simple Media Library which is documented below
User AccountStatusEnum
GenderEnum
RoleEnum
These enums are related to User model which are mostly/commonly used wherever there is a user
StatusEnum General Status enum like to manage active/inactive statuses of a model

Example

Note: if you are going to use these enums as values then you don't need to cast them to enums.

Helpers

(Back to top)

list of helper functions will be available soon. For now you can have a look at available functions here

The helper functions are not automatically registered by default. To utilize these helper functions, you must first publish them using the command php artisan lhm:publish and select the helper functions options. Afterward, navigate to your composer.json file and perform the following steps:

Finally, run the command composer dump-autoload or its shorthand composer du in your current directory terminal.

Example

Interface

(Back to top)

Interface Description
ColorsInterface This interface contain a list of color classes and color codes of those classes for this you also need sass file which contain those classes.
That sass file is included in this package

Example

you can see another examples in-use in Enums here

Middleware

(Back to top)

Middleware usage Description
AuthorizationMiddleware authorize:1001,3001,5001 This middleware is used to authorize users based on their levels.

The middleware is pre-registered, but if you have published it using the command php artisan lhm:publish and selected the middleware option, you will receive an overridden file for the same middleware. In such cases, it's necessary to manually register the middleware. To do so, follow these steps in the app\Http\Kernel.php file:

Example

take a look at AuthorizationMiddleware here

Models

(Back to top)

Resources

(Back to top)

Rules

(Back to top)

Simple Media Library

(Back to top)

//: # ()

//: # ()

Author

(Back to top)

License

(Back to top)

The MIT License (MIT) 2024 - Abdullah Mateen. Please have a look at the LICENSE.md for more details.


All versions of laravel-helping-metarial with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-intl Version *
ext-json Version *
ext-fileinfo Version *
ext-simplexml Version *
intervention/image Version ^3.3
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 abdullah-mateen/laravel-helping-metarial contains the following files

Loading the files please wait ....