Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Set up your own packagist

Set up your own packagist

Wouldn't it be great if you could pull in private packages with Composer? Satis allows you to do just that. In this short talk we'll demonstrate how to install and use it.

Freek Van der Herten

July 01, 2015
Tweet

More Decks by Freek Van der Herten

Other Decks in Programming

Transcript

  1. View Slide

  2. Set up your own packagist

    View Slide

  3. About me
    Freek Van der Herten
    Partner & developer at Spatie
    @freekmurze
    https://murze.be

    View Slide

  4. About Spatie
    SINCE 2003
    Websites, applications en shops
    TEAM
    4 developers, 1 manager
    Pool of freelancers (photographers, animators, …)
    CORE VALUES
    Style, easy of use, tailor-made software

    View Slide

  5. Used for all greenfield projects
    Built with Laravel 5.1
    Not really a CMS
    A sh*tload of dependencies
    Blender CMS

    View Slide

  6. Dependencies
    The usual suspects

    View Slide

  7. Spatie packages:
    Something for everyone
    Documented
    Maintained
    Easy to update projects
    Dependencies

    View Slide

  8. But what about private
    packages?

    View Slide

  9. Your own mini packagist
    Developed by Jordi Boggiano & Nils Adermann
    Useful for private packages
    Satis

    View Slide

  10. Installing satis
    composer create-project composer/satis —stability=dev --keep-vcs

    View Slide

  11. Configuring satis
    {
    "name": "Spatie custom packages",
    "homepage": "https://satis.spatie.be",
    "repositories": [
    {
    "type": "vcs",
    "url": "https://github.com/spatie-custom/seeders"
    }
    ],
    "require-all": true
    }

    View Slide

  12. php bin/satis build config.json public/
    Building the repository

    View Slide

  13. "repositories": [
    {
    "type": "composer",
    "url": "https://satis.spatie.be"
    }
    ]
    Using the repository

    View Slide

  14. Demo

    View Slide

  15. Official documentation

    https://getcomposer.org/doc/articles/handling-
    private-packages-with-satis.md#satis
    Blogpost by Mario Bašić

    http://laravelista.com/satis-composer-repository-for-
    your-private-packages/
    Want to learn more?

    View Slide

  16. Questions?

    View Slide

  17. https://speakerdeck.com/freekmurze/set-up-your-own-packagist
    https://joind.in/14713
    https://murze.be
    Thanks!

    View Slide