Download the PHP package arcostasi/console-log without Composer

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

Console Log Facade for Laravel 5.x

The JavaScript console is an invaluable tool to help develop and debug our apps. With the console object and its logging methods, long are the days of calling alert() to debug and get a variable’s value. On top of that, thanks to a work in progress standard, modern browsers are finally supporting the same set of methods.

Requirements

Installation

And now you can publish your config:

Add to config/app.php

Usage

Add in your blade view template:

and add Console facade in your PHP files (controllers or models):

Logging

Console::Log is the usual method we use to log values out to the console:

But we also have access to more logging methods like warn, info and error:

As you can see from the resulting console output, using the warn or error methods also gives us a stack trace:

You can also prints out objects with Debug method:

or you can also trigger a stack trace with Trace method:

Result from console output:

Table

If you feel so inclined, you can even display data in the console more neatly in a table format using Table method:

As you can see from the resulting console output, using the Table method:

Dir & DirXML

Console Dir and DirXML prints out objects in a nice formatted way:

As you can see from the resulting console output, using the dirxml method:

Clearing

You can clear the console with Clear method:

Asserting

The Assert method is an easy way to run simple assertion tests:

Counting

The Count method is used to count the number of times it has been invoked with the same provided label.

Result from console output:

Timing

As we’ve showed in this short post, you can start a timer with Time method and then end it with EndTime methos. Optionally the time can have a label:

Result from console output:

Grouping

Use Group and GroupEnd methods to group console messages together with an optional label. Notice also how a group can be nested into another one:

Result from console output:

Credits

Licence

This library is signed under MIT License, Reproduce under it's terms.


All versions of console-log with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version 5.5.*|5.6.*|5.7.*||5.8.*
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 arcostasi/console-log contains the following files

Loading the files please wait ....