# Uncaught Error: Class 'Auth0\\SDK\\Store\\CookieStore' not found

**URL:** <https://community.auth0.com/t/uncaught-error-class-auth0-sdk-store-cookiestore-not-found/47062>\
**Category:** Get Help\
**Created:** [July 28, 2020, 2:06pm UTC](https://community.auth0.com/t/uncaught-error-class-auth0-sdk-store-cookiestore-not-found/47062 "2020-07-28T14:06:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliotkoss](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/elliotkoss/32/14596_2.png) [@elliotkoss](https://community.auth0.com/u/elliotkoss)\
**Post date:** [July 28, 2020, 2:06pm UTC](https://community.auth0.com/t/uncaught-error-class-auth0-sdk-store-cookiestore-not-found/47062/1 "2020-07-28T14:06:41Z")

</div>

I’m trying to pass url params via the /authorize endpoint. I found lots of helpful links and documentation that led me to this documentation for the Auth0 PHP SDK ([Use the Authentication API - Auth0 Docs](https://auth0.com/docs/libraries/auth0-php/authentication-api)) that would allow me to add params to the /authorize url (which I could then use to style a user who is signing up differently from a login on the Universal Login page).

I copied the code from the example (replacing the env variables as appropriate), but when I execute the code, I receive an error

> Fatal error: Uncaught Error: Class ‘Auth0\SDK\Store\CookieStore’ not found

This seems to be something missing in my install of the SDK, which basically means a dead-end for me.

Any help or guidance would be much appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![elliotkoss](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/elliotkoss/32/14596_2.png) [@elliotkoss](https://community.auth0.com/u/elliotkoss)\
**Post date:** [July 28, 2020, 2:27pm UTC](https://community.auth0.com/t/uncaught-error-class-auth0-sdk-store-cookiestore-not-found/47062/2 "2020-07-28T14:27:30Z")

</div>

I found the issue. It looks like the PHP Quickstart needs to be updated.

The install command forces the user to use version ~5.0, but the current version is 7.2

> composer require auth0/auth0-php:“~5.0”

This command is only shown on the PHP Quickstart page.

The proper command that doesn’t require a specific (and outdated) version is on the Auth0 PHP official page (which was not easy to find). [PHP: Getting Started using Auth0-PHP](https://auth0.com/docs/libraries/auth0-php)

> php composer.phar require auth0/auth0-php

Once I re-ran my Composer which updated to version 7.2, the CookieStore error was resolved, and the url worked correctly.

It may help to update the documentation for the Quickstart PHP. [Auth0 PHP SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/php)

---

<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:** [July 28, 2020, 2:35pm UTC](https://community.auth0.com/t/uncaught-error-class-auth0-sdk-store-cookiestore-not-found/47062/3 "2020-07-28T14:35:22Z")

</div>

I’ll relay that info to the team responsible for developing quickstarts.

---

<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:** [August 12, 2020, 2:35pm UTC](https://community.auth0.com/t/uncaught-error-class-auth0-sdk-store-cookiestore-not-found/47062/4 "2020-08-12T14:35:25Z")

</div>

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