nette / latte

☕ Latte: the safest & truly intuitive templates for PHP. Engine for those who want the most secure PHP sites.
https://latte.nette.org
Other
1.09k stars 107 forks source link

Is it possible to use latte without composer ? #348

Closed danaoairuike closed 8 months ago

danaoairuike commented 8 months ago

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

MartinMystikJonas commented 8 months ago

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.

dg commented 8 months ago

You can use this autoloader. But Composer is better way to use libraries today.