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

The Ideal Laravel Package Development Workflow

The Ideal Laravel Package Development Workflow

At the PHP Mumbai meetup - December, 2018.

From the ideal setup for local development to deploying your Laravel package to packagist, learn the A to Z of Laravel package development with every answer to how, why and when in the journey.

Harish Toshniwal

December 15, 2018
Tweet

More Decks by Harish Toshniwal

Other Decks in Programming

Transcript

  1. Laravel Package
    Development
    The Ideal WorkFlow
    H A R I S H T O S H N I W A L | D E V E L O P E R @ J O G G . C O

    View Slide

  2. THE PROBLEM ?
    What exactly is
    Food for Thought

    View Slide

  3. Alienated Code
    Problem 01

    View Slide

  4. Unconfident Code
    Problem 02

    View Slide

  5. Portability
    Problem 03

    View Slide

  6. Maintainability
    Problem 04

    View Slide

  7. OSS & Learning
    Not exactly a problem

    View Slide

  8. P A C K A G E S T O T H E R E S C U E

    View Slide

  9. https://goo.gl/g9jyGY
    Composer's path repository
    option
    Local Setup

    View Slide

  10. JUST TO MAINTAIN THE SYMMETRY HAHA
    Let's hit Sublime Text for this
    one
    What goes where

    View Slide

  11. https://github.com/spatie/skeleton-php
    Things like the license file,
    change-log, etc.
    OSS Essentials

    View Slide

  12. version x.x.x
    GitHub & Semver

    View Slide

  13. ALMOST DONE!
    Making the package available
    via composer
    Packagist

    View Slide

  14. ASK FOR A FAILING TEST
    Setting up TravisCI is really
    easy and fast
    Tests & CI

    View Slide

  15. USE THE WIKI
    Good documentation is the
    key
    Docs

    View Slide

  16. @introwit
    Twitter
    introwit.in
    I try to blog
    github.com/introwit
    Thank You

    View Slide