Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Problems with initial vendors with composer

Started by Muut Archive 10 years ago · 2 replies · 382 views
10 years ago

I'm currently writing a plugin which requires the ts3admin.class from par0noid (link below). I created duplicated the "comments" plugin for my purpose, cause I want to view some things in the Admin. Because ts3admin is not a composer pack, I cant add it with php composer.phar require .... So I tried it on a other way and duplicated the vendors from Login, changed some probs and tried it again, but I did not worked. The class can not be reached in my plugin.php.
And because there is no tutorial in the docs or in the web about implementing a non composer pack, I also tried to add it like a normal class with require_once. Also failed.
Now I'm on the point, I missed something and its now 3 days left to fix the problem (and it is just this, the rest is running fine).
Maybe someone here can quickly show over my code and give me a hint to fix the problem.

TS3Admin: https://github.com/par0noid/ts3admin.class
TS3Admin (my fork with composer.json): https://github.com/muuvmuuv/ts3admin.class
PLUGIN: https://www.dropbox.com/s/zpxlja7hio7cm1q/grav-plugin-management.zip?dl=0

10 years ago

I found a solution, but I had to go another way. I reprogrammed the plugin into a GRAV plugin and added it like a normal class into the plugin. It was the only solution I found for a quick result.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago