GithubHelp home page GithubHelp logo

shi974 / lara-lens Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hi-folks/lara-lens

0.0 1.0 0.0 366 KB

Laravel package for display diagnostic (config, database, http connections...)

Home Page: https://packagist.org/packages/hi-folks/lara-lens

License: MIT License

PHP 100.00%

lara-lens's Introduction

LaraLens

CICD Github Actions GitHub last commit GitHub Release Date Packagist PHP Version Support

LaraLens

What

LaraLens is a Laravel artisan command to show you the current configuration of your application. It is useful to show in your terminal the status of:

  • some useful configuration variable;
  • the database connection;
  • the tables in the database;
  • the connection via HTTP request.

LaraLens - diagnostic package for Laravel

Why

When I have a new Laravel Application deployed on the target server, usually I perform a list of commands in order to check the configuration, the connection to database, inspect some tables, the response of the web server. I tried to show more information in just one command. This is useful also when the installation of your Laravel application is on premises, and someone else takes care about the configuration. So, in this scenario usually, as developer, your first question is: "how is configured the application?".

Installation

You can install the package via composer:

composer require hi-folks/lara-lens

The Packagist page is: https://packagist.org/packages/hi-folks/lara-lens

Usage

php artisan laralens:diagnostic

Usage: control database connection

You can see Database Connection information, and you can choose the table to check, and the column used for the "order by" (default created_at):

php artisan laralens:diagnostic --table=migrations --column-sort=id

To take the last created user:

php artisan laralens:diagnostic --table=users --column-sort=created_at

To take the last updated user:

php artisan laralens:diagnostic --table=users --column-sort=updated_at

Usage: control the output

You can control the output via the show option. You can define:

  • config
  • connection
  • database
  • runtime
  • migration
  • all The defalut for --show option is all.
php artisan laralens:diagnostic --show=config --show=connection --show=database --show=runtime --show=migration

If you want to see only database information:

php artisan laralens:diagnostic --show=database

Usage: change the style of output table

You can choose one of these styles via --style= option:

  • default
  • borderless
  • compact
  • symfony-style-guide
  • box
  • box-double

For example:

php artisan laralens:diagnostic --style=borderless

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Submit ideas or feature requests or issues

Credits

License

The MIT License (MIT). Please see License File for more information.

lara-lens's People

Contributors

roberto-butti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.