Download the PHP package vizrex/laraviz without Composer

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

READ THIS FIRST

It is highly recommended for all contributors to update this file whenever there's a major update in source code. Use this tool for easy editing or visit this page for comprehensive guide on markdown syntax.

Introduction

This is base package with various helpers and abstract classes, acting as a foundation and a standard for other packages. It is highly recommended to build future packages and projects on top of this package.

Included Items

Base Classes

BaseCommand

A base class for Console commands of Laravel. It contains three new methods:

BaseException

BaseController

BaseServiceProvider

It has a static method getNamespace() that returns the namespace of this service provider in a specific format.

BaseRepository

It has the implementation of basic methods related to a resource:

BaseMigration

This class can be extended by Laravel migration classes. Child class would need to implement following three methods:

BaseSeeder

BaseTrait: LaravizModel

Use this trait in Eloquent Models and override findByIdentifier() method. There can be more than one identifiers of a model e.g. a user can be identified by its id as well as by email attribute. So instead of writing orWhere clauses, findByIdentifier() method can be called neatly.

Base Resource

This class has following two additional methods as compared to default Resource of Laravel:

There're two properties of this class:

Static: $defaultResponseType

Default response type can be set with this property (default is ResponseType::FULL)

Non-static: $responseType

This property overrides the $defaultResponseType and can be set only via constructor.

Default Routes

Following open routes will be added to the application using this package:

/time

It returns current datetime with timezone details as JSON string.

/info

It returns the output of phpinfo()

These routes can be customized using config/laraviz.php file. Execute the following command to publish this config file:

Added Helpers

Eloquent Helpers

get_fillables()

It returns the fillable attributes as an associative array having key and value.

Html Helpers

public_url()

Returns base URL of application.

css($absolutePathOrArray)

Adds the HTML tag for including CSS. You can pass either an string, an array or an associative array where the key should contain the URL of CSS and the value should contain an expression such that CSS would be included only when the expression yields to true.

public_css($relativePath)

Adds the HTML tag for including css relative to public/css folder.

js($absolutePathOrArray)

Adds the HTML tag for including Javascript file. See the description of css() method. This method works exactly like that.

public_js($relativePath)

Adds the HTML tag for including js relative to public/js

Path Helpers

merge_url()

Currently it simply concatenates two string and adds a forward slash / between them. It can be enhanced to handle more complex situations.

String Helpers

str_concat()

This function accepts variable number of parameters and concatenates.

s()

This helper method is a wrapper on trans() and __() methods of Laravel. Using this method will eliminate the need of specifying language/translations file name every time. Simply specify a default language file in config/laraviz.php file and only pass the key to s() method. It will simply concatenate the configured file name to the given key and pass it to trans() method.

System Helpers

Following methods have very basic implementation. They're sort of thin wrappers. However there's a lot of room for enhancements

To-dos

Following are the approved items:

Wishlist

Add the suggestions in this wishlist. Only approved wishlist items can be moved to To-dos list:


All versions of laraviz with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
bensampo/laravel-enum Version ^1.15
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 vizrex/laraviz contains the following files

Loading the files please wait ....