Git Product home page Git Product logo

Comments (5)

boenrobot avatar boenrobot commented on August 18, 2024

Composer is currently only used as means of getting the development ("unpackaged") version dependencies.

I'm kind of confused about packagist's version policy, and about if there's a way to have what is now AND keep the different packaged versions available.

So at this point - no.

BUT, you don't need to have it available at packagist to install it. Composer can install from PEAR repositories, so in your composer.json file, you can just have

{
    "repositories": [
        {
            "type": "pear",
            "url": "http://pear2.php.net"
        }
    ],
    "require": {
        "pear-pear2/PEAR2_Net_RouterOS": "*"
    }
}

to get the latest packaged version.

from net_routeros.

vittore avatar vittore commented on August 18, 2024

Thanks for your quickly response.
I use this in my composer.json:


    "repositories": [
    {
        "type": "package",
        "package": {
            "name": "pear2/net_transmitter",
            "version": "@dev",
            "source": {
                "type": "git",
                "url": "https://github.com/pear2/Net_Transmitter.git",
                "reference": "master"
            },
            "autoload": {
                "psr-0": {
                    "PEAR2\\Net\\Transmitter\\": "src/"
                }
            }
        }
    },
    {
        "type": "package",
        "package": {
            "name": "pear2/cache_shm",
            "version": "@dev",
            "source": {
                "type": "git",
                "url": "https://github.com/pear2/Cache_SHM.git",
                "reference": "master"
            },
            "autoload": {
                "psr-0": {
                    "PEAR2\\Cache\\SHM": "src/"
                }
            }
        }
    },
    {
        "type": "package",
        "package": {
            "name": "pear2/net_routeros",
            "version": "@dev",
            "source": {
                "type": "git",
                "url": "https://github.com/pear2/Net_RouterOS.git",
                "reference": "master"
            },
            "autoload": {
                "psr-0": {
                    "PEAR2\\Net\\RouterOS\\": "src/"
                }
            }
        }
    }

    ],
    "require": {
        "php": ">=5.3.3",
        "pear2/net_transmitter": "@dev",
        "pear2/cache_shm": "@dev",
        "pear2/net_routeros": "@dev"
    }

from net_routeros.

boenrobot avatar boenrobot commented on August 18, 2024

Whoa, that's a mouthful.

Well... I already showed you above how you can use the latest packaged version, but if you want the latest unpackaged ones... yeah, unfortunately, the way you do it is exactly how it's done.

I understand it's far from convenient (due to composer's inability to register additional repositories on the fly), but unpackaged versions aren't meant to be convenient, and I don't know how to make it more convenient.

from net_routeros.

boenrobot avatar boenrobot commented on August 18, 2024

I've added the packaged to packagist, in their current form... but I have no idea about the consequences now...

I guess.... you could try it now... or something.

from net_routeros.

vittore avatar vittore commented on August 18, 2024

Fine! Now work (in a symfony2.1 project) with only:

 "require": {
        "php": ">=5.3.3",
        "pear2/net_routeros": "@dev"
    },

Thanks for your hard work.
v.

from net_routeros.

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.