writing

October 2, 2023

Compiling Python 3.12 from Source Tarball on Linux

Debian/Ubuntu Red Hat or Fedora: Download "Gzipped source tarball" the from Python.org, and it extract it locally. Check how many CPUs you have to enable faster compilation: In this example we have 8 CPUs on the github-cicd server. We want to use all our cores to compile so it runs faster. If you run into issues you can try using 1 or 2 fewer CPUS than reported by...

learning python writing

Read

July 10, 2023

HTML Form Processing with PHP - php[architect] Magazine August 2014

Forms are everywhere. Every application that interacts with a user uses forms in some manner. Whether you are logging into a website, filling out a survey, or signing up for a service you are interacting with a form that someone had to create in order to get some info from you. You have a PHP application that needs input. How do you safely, securely, and reliably obtain that input or other...

learning phparch writing

Read

July 5, 2023

The Workshop: Local Dev with Lando - php[architect] Magazine November 2022

This month we’re going to visit a topic that is near and dear to my heart: local development environments. I’ve been maintaining Laravel Homestead since late 2016 and have been a longtime tinkerer of just about every local development tool you’ve ever heard of and they all have their strengths and weaknesses. Lando is just about the only tool I haven’t had a chance to dive into so join...

learning phparch writing

Read

May 4, 2023

Getting back into the swing of things

Monthly php[architect] readers might have noticed I haven't been in the past three issues and I have a really good reason: the day job. We had a pretty ambitious Q1 and it meant that for my own health, writing had to be pushed off the calendar. I was fortunate enough that Eric and John understood and while I made some connections for guest columns they largely left me alone which is exactly what...

conferences speaking writing

Read

November 28, 2022

The Workshop: Accept testing with Codeception - php[architect] Magazine April 2022

Acceptance testing is a method of verifying our application behaves exactly as expected, often utilizing a web browser. We will write test scenarios that will be acted out by a user interacting with our application such as logging in or performing a specific task. Acceptance tests are slower than unit tests because they rely on a web browser. What we lose in the speed of running acceptance...

learning phparch writing testing

Read

May 13, 2022

The Workshop: Apache and PHP – Back to Basics - php[architect] Magazine January 2022

This month we’re diving into Apache and PHP configuration to better understand the relationship between the web (HTTP) server and our application. When getting started with PHP it’s quite common for tutorials and guides to skip over the webserver and focus more on the language aspects. PHP developers need to have a strong understanding of how the webserver executes their code as requests...

learning phparch writing php apache

Read

February 25, 2022

The Workshop: Testing with Pest Framework - php[architect] Magazine August 2021

Pest is a PHP testing framework focused on simplicity and brings a powerful expectations API to PHP. Pest is influenced by Jest, a JavaScript testing framework. Pest was created by Nuno Maduro originally via Sponsorware license, and ultimately has been published under the MIT open source license. You can think of Pest ha an alternative to other testing frameworks, such as Codeception, which can...

learning phparch writing php testing

Read

June 11, 2021

The Workshop: S3 Storage with MinIO - php[architect] Magazine January 2021

This month we’re diving into running our own S3 compatible open-source server via the open-source project MinIO. We’ll configure MinIO alongside our local development environment so we can easily replicate the integration of our application with S3 object storage without operating on “production” storage buckets or having to setup “dev” buckets. Amazon’s Simple Storage Service...

learning phparch writing php s3 data storage

Read

January 10, 2021

The Workshop: Easy CLI PHP with Symfony Console 5 - php[architect] Magazine April 2020

Writing console commands with PHP is something I have always taken for granted. I started my career having learned Linux and command line server configuration and was very comfortable writing small applications with BASH scripts, Python, and even dabbling in C and Microsoft Qbasic. These commands copied files to a backup location, process batched data records in CSV, XML, and various other...

learning phparch writing php

Read

January 10, 2021

The Workshop: Specification BDD with Phpspec - php[architect] Magazine May 2020

phpspec is a package in which we can use behavior driven development, BDD, which comes fromtest driven development, TDD. When applying BDD we’ll write our tests first and then only enough code to pass our tests and then refactor and verify the tests still pass exactly as we would with TDD. This cycle continues and is often referred to as red-green development of writing tests that fail and...

learning phparch writing php testing

Read

December 10, 2020

The Workshop: Managing LAMP with Virtualmin - php[architect] Magazine March 2020

Virtualmin is a web hosting and cloud computing control panel. A hosting control panel is a web-based application that runs on a server and manages all the aspects of a hosting account. This includes account information, web sites, web servers, databases, mail servers, and all the other services which ultimately work together to allow you to run your application. A lot of value I get from...

learning phparch writing php

Read

December 2, 2020

The Workshop: GitHub Actions for Continuous Integration - php[architect] Magazine February 2020

You can read the entire article for free at https://www.phparch.com/2020/07/the-workshop-github-actions-for-continuous-integration/

learning phparch writing php

Read

December 1, 2020

The Workshop: Ansible in Practice - php[architect] Magazine January 2020

This month, we're going to dive into a practical application of Ansible by building a playbook with roles to implement a fully functional Linux, MySQL, PHP, and NGINX web server. By the end, you should be able to take the playbook we build together and extend it to suit your requirements. To follow along or review any parts of the playbook we're building, you can clone the repository....

ansible learning phparch writing php

Read

September 26, 2020

The Workshop: Real World PDF Generation - php[architect] Magazine September 2019

Last month we covered the basics of PDF generation by focusing on the FPDF library. We generated a custom PDF by placing cells on the page and adding data to those cells. FPDF is a relatively low-level library in comparison to modern libraries which may do more of the heavy lifting for you. This month we’re going to pick up where we left off with our example application which you can...

learning phparch writing php

Read

September 24, 2020

The Workshop: Introduction to PDF Generation - php[architect] Magazine August 2019

In early July 2019 I asked Reddit What questions do you have about generating PDFs w/ PHP? (Research for an article) : PHP and I was pleasantly surprised at the genuine answers and feedback I received (as opposed to the normal nonstop trolling that Reddit is usually known for). One comment listed 19 different questions! Many of the comments mention different libraries and services and I believe...

learning phparch writing php

Read

September 10, 2020

The Workshop: Run Amazon Linux Locally - php[architect] Magazine July 2019

Amazon Linux 2 is the current generation of Linux provided by Amazon Web Services (AWS) specifically for use in its ElasticCloud (EC2) platform. Amazon Linux evolved out of the Red Hat Enterprise Linux and CentOS ecosystems. If you have used either of these distributions you will feel right at home. Amazon Linux also has the added benefit of support directly from AWS as well as security...

learning packages phparch writing linux

Read

September 5, 2020

The Workshop: The Road to 7.3 (Part 2) - php[architect] Magazine February 2019

Last month we explored the world of static analyzers Phan and PhpStan to find compatibility issues any several other common issues in our PHP Easy Math code base. This month we’re going to review our code base and implement new and recent features from PHP 7.x One of the best features of new PHP versions is the performance boost. With every PHP 7 release we have enjoyed some amount...

learning packages phparch writing php

Read

September 4, 2020

The Workshop: The Road to 7.3 (Part 1) - php[architect] Magazine January 2019

Last month as I was writing “The Workshop: Producing Packages (Part 3)” I had a feeling I would end up regretting the line “This will be the third and final installment in this series”. Sure enough I have one more topic I want to cover: upgrading to a new PHP version. Upgrading PHP versions is enough to be its own “The Workshop” series however since 7.3 was just released...

learning packages phparch writing php

Read

September 3, 2020

The Workshop: Producing Packages (Part 3) - php[architect] Magazine December 2018

Over the past two months we've been building PHP Easy Math a purposely simple example library to demonstrate how to build a reusable package for the PHP ecosystem. Make sure to check the previous issues if you're just now joining us! This will be the third and final installment in this series. This month we're going to cover triaging and managing issues users may open as well as pull...

learning packages phparch writing php

Read

September 2, 2020

The Workshop: Producing Packages (Part 2) - php[architect] Magazine November 2018

Last month we started building PHP Easy Math, a small library which can be included in PHP projects to provide simple methods to do basic addition and subtraction. We're using this as an example library to focus on what makes a library "good" we are less worried about the practical need for and usage of our package. If you have not yet read Part 1 pause here and go read The...

learning packages phparch writing php

Read

September 1, 2020

The Workshop: Producing Packages (Part 1) - php[architect] Magazine October 2018

This month we are diving into creating PHP packages and ensuring our packages are held to a high standard of having tests, license information, and other best practices for creating and maintaining high quality PHP packages. Composer changed the entire PHP ecosystem by giving us Composer, a fantastic package manager and Packagist, the public repository of libraries. PHP developers can...

learning packages phparch writing php

Read

August 27, 2020

The Workshop: Describe Your Tests with Kahlan - php[architect] Magazine September 2018

This month we're covering a full featured unit and behavior driven development (BDD) test framework named Kahlan. Kahlan is similar to Rspec (Ruby) and JSpec (Java) using BDD style syntax where you describe the behavior your application should have. We already have tons of PHP testing frameworks readily available in the PHP ecosystem such as PHPUnit, phpspec, Codeception, Behat, and...

learning phparch writing testing php

Read

August 26, 2020

The Workshop: Make PhpStorm Work for You - php[architect] Magazine August 2018

This month we're going to dive into using PhpStorm and cover configuration from personal preferences to obeying standards and day to day usage. PhpStorm is practically the de facto integrated development environment (IDE) for PHP development. It's a paid product from a company named JetBrains. Jetbrains develops and maintains several IDEs for specific languages such as WebStorm for...

learning packages phparch writing php

Read

August 24, 2020

The Workshop: CakePHP Part Two - php[architect] Magazine July 2018

Last month we covered the basics of CakePHP and how to get started creating routes, controllers, database tables, and retrieving data. This month we're going to dive into returning HTML views, creating and validating forms to create new widgets. We are going to start off by refactoring the routes code we built in the previous article "The Workshop: CakePHP, Part 1". You can find the code...

learning packages phparch writing cakephp

Read

August 23, 2020

The Workshop: CakePHP Part One - php[architect] Magazine June 2018

Welcome to the first installment of The Workshop, a column where we try out new tools and techniques to hone our craft as developers. We'll be covering frameworks, packages, tools, and exploring topics related to the PHP development ecosystem. This month we're going to jump into CakePHP. CakePHP has recently released version 3.6 of their full stack framework. CakePHP started out as a...

learning packages phparch writing cakephp

Read

August 19, 2020

The Workshop: System Management with Ansible php[architect] Magazine December 2019

Ansible is an IT automation tool used for configuring systems and deploying applications. Ansible is open source is supported in the enterprise by RedHat. Ansible communicates over SSH so there is no need to install any extra software on the remote systems. Ansible allows us to version control our infrastructure in YAML files and supports Jinja templates allowing flexibility in how we can...

learning packages phparch writing ansible

Read