J
J
jslby2014-12-27 02:04:17
Twig
jslby, 2014-12-27 02:04:17

How to screw Twig to Slim Framework without composer?

Subject. I am making a script. I would not like to work with the composer, I do not want to explain the reasons.
You need to somehow link the latest version of Slim and Twig. All the manuals that I could find on the Internet are aimed specifically at using the bundle with the composer. At least with the autoload.php file.
How to do without it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Domrachev, 2014-12-27
@MrLoki

Yes, now most components in PHP have a dependency on at least the composer autoloader - I haven’t seen anyone make this file on their own, everyone expects the composer to generate it.
But, there is another way. Clone everything, for example, to vendor, then clone https://github.com/symfony/ClassLoader there , and set it up. How to set up in readme.md is written quite intelligibly. By the way, putting it in the autoload.php file is not at all necessary if you do the settings yourself - you can put it directly in index.php, or whatever your front controller is.
And do not forget that the components are not currently distributed as a whole, see the composer.json file in the same twig and manually download all the dependencies.

A
asd111, 2014-12-27
@asd111

download from github

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question