Categories


Recent Posts


Archives


Pestle Windows Support

Here’s two quick stories about providing native Windows support for pestle. Home Directory The first issue boiled down to our using the following code to get a user’s home directory $home = trim(`echo ~`); if(!is_dir($home)) { throw new Exception("Could not find home directory with echo ~"); } This works for the *nix [...]

astorm

Commerce Bug 3.2.4 Released!

Just a quick note that a new version of Commerce Bug (3.2.4) is out in the world. This release fixes a small bug where the jsTree elements in the KO Scopes tab could interfere with the styling of jsTree elements that core Magento used in places like the Access Control Roles tree. If you follow my feeds on Stack Overflow or Twitter you [...]

astorm

Async PHP: Symfony’s HttpClient 4.3

This entry is part 1 of 1 in the series Async PHP. This is the first post in the series. One luxury afforded to the average PHP programmer is never having to worry about threads or asynchronous programming. Unlike other dynamic languages of its era (ruby, python, etc.), PHP has no built-in concept of a thread. PHP also came along early [...]

astorm

Pestle 1.5.2 Released

This entry is part 12 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released, Pestle 1.1.2 Released, Magento 2 Setup Migration Scripts, Pestle 1.2.1 Released, Sending Text Messages with PHP, pestle, and Nexmo, Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, [...]

astorm

Generics Programming for Beginners

Coming up through the dynamic languages and having my “typed” language be C, I mostly missed out on the whole “generics” thing. Cue the late 2010s and generics are a thing in TypeScript and every so often there’s a push to get generics into PHP. A few years back I figured it was time to learn what was going [...]

astorm

Changing WordPress Host Names

Recently I was moving a few of the websites and web applications I run on my laptop from .dev domain names over to .localhost domain names. The .dev top level domain became a real thing a few years back. Google bought it, started using it, and (most importantly) browsers started automatically redirecting .dev domain names from http to [...]

astorm

One Line Magento 2 Package Install

The ExtDN group, a collection of Magento extension vendors trying to keep the platform a reasonable place for extension vendors to do good work, have released an open source and vendor neutral project that will give you “one line installation” of any composer managed Magento extension. (you can even install it via homebrew) [...]

astorm

Installing Pestle via. Homebrew

This entry is part 11 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released, Pestle 1.1.2 Released, Magento 2 Setup Migration Scripts, Pestle 1.2.1 Released, Sending Text Messages with PHP, pestle, and Nexmo, Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, [...]

astorm

Pestle 1.5 Released

A new version of Pestle (1.5.0) has just been released. This is the big “generate code outside of app/code if you want” release — full docs for the new feature are also available. Download instructions are in the README.md, and current users should be able to update with a $ pestle.phar selfupdate The new feature is [...]

astorm

Composer Virtual Packages

The KnpLabs/php-github-api project was invaluable to me during my recent composer/Magento research. GitHub offers both REST and GraphQL APIs that you interact with via HTTP, but it’s often easier to use these sorts of APIs with a package that gives you classes or functions that handle the HTTP POSTing and serializing of the data. [...]

astorm

Magento, Composer, and Autoload Patterns

This entry is part 4 of 4 in the series Magento 2 and Composer. Earlier posts include Magento 2: Composer, Marketplace, and Satis, Magento 2: Composer Plugins, and Magento 2: Composer and Components. This is the most recent post in the series. A few weeks ago I set out to put Magento composer package support into pestle, and then I got [...]

astorm
email hidden; JavaScript is required