# Sage 8 and composer 3rd party package (spatie/enum)

**URL:** https://discourse.roots.io/t/sage-8-and-composer-3rd-party-package-spatie-enum/18504
**Category:** sage
**Tags:** sage8, composer
**Created:** 2020-06-20T22:46:51Z
**Posts:** 1

## Post 1 by @jsalwen — 2020-06-20T22:46:52Z

I am newish to Sage and `composer`. I have a working Sage 8 theme, and I am trying to install [https://github.com/spatie/enum](https://github.com/spatie/enum).

I ran:

```
theme-folder> composer require spatie/enum
theme-folder> php composer.phar install
```

I see all the files in the `vendor` folder

```
theme-folder
│ composer.json
│
└───vendor
│ │ autoload.php
│ │
│ └───composer
│ │ ...
│ │
│ └───spatie
│ └───enum
│ │ composer.json
│ │ ...
```

However, when I load a page, I get errors when I try to reference the namespace:

```
PHP Fatal error: Class 'Spatie\Enum\Enum' not found in /var/www/wp-content/themes/theme-folder/lib/enums.php on line 9
```

I believe I need to include the files, but I’m not sure on the correct approach

---

## Post 2 by @system — 2020-08-01T22:46:52Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
