Bladeren bron

Warn users not to publish private code on packagist.org but on packagist.com

Nils Adermann 8 jaren geleden
bovenliggende
commit
636afd3eb6

+ 4 - 0
src/Packagist/WebBundle/Resources/views/Package/submitPackage.html.twig

@@ -16,6 +16,10 @@
         {{ form_rest(form) }}
 
         <input class="btn btn-block btn-success btn-lg" id="submit" type="submit" value="{{ 'submit.submit'|trans }}" />
+
+        <br />
+        <h3>Trying to share private code?</h3>
+        <p>Use <a href="https://packagist.com">Private Packagist</a> to share code through Composer without publishing it for everyone on Packagist.org.</p>
     {{ form_end(form) }}
 
     <div class="col-md-6">

+ 3 - 0
src/Packagist/WebBundle/Resources/views/Web/index.html.twig

@@ -56,6 +56,9 @@
             <h3>Publish It</h3>
             <p><a href="{{ path('hwi_oauth_connect') }}">Login</a> or <a href="{{ path('fos_user_registration_register') }}">register</a> on this site, then hit the <a href="{{ path('submit') }}">submit</a> button in the menu.</p>
             <p>Once you entered your public repository URL in there, your package will be automatically crawled periodically. You just have to make sure you keep the composer.json file up to date.</p>
+
+            <h3>Sharing Private Code</h3>
+            <p>Use <a href="https://packagist.com">Private Packagist</a> if you want to share private code as a Composer package with colleagues or customers without publishing it for everyone on Packagist.org. Private Packagist allows you to manage your own private Composer repository with per-user authentication, team management and integration in version control systems.</p>
         </div>
     </section>
 </section>