[OT ?] Creating nette project in composer

4 years ago

FeBus982
Member | 6
+
0
-

Short version:
Is it possible to share a complete nette webapp in composer (private repository)?

Long version:
I am building a reusable set of complete modules that provide some basic functionality (database table versioning, advanced security acl, etc.)
Each module has its own presenter,model,templates,services,etc. for basic management of functionalities
This involves also some modifications to bootstrap.php and RouterFactory

I would like to separate these modules development and reuse them as a base for different web applications (maybe in vendor directory?), so when I will update the base the changes will be replicated on all projects using it simply calling “composer update”.

Which would be the correct way to achieve this?

4 years ago

romiix.org
Member | 349
+
+2
-

Yes, it's possible.

For example: Create for every module CompilerExtension and finaly module push to private GitHub.

Composer can use private repo.

Last edited by romiix.org (2015-04-23 18:19)

4 years ago

FeBus982
Member | 6
+
0
-

Thanks, I will check it.