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

Install without Composer? #282

Open
iantic opened this issue Aug 27, 2020 · 4 comments
Open

Install without Composer? #282

iantic opened this issue Aug 27, 2020 · 4 comments

Comments

@iantic
Copy link

iantic commented Aug 27, 2020

I have to install php-reports in a closed environment with strict firewall rules. Using Composer and having it download packages would be very difficult.

Is there an "all-inclusive" package I can just unpack on my Linux server?

@mckaygerhard
Copy link

mckaygerhard commented Aug 28, 2020

+1 FIRST before send a windoser request READ! https://github.com/jdorn/php-reports/tarball/master .. the README and you find that can handle a tarball from sources and regenerate locally.. later post in production

@iantic
Copy link
Author

iantic commented Aug 28, 2020

+1 FIRST before send a windoser request READ! https://github.com/jdorn/php-reports/tarball/master .. the README and you find that can handle a tarball from sources and regenerate locally.. later post in production

I have no idea what you meant to say.. The readme.md only says "For installation instructions and documentation, check out http://jdorn.github.io/php-reports/" , and the only installation method described in the documentation is using Composer

The tar/zip file is still requiring Composer. If I just unpack it, I get the error about missing vendor/autoload.php

I can run the Composer locally, but that would require making an identical copy of the server environment (same versions of everything) and that is just too much work. Most PHP scripts/tools come in "unpack and play" packages...

@herbdool
Copy link

The build step - running Composer - should be done locally and not on a live environment or something with firewalls etc. There are some big downsides of building the packages on live, such as Composer breaking things. Better to work out the kinks and then deploy the code to live after the build.

@iantic
Copy link
Author

iantic commented Aug 31, 2020

Thanks for the advice, but I never said it was live environment.. all our environments are behind firewalls :)

anyway, I managed to run the composer on a VM on my home computer, it was frustrating installing all the dependencies.. I gave up installing MongoDB (I don't use it) so I ended up running composer with the --ignore-platform-reqs switch.

The result a half-working (#283) installation that I will not be able to rely upon 100%. because it was built on a different environment.

It would be better if PHP Reports allowed installation with just the DB drivers you need. And without composer :)

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

3 participants