We dive into an exciting project where we demonstrate how to process video files using PHP, FFmpeg, and use OpenAI’s API to generate concise text summaries.
In modern web applications, handling and validating incoming data is crucial. Laravel provides powerful request validation, but what if you need to cast input data into specific types automatically? Meet Cambia, a PHP package designed to streamline type casting for ...
It’s possible to type hint an array (sort of) in PHP without using a Doc block. Version 5.6 added a splat operator or sometimes called argument unpacking. A splat operator is 3 dots before a parameter. The splat operator allows ...
First, why we might transform data? If we have raw data from a database and need to send data to an external system or maybe export data. In either case we most likely don’t want to expose database column names ...
Binding an interface to an implementation promotes good coding practices. As a result the code is less coupled, more maintainable, and testable. Why might someone want to bind an interface using Laravel? To put an abstraction between the application and ...
Something I ran into a while back while writing tests. If intentionally testing code for an exception then it is required to add an annotation above the test method.
Laravel 4 is capable of running on a shared hosting environment. It’s a lot easier than you probably think. Login to your host and go to your home directory. This does not mean your public home directory, they are separate. ...
After upgrading my xampp installation I had issues sending email. I wrote a small test PHP page and it was saying my emails were being sent, but I never received them. Obviously something was misconfigured. I thought I correctly edited ...
In this tutorial I will explain how to fix the SoapClient error and why it happened. My server threw this error after enabling the FedEx shipping option in Magento running 1.7. I isolated the issue to the FedEx shipping option ...
I wrote some code to dynamically generate an email message based on the names of form elements being sent through post. In this post I’ll describe how it’s done. The foreach loop grabs the keys from the post array. An ...