PHP

Article Related to PHP, anything from projects I work on to the tools I use.

By Jeff , 28 May, 2026

This lesson was all about the database functions in Laravel. This is one thing that I have to give Laravel some credit. I do like their migration feature. They have abstracted away the database to a file that will create and remove tables as you need to though the artisan script.

By Jeff , 28 May, 2026

Kind of knew already what MVC is. Laminas uses a MVC structure for their framework as well. It is pretty simple and a similar to what Laminas does, just in a slightly different way. With Laminas you have a route configuration in the module's config.php file. In there you do your dependency injection and setup of the Controller. With Laravel, they have (at least currently) a separate file for routes that is so far kind of hard coded. Where as the Laminas can be more dynamic. Again this is just a boot camp. 

By Jeff , 22 May, 2026

Had to do a few things to my setup a bit to make things work a little better. Some things I might not need or need to change if I put this in production. Ran into a bit of CORS issue once I had to rebuild the project directory. Due to the Docker container I had a bit of an issue with the Vite configuration. It needed a couple things to get things working for the server that runs when you run dev with Composer. After some googling and a small chat with AI. I ended up adding the following to the vite.config.js file:

By Jeff , 21 May, 2026

I have decided to start with Laravel as it seems to be the most popular currently. From what I have learned from starting their boot camp, I can see why. Though it kind of frustrates me a bit which I will explain. It seems to be a big ecosystem involved with it. They have embraced AI and have added their own cloud system as well. It is a bit overwhelming, coming from a guy that prefers to host his own projects. Digging in a bit and looking past all of the external pieces, it does look like you can build an application with it and still host it locally.

By Jeff , 21 May, 2026

I have been using the PHP framework Laminas for as long as it has been around. I started with the Zend Framework and followed it up to the current iterations of Laminas. It has been a great PHP framework. I love the individual components, the flexibility it has and the ease it is to setup. 

By Jeff , 20 November, 2021

I have a lot of respect for Mr. Bergmann, the writer of many of these tools that I am about to list. He has written some great tools, and wrote the original build script I am using currently. Due to changes or lack of changes in many of these tools I have had to make some updates to my build script.

By Jeff , 15 March, 2020

Created my first tech document, used my latest project as inspiration. I have been working on consolidating my Javascript into NPM packages in both my projects and in my library packages. The bad thing is when it comes to the library packages I don't have an easy way to move the Javascript from the package to the main project to be used. I have look at what is in Packagist and didn't find much that gave me the flexibility to move files from what I want to where I want. So I wrote a composer plugin to remove some cobbled together composer scripts to get around the problem.

Tags