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

Cannot install #3

Closed
telkins opened this issue Aug 6, 2019 · 9 comments
Closed

Cannot install #3

telkins opened this issue Aug 6, 2019 · 9 comments
Assignees
Labels

Comments

@telkins
Copy link

telkins commented Aug 6, 2019

Issue summary

The docs have pretty straightforward instructions on how to install:

$ composer require bakame-php/dice-roller

System informations

I'm not sure what to put here. Please let me know if there's any additional information that might help.

Standalone code, or other way to reproduce the problem

I go to the command line and execute the following command:

$ composer require bakame-php/dice-roller

Expected result

The package is installed.

Actual result

The package is not installed and the following message is displayed:

Could not find a matching version of package bakame-php/dice-roller. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).

I also noticed that the readme.md doc shows the following on the package's main github page:

release | no releases or repo not found

Also, I can't find the package on packagist.org....but perhaps I'm looking in the wrong place...?

@nyamsprod
Copy link
Member

@telkins yes currently the code is not yet on packagist 👍 the reason being that I'm not really ready to do it yet

@telkins
Copy link
Author

telkins commented Aug 6, 2019

@nyamsprod OK. Thx for the info. I guess I'd like to know, then, how you might suggest we install it. :-)

@telkins
Copy link
Author

telkins commented Oct 16, 2019

@nyamsprod Any updates on this?

@nyamsprod
Copy link
Member

nyamsprod commented Oct 16, 2019

I'd say the easiest way for you would be to fork and release it's MIT so it's okay 😉. Also this package is already a fork from a previous one so I really have no objections in you doing the same here 👍

@telkins
Copy link
Author

telkins commented Oct 16, 2019

@nyamsprod Thx. Sounds good. Appreciate the response. :-)

@deurk
Copy link

deurk commented Nov 23, 2019

@nyamsprod Could you please detail the best way to install the dice-roller and its dependencies ? I've tried adding this github as a composer repository and succeeded make dice-roller a dependency but then my php script fails on the uses (Uncaught Error: Class 'Bakame\DiceRoller\ExpressionParser' not found).

@deurk
Copy link

deurk commented Nov 23, 2019

OK, I've defined it in the my app composer.json this way :

{
  "require": {
    "php": "^7.2",
    "psr/log": "^1.1"
  },
  "autoload": {
    "psr-4": {
      "Bakame\\DiceRoller\\": "./dice-roller/src"
    }
  }
}

and git cloned this repo to get the files. Now it works properly.

@deurk
Copy link

deurk commented Nov 23, 2019

Also had to add the line require_once __DIR__ . '/vendor/autoload.php'; to my app before the use declarations.

@nyamsprod nyamsprod self-assigned this Nov 28, 2019
@nyamsprod
Copy link
Member

This package will stay unpublished for the forseeing future the best anyone can do if he/she wishes to use it is to fork it and make it his/her own.

@nyamsprod nyamsprod pinned this issue Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants