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. Set up your own packagist

    View full-size slide

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

    View full-size slide

  3. 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 full-size slide

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

    View full-size slide

  5. Dependencies
    The usual suspects

    View full-size slide

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

    View full-size slide

  7. But what about private
    packages?

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  10. 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 full-size slide

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

    View full-size slide

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

    View full-size slide

  13. 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 full-size slide

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

    View full-size slide