Download the PHP package iqbalatma/laravel-utils without Composer

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

Laravel Utils

Laravel utils is collection of class, helper, command console for help you to efficiency your development time. Here we have command console for generate enum, abstract, interface, or trait

Config

Target dir is where generated file root path. Change this target dir location by your preference.

Generate File Command

You can generate enum with this utils You can also create backed enum, with string or int as type

Enum

You can generate trait with this command

Trait

You can generate abstract with this command

Abstract

You can generate interface with this command

Interface

Publish Stub File

In some condition you may publish stub file and modify template.

Formatting API Response

You can format your api response using this feature. For example :

Description :

The response would be

You can customize response code (rc) using third argument. You can override to add response code of this class. Just override the class and override mapHttpCode() function. For example you can add response code for ERR_NOT_FOUND()

This is how to handle exception and customize response format:

You can change behavior of json formatting via config file.

Helper

ddapi()

You can use ddapi() helper function to dump api data to see data of a variable


All versions of laravel-utils 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 iqbalatma/laravel-utils contains the following files

Loading the files please wait ....