-
Notifications
You must be signed in to change notification settings - Fork 1k
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
vendor/autoload.php is missing #61
Comments
I think this is managed by composer according to the docs: |
Right, the vendor dir is automatically created by composer. Please read this doc for PhpAmqpLib install / use : http://getcomposer.org/doc/01-basic-usage.md I think we can close this isssue |
@Lewiscowles1986 You might not agree with the decision, but there's no need to call others "stupid" here. |
@Lewiscowles1986 you can use this library without composer if you wish: just download it, put in whatever dir you want and add it to any PSR-0 autoloader. But if you want to run examples or tests for this library, you should use composer |
@Lewiscowles1986, yeah, it is very professional to call decision "stupid" only because you think it should be done in your way. |
@Lewiscowles1986 like I said, nobody forces you to use composer actually. You can use every kind of PSR-0 autoloader to load this lib classes. |
@Lewiscowles1986 Using PSR-0 is not about skilling up quickly, it is just about the simplest way to do autoloading - use standard one. Basic PSR-0 autoloader is about 10 lines of code - it is the simplest possible way to automatically load classes. Do you mean every library should copy-paste this autoloader inside it because some of its users do not familar with PSR-0, autoloading and composer and do not want to learn it? If so, I can not agree with you about it. |
@Lewiscowles1986 sorry, my English knowledge doesnt allow me to find out was your statement about "attacking style" a sarcasm or not. If it wasnt - np ) If it was - sorry, I am not native English speaker, so I can not adjust my style - I just speak how I can ) |
@Lewiscowles1986 if you want to propose a solution, you can add one file to the demo folder on how to have an auto loader in case someone doesn't want to use composer. I happily merge it as long as it is kept simple and for illustration purposes. |
Hello In order to make things progress, i let you know that the loader from https://gist.github.com/jwage/221634 enabled me to use the PHP tutorials from http://www.rabbitmq.com/tutorials/tutorial-one-php.html (and so on). I don't use composer neither but i wanted to contribute positively. Thanks to Alvaro Videla for his book that walked me to this thread. Let's focus on RabbitMQ use now. Best regards. |
@besancon I've added a note to the README. Thanks |
Based on the solution by @besancon I wanted to share the exact steps to get the demos running with the proposed loader: Download the raw gist from https://gist.github.com/jwage/221634 to php-amqplib/demo Edit php-amqplib/demo/config.php replacing the line The demos should now run without autoloader complaints. |
You guys should be using composer. There is no good reason not to. I see only stupid excuses so far. |
Oh, we most likely will in the end. I for one am not too fond of recursion when it comes to learning new tools/frameworks/whatever. I am eager to learn A, which happen to force me to learn B. B might of course be an excellent choice further down the road but right now I only have time and interest to learn A, any shortcuts around B will thus be most appreciated. |
@kanflo this as simple as download/install composer. Then run |
Hi videlalvaro, I tried using composer... (not too familiar with it). I keep running into the below error whenever I run
Below is my composer.json file:
Any help would be appreciated, as I don't want to use an alternative means to load the library. Thanks |
I copy pasted your
|
Very strange indeed. One more thing: I'm running this via terminal on a mac. I even tried |
I'm also running this from a Mac. Maybe ask on the composer mailing list.
|
Is there an easy way to run the demo within an windows (IEE) environment? Unfortunately the 'SplClassLoader.php' Trick is not working for me. ERROR: Class 'Bubelbub\SmartHomePHP\SmartHome' not found in C:\WebApps\SmartHome\index.php |
Obviously, it's too late for the initial issuer but for myself, I've solved this issue by running composer.json:
|
Hi, I just want to add one tiny thing. I Hate composer, composer is probably the worst thing ever invented. I get the idea is good but by far the only thing i've suffered with composer is delays and more delays. I spent 2 straight days trying to figure out why composer couldn't install a dependency on my mac. I get that composer can help you to organise things and as a dependency manager it doesn't go that much far off. But when composer fucks up (and it will eventually do) it fucks up for good. Libraries that depend on one place and that are installed on some other place but that are not compatible because two different libraries use different versions of a third library and cant coexist between them.... let me tell you. I hate composer , I ran into this very same problem and i've discovered that I needed to use composer to install certain libraries . Not only i am not going to use composer, i'm going to have to switch from PHPMailer to some other library that does the same trick because of this very same issue. |
One friend of mine used composer for a few years and the other day he was diagnosed with cancer. Now, back to constructiveness , I get the very same Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in blablabla I don't want to use composer because I firmly believe that composer will give me cancer in the anus. But I REALLY REALLY REALLY REALLY like PHPMailer. PHPMailer is nice, cute and atractive and will not give me cancer in the anus. I don't understand about autoloaders and things like that. I just want to know how to , without using composer, in a simple way, add that vendor/blabla thing to my project, more like a drag and drop solution, just place the necessary files in the folder, make it work and move on. can anyone help me? thank you. |
I also don't see the point of providing a zip/tar file for download WITHOUT that file. Doesn't make sense. |
it doen't make sense to provide this file. It's from composer and uses a On Sat, Mar 12, 2016 at 10:43 PM, g012 [email protected] wrote:
Mit schönen Grüßen aus Berlin, |
Well I got on this page looking for a solution about this for another project, just noticed. It's the doc from that project which is misleading then, sorry about that. |
Composer can be a very useful tool, but sometimes it just adds a lot of complexness where there is no need to, and it has also been proven by a lot of scientific experiments that using composer leads to cancer in the anus. Be that as it may, i'd suggest a small package where a stable functioning version of the file is included "out of the box", so that composer isn't needed. cos it could be useful for people who need this for something small, and don't require that much ammount. it's just a suggestion, suggestions are free of charge :) keep the good work. |
Back to the original issue. In order to use the demo's and tests, composer is required. Demo's are just used to demonstrate the capabilities of the library. Although you can use the library without composer, it is not the recommended approach and therefore the examples and tests require it. @troindx please read the CoC and keep your comments/suggestions constructive. |
I'm just going to try to be constructive (altought I really really hate composer), there is no really to point to redirect people to install composer, when the actual dependency is "add any compatible PSR-0 autoloader", such compatible loader could be provided out of the box, or simply as part of the documentation(10 lines of code is not much), which in turn could provide the suggestion to use composer too if wished. To take composer as a kind of standarized default is the problem here, PSR-O IS AN STANDARD, Composer is only a package manager that some people like to use. |
in my case the issue was with the Mac using its own internal php not the Mamp PHP |
I had the same problem El 31 oct. 2016 9:51 a. m., "kheldaroz" [email protected] escribió:
|
hi, sorry i;m stupid and new to this. but i was able to use composer and install everything. problem is when i try to run the samples, i'm getting this error "Fatal error: Class 'Infusionsoft\Infusionsoft' not found in D:\htdocs\infusion\samples\addWithDupCheck.php on line 7" |
I simply can't even just install composer - why are such things happening to stable branch? |
@ronator we can't recommend anything based on "can't even just install composer". This is not a support forum. If you have questions, please post them to rabbitmq-users, our public mailing list. Usually any obvious installation issue is reported multiple times a day. This is not something we hear about and I personally had to go through the RabbitMQ PHP tutorials that use this client and it worked just fine with both 2.5.x and 2.6.x versions. |
The vendor/autoload.php is missing on github, it's used in the demo and test.
Could some add this or tell me where I can get this?
The text was updated successfully, but these errors were encountered: