Download the PHP package orbas/util without Composer

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

Laravel Util

Build Status StyleCI

Laravel Util provides some useful method, such like enum and presenter

Installation

To get the latest version, simply require the project using Composer:

$ composer require orbas/util

and register the Orbas\Util\ServiceProvider::class service provider in your config/app.php

Enum

A enum is a distinct type that consists of a set of named constants called the enumerator list.

You can use it in a easier way to make your own enum.

Create a enum class

$ php artisan util:make:enum Gender

That will create a class to app/Enums/ folder

Define the enum

or you can define the key

Enjoy using it

Generate a collection of gender

Get value from key

Use Facade

Add class aliases to the aliases array of config/app.php:

then you can use it like this

More functionality will be released in the future.

Presenter

or you can call it view presenter. Sometimes you have some logic need to be performed before you put the data.

for example

A presenter is a pattern that you can put the logic far from view and model. (keep model clean, and do what it should do.)

Create a presenter class

$ php artisan util:make:presenter User

That will create a class to app/Presenters folder

Edit your presenter logic

Put present trait to your model

Usage

Multi-language with Enum

Presenter provides auto translation.

Put enums.php to resources/lang/YOUR_LOCALE/enums.php

Presenter will translate for you

License

Laravel Util is licensed under The MIT License (MIT).


All versions of util 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 orbas/util contains the following files

Loading the files please wait ....