Giter VIP home page Giter VIP logo

laravel-tinker-server's Introduction

Laravel Tinker Server

Latest Version on Packagist Build Status Quality Score Total Downloads

This package will give you a tinker server, that collects all your tinker call outputs and allows you to interact with the variables on the fly.

About this package

This package was built as part of my PHP Package Development video course. Register for the course to learn how this package was built.

Installation

You can install the package via composer:

composer require beyondcode/laravel-tinker-server

The package will register itself automatically.

Optionally you can publish the package configuration using:

php artisan vendor:publish --provider=BeyondCode\\LaravelTinkerServer\\LaravelTinkerServerServiceProvider

This will publish a file called laravel-tinker-server.php in your config folder.

In the config file, you can specify the dump server host that you want to listen on, in case you want to change the default value.

Usage

Start the tinker server by calling the artisan command:

php artisan tinker-server

And then you can put tinker calls in your methods to dump variable content as well as instantly making them available in an interactive REPL shell.

$user = App\User::find(1);

tinker($user);

In addition to the tinker method, there is also a td method, that behaves similar to dd. It tinkers the variable and dies the current request.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

laravel-tinker-server's People

Contributors

erlangparasu avatar mpociot avatar tassianoalencar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-tinker-server's Issues

Windows issue

The underlying react/stream package doesn't work in a normal Windows console (issue) A runtime exception is thrown with the message "Unable to set stream resource to non-blocking mode".

It should work in a Windows Subsystems for Linux console though.

Might be worth mentioning in the README

Output goes to top of view, not console.

Running php artisan tinker-server and putting a tinker($variable) into a route, then hitting that route, is dumping the output to the top of the view, as opposed to the console.

screenshot 2019-02-21 at 16 35 31

screenshot 2019-02-21 at 16 35 44

screenshot 2019-02-21 at 16 37 30

Tinker 2 support request

Today I wanna install Laravel-tinker-server but it's occurs

Problem:

Problem 1

  • Can only install one of: laravel/tinker[1.x-dev, v2.2.0].
  • Can only install one of: laravel/tinker[v2.2.0, 1.x-dev].
  • Can only install one of: laravel/tinker[1.x-dev, v2.2.0].
  • beyondcode/laravel-tinker-server 1.0.0 requires laravel/tinker ^1.0 -> satisfiable by laravel/tinker[1.x-dev].
    - Installation request for beyondcode/laravel-tinker-server ^1.0 -> satisfiable by beyondcode/laravel-tinker-server[1.0.0].

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.