$30 off During Our Annual Pro Sale. View Details »

medialibrary (php antwerp)

medialibrary (php antwerp)

Freek Van der Herten

February 28, 2018
Tweet

More Decks by Freek Van der Herten

Other Decks in Programming

Transcript

  1. Handling media
    in a Laravel app

    View Slide

  2. About me
    Freek Van der Herten
    Partner & developer at SPATIE
    Blogging at https://murze.be

    View Slide

  3. About me
    phpantwerp.be
    Dries Vints
    @driesvints
    Frederick Vanbrabant
    @maybeFrederick

    View Slide

  4. About me
    https://ohdearapp.com

    View Slide

  5. Since 2003
    Websites, applications and webshops
    Team
    7 developers, 1 manager
    Specialization
    Laravel development

    View Slide

  6. https://spatie.be/opensource

    View Slide

  7. Open source software
    ± 150 packages on Packagist
    ± 9 600 000 downloads total, ±1 000 000 downloads a month
    A lot of benefits: learning, forced to write documentation and
    tests, showing the quality of our work, eating our own dogfood

    View Slide

  8. WE ❤ POSTCARDS

    View Slide

  9. Spatie

    Samberstraat 69D
    2060 Antwerp

    Belgium

    View Slide

  10. View Slide

  11. HANDLING MEDIA

    View Slide

  12. User uploaded content
    Where to store it all?
    How to retrieve it?
    How to optimize images?
    The problem

    View Slide

  13. LARAVEL MEDIALIBRARY

    View Slide

  14. Easily installed into any Laravel application
    Associate files with Eloquent models
    Can group media into collections
    Image conversions
    Uses multiple filesystems
    Laravel Medialibrary

    View Slide

  15. Optimize converted images
    Custom image generators
    Customize directory structure
    Custom attributes
    Laravel Medialibrary

    View Slide

  16. https://docs.spatie.be/laravel-medialibrary

    View Slide

  17. View Slide

  18. DEMO

    View Slide

  19. WRAPPING UP

    View Slide

  20. https://docs.spatie.be/laravel-medialibrary/v6


    https://docs.spatie.be/image/v1/introduction


    https://www.youtube.com/watch?v=4lq_6JLR2H8


    https://github.com/spatie/laravel-medialibrary

    Resources

    View Slide

  21. Coming soon in v7
    Greater control over media collections


    Vue components


    Support for responsive images / srcset


    Release Q2 2018


    View Slide

  22. Teamwork
    Sebastian De Deyne

    @sebdedeyne


    Willem Van Bockstal

    @willemvbockstal


    Alex Vanderbist

    @alexvanderbist


    Brent Roose

    @brendt_gd


    View Slide

  23. Thank you!

    https://joind.in/talk/3d14e
    https://speakerdeck.com/freekmurze/medialibrary-phpantwerp
    https://spatie.be/opensource
    https://ohdearapp.com
    https://murze.be

    View Slide

  24. QUESTIONS?

    View Slide