endclothing / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
150 stars 79 forks source link

Version 1.0.2 is not published in packagist #44

Open AnowarCST opened 4 years ago

AnowarCST commented 4 years ago

The latest version 1.0.2 is not yet published in packagist.org. So by default, it's still installing the old (1.0.1) version.

Can you please check this?

kitsunesensei commented 4 years ago

The composer.json version hasn't been bumped either with the last release.

https://github.com/endclothing/prometheus_client_php/blob/v1.0.2/composer.json

mentos1386 commented 4 years ago

@NoelDavies Can 1.0.2 get published or 1.0.3? We would need https://github.com/endclothing/prometheus_client_php/pull/17 to use with push gateway.

NoelDavies commented 4 years ago

Sorry @mentos1386 I no longer work at EndClothing.

mentos1386 commented 4 years ago

@NoelDavies sorry to hear that. What dose that mean in regards to ownership of this package? Is there another maintainer?

NoelDavies commented 4 years ago

The other devs at the company should be overseeing this project now.

jnatherley commented 4 years ago

Any update here?

NoelDavies commented 4 years ago

@jnatherley - I wish I could answer. The guys at END. are passionate about this, but keep in mind that COVID is currently a massive factor for all companies (and each one of us in the world :P). Their priorities may be aligned elsewhere out of necessity, which is very much understandable.

I'm sure @dushaun could give you an update on this, but be patient, as I said - COVID is affecting us all :)

Hope you're doing well through this all though! :)

mrceperka commented 4 years ago

Quick "fix" that worked for me:

Add this to composer.json, repositories section.

{
    "type": "package",
    "package": {
        "name": "endclothing/prometheus_client_php",
        "version": "1.0.3",
        "source": {
            "url": "https://github.com/endclothing/prometheus_client_php",
            "type": "git",
            "reference": "b0931c73f9204c8e75259f13184d4350f3e0868a"
        }
    }
}

Add this to composer.json, autoload, psr-4 section.

"Prometheus\\": "vendor/endclothing/prometheus_client_php/src/Prometheus"

And just do composer require endclothing/prometheus_client_php

Note: "reference" points to last commit in master right now.