Git Product home page Git Product logo

Comments (4)

elbojoloco avatar elbojoloco commented on May 26, 2024 1

Definitely go for JSON manipulation, I was thinking since this package is used for generating NEW projects, we can assume latest stable version for all composer packages (let composer decide compatibility among deps).

from laravel-create.

ajthinking avatar ajthinking commented on May 26, 2024

Great idea!
It would be really neat to get some help/suggestions for dependencies.
There is a similar idea listed here: https://trello.com/c/fsCCPlv8 (for custom commands)

A general approach would be to create a JSON/dependency-Pipe that manages composer.json / package.json or any JSON file basically. Will have to tinker with that.

I think this will be pushed back to next version though since its not critical. Keeping this suggestion in Trello and closing this issue for now, to keep it somewhat tidy here. But please feel free to continue discussion :)

from laravel-create.

elbojoloco avatar elbojoloco commented on May 26, 2024

Here are some more suggestions:

barryvdh/laravel-ide-helper
laravel/tinker
laravel/telescope
laravel/socialite
laravel/passport
laravel/dusk
laravel/scout
jenssegers/agent
rickselby/laravel-gate-cache

Note that laravel/envoy must be installed globally, so it's not as simple as just putting it inside composer.json, though taking into account only the packages that are easily writable to composer.json, it shouldn't be that big of a feature right?

from laravel-create.

ajthinking avatar ajthinking commented on May 26, 2024

JSON manipulation approach

Setting up a ComposerPipe is easy. By default it could have the top 100 packages selectable in a settings tab with sensible defaults. Though not sure how it will keep dependency versions compatible and up to date. Example (see the numbers!):

        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^3.0",
        "phpunit/phpunit": "^7.5"

Actually calling composer executable

The alternative, running exec('composer require user/package') or using system() or similar can be really painful in my experience, a rabbit hole me myself wont enter right now :) But I would be happy to merge PRs.

from laravel-create.

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.