Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not available in composer #16

Closed
stankut opened this issue Feb 26, 2020 · 6 comments
Closed

Not available in composer #16

stankut opened this issue Feb 26, 2020 · 6 comments

Comments

@stankut
Copy link

stankut commented Feb 26, 2020

This package is not longer available in composer.
Has something happened?

@roland-d
Copy link
Contributor

roland-d commented Mar 29, 2020

@stanbellcom Today I found out the same thing. This is what I have done for now:

  1. Download the release package
  2. Unpack it into folder gaarf\xml-to-php-array\ inside the vendor folder
  3. Add the following into my composer.json file or update the PSR-4 autoload if you already have it
"autoload": {
    "psr-4": {
      "Gaarf\\XmlToPhp\\": "\\vendor\\gaarf\\xml-to-php-array\\src\\"
    }
  }
  1. Run composer dump-autoload
  2. The class is now available

Hope this helps someone :)

@loekvangool
Copy link

loekvangool commented May 20, 2020

It's composer dump-autoload

And the method is available as Gaarf\XmlToPhp\Convertor::covertToArray()

@roland-d
Copy link
Contributor

@loekvangool Asbolutely, thank you. I updated the instructions.

@janbarasek
Copy link
Contributor

@gaarf Can you release a new tag for Composer? Here: https://github.com/gaarf/XML-string-to-PHP-array/releases

Because this package is currently 17 commits behind since the last release.

Snímek obrazovky 2020-10-25 v 19 12 58

Thanks.

@janbarasek
Copy link
Contributor

@roland-d Your solution is not suitable because it violates the principle of releasing packages. The right solution is to wait until the next stable version of the package comes out, or ask @gaarf.

@gaarf
Copy link
Owner

gaarf commented Oct 25, 2020

@gaarf gaarf closed this as completed Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants