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

Fatal error: Class 'Curl\Curl' not found in... #35

Closed
jayanpatel opened this issue Mar 13, 2017 · 1 comment
Closed

Fatal error: Class 'Curl\Curl' not found in... #35

jayanpatel opened this issue Mar 13, 2017 · 1 comment

Comments

@jayanpatel
Copy link

Hello!

I have no prior knowledge of PHP and I was handed down a project made entirely out of PHP.

My issue is that whenever I try to run my project, I receive the following error:

Fatal error: Class 'Curl\Curl' not found in /Users/jayanpatel/Desktop/Clickstream-Generator/mainstream//rrapi.php on line 74

This what it looks like in line 74:

$curl = new Curl\Curl();

And this is what I have in the composer.json:

composer_json_ ___desktop_clickstream-generator_rr-trident-clickstream

Can you please help a beginner in PHP understand what is going on and how to solve this issue?

Thanks!
J.

@amouhzi
Copy link
Member

amouhzi commented Mar 13, 2017

Hi jayanpatel,

You should use require_once to include the composer autoloader in your project root file or in each file:

<?php

require_once '/path/to/vendor/autoload.php';

For more help:

@amouhzi amouhzi closed this as completed Mar 13, 2017
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