Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Use Underscore outside of Composer / Laravel #61

Open
owenkavanagh opened this issue Jun 23, 2015 · 1 comment
Open

Use Underscore outside of Composer / Laravel #61

owenkavanagh opened this issue Jun 23, 2015 · 1 comment

Comments

@owenkavanagh
Copy link

Is it possible to use this library without installing it through composer / Laravel?

Tried using it in a project but getting lots of namespace errors

Fatal error: Class 'Underscore\Traits\Repository' not found in /project/underscore/src/Underscore.php on line 12

I included it at the start of my project

include('underscore_newer/src/Underscore.php');

class MyProject {

Including the helpers.php file has the same issues, can't find Underscore/Underscore this time.

Using PHP 5.4

@Anahkiasen
Copy link
Owner

Without Laravel yes, without Composer no. If you include a class you need to include all of them. Not sure it's worth the hassle to be honest, what is your use case for not using Composer?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants