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

Having Fun with Drupal 8, PHP libraries and the Drupal.org API

Having Fun with Drupal 8, PHP libraries and the Drupal.org API

71c9ebde850996d2533c5df4df2c93c6?s=128

Oliver Davies

March 03, 2019
Tweet

Transcript

  1. HAVING FUN WITH DRUPAL 8, PHP LIBRARIES AND THE DRUPAL.ORG

    API @opdavies | opdavi.es
  2. ▸ Full stack Web Developer & System Administrator ▸ Senior

    Developer at Microserve ▸ Part-time freelancer ▸ Acquia certified Drupal 8 Grand Master ▸ Drupal core contributor ▸ Open source project maintainer ▸ opdavies (Drupal.org, GitHub, Twitter) ▸ www.oliverdavies.uk @opdavies | opdavi.es
  3. DRUPAL 8 CRASH COURSE PHP LIBRARIES, UNIT TESTING, COMPOSER, ROUTING,

    SERVICES, DEPENDENCY INJECTION, CACHING @opdavies | opdavi.es
  4. LIVE DEMO ALERT! @opdavies | opdavi.es

  5. None
  6. None
  7. DID YOU KNOW THAT DRUPAL.ORG HAS AN API? @opdavies |

    opdavi.es
  8. None
  9. None
  10. A PHP LIBRARY FOR THE DRUPAL.ORG API @opdavies | opdavi.es

  11. ▸ Retrieve node and user data ▸ Filter by properties

    ▸ Provides own entity classes ▸ Methods for retrieving common properties ▸ Reusable ▸ Unit tested @opdavies | opdavi.es
  12. None
  13. None
  14. None
  15. $ composer require opdavies/drupalorg-api-php @opdavies | opdavi.es

  16. DISPLAYING DRUPAL.ORG PROJECT STATISTICS @opdavies | opdavi.es

  17. ▸ Inspired by spatie.be/en/opensource ▸ Displays downloads and stars ▸

    Drupal 8 module ▸ Configuration form to enter project IDs ▸ Queries the API ▸ Displays project information ▸ Retrieved data cached locally @opdavies | opdavi.es
  18. None
  19. None
  20. WHEN IS YOUR DRUPALVERSARY? @opdavies | opdavi.es

  21. ▸ When did you register on Drupal.org? ▸ Drupal 8

    module ▸ Enter a username ▸ Queries the API ▸ Displays information - next Drupalversary date and number of days until, number of years on Drupal.org ▸ Retrieved data cached locally @opdavies | opdavi.es
  22. None
  23. ▸ opdavi.es/talks ▸ opdavi.es/do-library ▸ opdavi.es/drupalversary ▸ opdavi.es/do-projects @opdavies |

    opdavi.es
  24. QUESTIONS? @opdavies | opdavi.es

  25. THANKS @opdavies | opdavi.es