# Problem with installation of auth0

**URL:** <https://community.auth0.com/t/problem-with-installation-of-auth0/107264>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [May 18, 2023, 10:05am UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264 "2023-05-18T10:05:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pb2023](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pb2023/32/50070_2.png) [@pb2023](https://community.auth0.com/u/pb2023)\
**Post date:** [May 18, 2023, 10:05am UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/1 "2023-05-18T10:05:35Z")

</div>

Hello, I tried to install auth0 but I get error:

```auto
**Fatal error** : Uncaught InvalidArgumentException: Could not find a PSR-18 compatible HTTP client. Please install one, or provide one using the `setHttpClient()` method. in /var/www/clients/client1432/web5236/web/_inc/vendor/auth0/auth0-php/src/Utility/Assert.php:7137 Stack trace: #0 /var/www/clients/client1432/web5236/web/_inc/vendor/auth0/auth0-php/src/Utility/Assert.php(4352): Auth0\SDK\Utility\Assert::reportInvalidArgument() #1 /var/www/clients/client1432/web5236/web/_inc/vendor/auth0/auth0-php/src/Configuration/SdkConfiguration.php(1459): Auth0\SDK\Utility\Assert::isInstanceOf() #2 /var/www/clients/client1432/web5236/web/_inc/vendor/auth0/auth0-php/src/Configuration/SdkConfiguration.php(167): Auth0\SDK\Configuration\SdkConfiguration->setupStateFactories() #3 /var/www/clients/client1432/web5236/web/bazar/index.php(19): Auth0\SDK\Configuration\SdkConfiguration->__construct() #4 {main} thrown in **/var/www/clients/client1432/web5236/web/_inc/vendor/auth0/auth0-php/src/Utility/Assert.php** on line **7137**

```

My code in index.php is:

```auto
<?php

	declare(strict_types=1);

	// include header
	require($_SERVER['DOCUMENT_ROOT'] . '/bazar/_partials/header.php');

	// Get data for main page
	$all_cat_subcat = getAllCatAndSubcat();
	use Symfony\Component\HttpClient\HttpClient;
	use Auth0\SDK\Auth0;
	use Auth0\SDK\Configuration\SdkConfiguration;

	$configuration = new SdkConfiguration(
		domain: '...',
		clientId: '...',
		clientSecret: '...',
		redirectUri: 'http://' . $_SERVER['HTTP_HOST'] . '/callback',
		cookieSecret: '...'
	);

	$sdk = new Auth0($configuration);

	require('router.php');

?>

```

Can you help me what to do? Thank you

---

<div class="post-metadata">

**Author:** ![pb2023](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pb2023/32/50070_2.png) [@pb2023](https://community.auth0.com/u/pb2023)\
**Post date:** [May 18, 2023, 10:08am UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/2 "2023-05-18T10:08:51Z")

</div>

This I have installed via composer:

Package operations: 3 installs, 0 updates, 0 removals

- Installing symfony/service-contracts (v3.0.2): Extracting archive
- Installing symfony/http-client-contracts (v3.0.2): Extracting archive
- Installing symfony/http-client (v6.0.20): Extracting archive

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 18, 2023, 12:03pm UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/3 "2023-05-18T12:03:44Z")

</div>

Hey there!

Can you share the link from our Auth0 docs / quickstarts / SDKs that you were following in that implementation? Thank you!

---

<div class="post-metadata">

**Author:** ![pb2023](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pb2023/32/50070_2.png) [@pb2023](https://community.auth0.com/u/pb2023)\
**Post date:** [May 18, 2023, 12:44pm UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/4 "2023-05-18T12:44:53Z")

</div>

Hello, here it is: [Auth0 PHP SDK Quickstarts: Add Login to your PHP application](https://auth0.com/docs/quickstart/webapp/php/interactive)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 18, 2023, 2:06pm UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/5 "2023-05-18T14:06:45Z")

</div>

Perfect! I’ll ping the repo maintainers in a few minutes!

---

<div class="post-metadata">

**Author:** ![pb2023](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pb2023/32/50070_2.png) [@pb2023](https://community.auth0.com/u/pb2023)\
**Post date:** [May 19, 2023, 9:04am UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/6 "2023-05-19T09:04:33Z")

</div>

Sorry, finally I found that not all files were upload to server. Now it is working, but I have other problems. 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 19, 2023, 10:53am UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/7 "2023-05-19T10:53:35Z")

</div>

No problem glad you sorted that part out! Feel free to open a separate topic for the problems you face now. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 2, 2023, 10:54am UTC](https://community.auth0.com/t/problem-with-installation-of-auth0/107264/8 "2023-06-02T10:54:07Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
