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

Composer autoload doesn't work #275

Open
llamafilm opened this issue Jul 27, 2018 · 2 comments
Open

Composer autoload doesn't work #275

llamafilm opened this issue Jul 27, 2018 · 2 comments

Comments

@llamafilm
Copy link

I've never used Composer, so maybe I am doing something wrong, but this doesn't seem to work. I added your info to composer.json, then ran php composer.phar install and it gave a success message. But using Httpful\Request fails with
Fatal error: Class 'Httpful\Request' not found

If I require('vendor/nategood/httpful/bootstrap.php'); in my code then it works.

@KarimGeiger
Copy link

You should require the composer autoloader at vendor/autoload.php. That's the way composer works: You require this file once and then composer allows you to use all the dependencies without needing to require anything.

@KarimGeiger
Copy link

And I just noticed that this issue is 4 months old. Well... at least now you know... :D

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

2 participants