L
Larapack is a project allowing programmers to integrate their own systems into. Integration between their system and Larapack, will allow them and other developers to build packages (or so called hooks) and upload them on Larapack, thise hooks are pieces of functionality that can then be installed within the system in just one click.
We built Larapack as an integration into the popular PHP package resolution system called Composer. Within Composer we managed to dependencies and requirements for each hook, allowing a hook to have their own set of dependencies regarding both software libraries, packages and hooks. By using Composer, we ease up the learning process for programmers in order to start building their own hooks, due to the high amount of documentation and resources regarding Composer.
All the hooks source code are only located on the authors Github account, ensuring that the author has the full ownership of the source code at all time. Besides that, using Github allows the usage of version control, issue reporting and contribution out of the box. Upon a hook submission, we force the author to setup the required Github events and permissions, ensuring that we automatic get reports of new versions and changes to the source so that we can note that into our APIs for system lookups.
We’ve focused on a simple solution for automatic hook installation, and as a case we did the direct integration sample with Laravel Voyager. We managed to create a single Laravel package adding the required interface to Voyager, allowing a one click installation of any hook submitted to Larapack.