Download the PHP package omnicode/lara-tools without Composer

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

Lara Tools - Convenient tools for Laravel

Contents

  1. LaraUtil
    • hasTable
    • hasColumn
    • getFullColumns
    • hashPassword
    • verifyPassword
  2. ModelExtrasTrait
    • saveAssociated

LaraUtil

LaraUtil contains the following utility methods

hasTable

Checks if the given table exists - caching the result, returns true or false

hasColumn

Checks if the given table has the given column - caching the query, returns true or false

getFullColumns

Accepts the columns list and the table name and adds the table name into columns if does not exist e.g.

hashPassword

Hashes the given string by bcrypt, however afterwards encrypting the password's hash by application-side key. It also applies sha256 method (before hashing) to remove bcrypt's length restriction - more

will be string like this eyJpdiI6IlU4amxZaVNCc2xjemlkZUNWRFVhb3c9PSIsInZhbHVlIjoidWs0bmRcL1JFMHk1dUE4Yk9kWFo3b2VSZEJuYXk5NngwUXMxMDBieTdvOVZ6d1JWQ3RObVE3RGZmcHlqYnV1Ymw5OFVKelRlb2JsSllcL21FVlk4WklVNHkzcnl5Ym90T0tJVzNZalRyUmI2dz0iLCJtYWMiOiI2MDE3ZTQ1NGE0NDcwNTY2Yjc3NzAyZmZlOWU4ZDBkMTE4ODNhNTY0YTE2ZmYzNDNkNDA0ZGI2ZWRhZjhjMTA3In0=

verifyPassword

Verifies the password hashed by hashPassword method above - returns true or false

ModelExtrasTrait

ModelExtrasTrait is a trait to be used in Models - provides the following methods

saveAssociated

saveAssociated method is a wrapper method, that allows to save BelongsToMany and HasMany related models in a single transaction, e.g. suppose we need to save a product with its related categories, we would use

the $data should be an array like this


All versions of lara-tools 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 omnicode/lara-tools contains the following files

Loading the files please wait ....