M
M
Messi2020-07-25 20:39:38
git
Messi, 2020-07-25 20:39:38

How to install a file from git?

There is a DefaultInterface.php (there is no namespace in it, only one method), which is available at this address, for example: https://gist.github.com/d14randomstring14.git
was it available from the vendor folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2020-07-25
@FitTech

Composer classmap
+ inherit the interface by giving it a namespace, a fairly basic operation for php
Total:

  • make a turnip with a class and composer.json and connect it either via Loading a package from a VCS repository or packagist/satis to start a package
  • inside the turnip, register your class in this composer.json in the global namespace via classmap
  • in the same turnip, wrap this class with a new interface (or don't do it)

Or even cut right in your project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question