
Later we will be introducing Zend Framework (Laminas Project) components, as well as components from other projects.
Next video in the series: https://youtu.be/FIYh-VIWUko
It is part of the playlist: https://www.youtube.com/playlist?listPL6_nF0awZMoMol4RPLf99WIZuoJ3l87oG
Please * LIKE, COMMENT, AND SUBSCRIBE * – and share with others!
Key Topics:
– Using Expressive HAL component
– Automate Hypermedia creation
– Leverage Doctrine ORM Paginator for HAL creation
For a nice list of equipment I use in my studio, and to support the channel if you make any purchases (doesn’t cost you a thing), visit my kit at kit.co: https://kit.co/beachcasts/beachcasts-studio
Errata:
Technically, the AnnouncementsCollection is not an entity.
17.39 The use of route in the getHalMetadataMap() function is not for routing, and is instead what is used to generate URLs in HAL.
Code used in this, and in future videos in this series is located at: https://github.com/Beachcasts/doctrine-expressive-example
Associated Links:
https://docs.zendframework.com/zend-expressive/ – Site for Zend Expressive
https://docs.zendframework.com/zend-expressive-hal/ – Zend Expressive HAL Component
https://docs.zendframework.com/zend-expressive-hal/doctrine/ – Automated HAL creation for Doctrine Paginator
https://getexpressive.org/ – Expressive main site
https://getlaminas.org/ – Laminas Project site
https://www.jetbrains.com/phpstorm/ – PhpStorm PHP IDE
Timeline:
00:00 Video Intro
03:46 Execute bash inside Docker container
05:18 Composer require the zend-expressive-hal package
07:42 Composer require zend-hydrator package
08:25 Confirm that ConfigProviders are added to config
10:30 Update route to use pagination as arguments in URL
12:45 Create a collection object extending the Doctrine Paginator
14:10 Update Expressive module ConfigProvider with the MetadataMap for zend-expressive-hal
18:25 Updating the ReadHandlerFactory to create needed HAL generator objects
21:46 Updating the ReadHandler to expect the HAL generator objects injected
24:35 Update the Handle method to create HAL
31:00 Creating the return that will contain the HAL
Other Beachcasts PHP tech videos you might find interesting:
Critical programming issues preventing a PHP 7 upgrade https://youtu.be/z13glyDnm6s
Behat for beginners functional REST API testing tutorial https://youtu.be/nFNGDhyFrm4
Doctrine ORM one-to-many bi-directional association https://youtu.be/4nEdBDxBc1w
PHP Mess Detector static analysis to find PHP code smells https://youtu.be/8fEfHESrK5E
Doctrine ORM one-to-many self-referencing association https://youtu.be/4dHZ6cZooOk
10 reasons to become a consultant in a consulting business https://youtu.be/J7gpMYAKmDM
Zend Framework becomes Laminas project at Linux Foundation https://youtu.be/CEIO90ocEDI
10 bad things about consulting https://youtu.be/ELE0G3e7h3c
How to get lines of code in PHP https://youtu.be/HpC-Cvxj6oY
Make a List handler middleware https://youtu.be/VLqavHCFv6g
Make a Delete handler middleware https://youtu.be/3nLbQfMk99k
Make an Update handler middleware https://youtu.be/3Zcq5Jjz1Po
Use UUID with Doctrine ORM for DB keys https://youtu.be/SYuLwMwSIpg
Learn about Hypermedia and how to create it https://youtu.be/aV6ro_JXL_A
Doctrine ORM Paginator for PHP REST API https://youtu.be/UpqOew4sNT0
Doctrine ORM Entity how to https://youtu.be/NnK9Geg1h_E
Configure Doctrine ORM https://youtu.be/pFvh5ZNhdOQ
Create PHP middlware with Zend Expressive https://youtu.be/26440j7D0BE
Configure PhpStorm for PHP development with Docker https://youtu.be/FQWL-JTZvf4
Create PHP development environment with docker https://youtu.be/2ESAi2vq-80
Help through referrals:
Thinking of buying a Tesla electric vehicle? Use this referral link to also get six months of free Supercharging for both of us. Thank you. https://www.tesla.com/referral/tanya21367
I use TubeBuddy to help me manage my YouTube channel. If you’re interested, click the following link to check it out. https://www.tubebuddy.com/beachcasts
Help support Doctrine ORM: https://www.doctrine-project.org/sponsorship.html
#hypermedia #ZendExpressive #Beachcasts
Take the opportunity to connect and share this video with your friends and family if you find it useful.
No Comments