A
A
Alexander Filippenko2018-03-28 12:54:36
PHP
Alexander Filippenko, 2018-03-28 12:54:36

How to attach a third party library to Laravel?

Good day to all.
It was necessary to tie the Yandex Maps API to the Laravel backend. I don't understand how to do it right? Do you need to somehow make a facade out of it? If so, how?
This one is of particular interest. https://github.com/yandex-php/php-yandex-geo

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-03-28
@alexfilus

No facades or services are needed for the most basic use.
Put any package through the composer and use it.
Composer autoload will do everything for you. If you already need some configs, DI or a service, then it’s worth worrying about full integration. And then, for starters, it’s better to google for at least 20 seconds to find a ready-made solution for Lara: https://github.com/thephpleague/geotools

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question