Is it possible to use latte without composer ? #349
Replies: 4 comments 3 replies
-
|
It should be possible but you would have to make your own implementation of classmap autoloader or use something like robot loader. Your "simple autoloader" probably would not work. Honestly I do not understand why do you want to go for such complications instead of simply using composer. |
Beta Was this translation helpful? Give feedback.
-
|
You can use this autoloader. But Composer is better way to use libraries today. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, @MartinMystikJonas I just tried to just import the Latte directory, and omit the Tools and Bridge\Tracy directories. The core Latte works fine. Thanks. However, there is a tiny issue. May I ask what the class " Latte\RuntimeException" is in the file "https://github.com/nette/latte/blob/master/src/Latte/Loaders/FileLoader.php" ? I really couldn't find it. I guess it's from nette/utils ? Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Some classes in Latte are not located according to PSR-4. You'll have to manually require the files |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm building a little framework ( customized CMS) for myself. And I don't intend to use composer. I have a simple autoloader.
So, I'd like to know that whether I can just copy the directory of https://github.com/nette/latte/tree/master/src/Latte , since it seems Latte does not have any external dependency.
Thanks
It's up to you to make a strong case to convince the project's developers of the merits of this feature
Please support my efforts in maintaining this project at https://github.com/sponsors/dg
Beta Was this translation helpful? Give feedback.
All reactions