Giter Club home page Giter Club logo

Comments (7)

daison12006013 avatar daison12006013 commented on May 9, 2024 3

You could do it these ways.

Option 1

Create a file path-to-your-project/phpinsight.sh

#!/bin/sh
composer global require nunomaduro/phpinsights
cp ~/.composer/vendor/nunomaduro/phpinsights/stubs/laravel.php phpinsights.php
php -d memory_limit=-1 ~/.composer/vendor/bin/phpinsights --config-path=phpinsights.php

Option 2

Create a file path-to-your-project/phpinsight.sh

#!/bin/sh
rm -rf ../phpinsights
(
    mkdir -p ../phpinsights
    cd ../phpinsights
    touch composer.json
    echo '{}' > composer.json
    composer require nunomaduro/phpinsights
)
php -d memory_limit=-1 ../phpinsights/vendor/bin/phpinsights --config-path=../phpinsights/vendor/nunomaduro/phpinsights/stubs/laravel.php

from phpinsights.

filipac avatar filipac commented on May 9, 2024

I have this problem too, tried to install it in a 5.5 LTS app

from phpinsights.

Sitethief avatar Sitethief commented on May 9, 2024

I encountered this issue as well in Laravel 5.5.

from phpinsights.

deleugpn avatar deleugpn commented on May 9, 2024

What if you install it globally instead of within your project itself and then use the binary to run on your project?

from phpinsights.

MattWohler avatar MattWohler commented on May 9, 2024

Refer to the official documentation on the solution for this:

https://phpinsights.com/get-started.html#avoid-composer-conflicts

Personally, I also add the: --dev, flag when requiring the package itself.

from phpinsights.

karljakober avatar karljakober commented on May 9, 2024

It was requested for me to post this as an issue, I believe Nuno may work to make this more compatible, but the workarounds might be the only solution. I cant comment either way. Ive been using a variation of above script and works fine for me.

from phpinsights.

nunomaduro avatar nunomaduro commented on May 9, 2024

There are two options to avoid this issue here: https://phpinsights.com.

from phpinsights.

Related Issues (20)

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.