magnASCII.io Simone Magnaschi
Senior Full Stack Web Dev
Bookmarks tagged with #php.
Show all

Having fun with Kubernetes #0 – Martin Pham

Kubernetes (aka k8s – well, because there are 8 characters between K and S) was always on my Checklist for a long time. Since I wanted to learn more about DevOps to improve our delivery process at work.
Saved on: 2019-12-19

Lessons Learned from Testing and Refactoring Legacy – 24 Days in December

I remember when I first discovered automated testing. I immediately wanted to apply it to all the projects that I was working on, but it didn’t work as well as I expected. In fact, it was a disaster, which is why so many developers shy away from tests after a few failed attempts.
Tags: #testing #php
Saved on: 2019-12-05

YouTube

Let's Learn About php 7.4 and its new features! Lesson 1: Class property typing (easy casting) https://www.youtube.com/watch?v=DG9raLLgQjI&list=PLNuh5_K9dfQ1...
Tags: #php
Saved on: 2019-12-05

Generics in PHP using PHPDocs - Ondřej Mirtes - Medium

Two years ago I wrote an impactful article on union and intersection types. It helped the PHP community to familiarize themselves with these concepts which eventually led to intersection types support in PhpStorm. Today I have a similar goal. Generics are coming to PHPStan 0.
Saved on: 2019-12-02

PHP static code analysis – keep your code under control

How many times have you seen a code that seemed to be written in a rush? Multiple times, I believe.
Tags: #php
Saved on: 2019-11-13

Legacy PHP Application: PHP CS Fixer & PHP Code Sniffer for PSR1 & PSR2 – S

Part 1 of this series covers a tour of my 14+ year old legacy CMS called LampLight and it continues with my use of command line code analysis tools to migrate it from PHP v 5.6 to 7.3.
Tags: #php
Saved on: 2019-11-05

PHP: Patterns and Principles

PHP: Patterns and Principles is the upcoming book by Brent Roose, creator of stitcher.io, Laravel Beyond CRUD, and PHP Annotated. It focuses on teaching PHP developers patterns and principles in dealing with larger web apps.
Saved on: 2019-10-21

Custom error rendering in Slim 4 – Rob Allen's DevNotes

One of the nice things about Slim 4 is that it’s easier to customise the HTML generated on error without having to worry about the rest of the error handling mechanism. This is because we have separated error rendering from error handling.
Saved on: 2019-10-17

Object Oriented PHP for beginners

Object oriented PHP tutorials. This playlist covers Object-Oriented PHP in details. Starting with very basics: Creating classes and objects. ending with much...
Tags: #video #php
Saved on: 2019-10-17

A github CI workflow tailored to modern PHP applications (Laravel, Symfony, …)

Last year we wrote a blogpost about our setup we use for Oh Dear! with Gitlab, and how we use their pipelines for running our CI tests. Since then, we’ve moved back to Github since they introduced their free private repositories.
Tags: #php
Saved on: 2019-10-06

README.md

Compatible with popular PHP Frameworks such as Laravel 5+ & Symfony 4+ and their variants. Typically deployed on Kubernetes.
Saved on: 2019-09-24

nahid/presento

Presento is a simple but powerful tools for preparing and presenting data. When we build an API based application, we need to transform the data before present it through the response. This package will make this task easier for you. Not clear enough?
Saved on: 2019-09-22

Easy peasy RabbitMQ squeezy

Back in mid-2018, I had to learn the RabbitMQ. I was trying to understand how it works. Failed miserably. This thing happens too often for me. There are several things I wanted to learn. JS, Elasticsearch, MongoDB or even React. Miserably failed every time.
Saved on: 2019-08-28

Getting started with TDBM 5.1 and Symfony

In this tutorial, we are going to see how to get started with TDBM 5.1 with a Symfony application. TDBM is a PHP ORM. It is actually a database first ORM. TDBM understands your database model and generates PHP classes for you to access your database.
Saved on: 2019-08-28

A first look at Slim 4 – Rob Allen's DevNotes

With Slim 4 we have continued the tradition of allowing you to use the framework in the way that best fits you and your project.
Saved on: 2019-08-21

From LAMP to serverless: case study of externals.io | Matthieu Napoli

This article is part of a series of case studies of serverless PHP applications built with Bref on AWS Lambda. You can read more of those case studies here. This case study is about migrating the externals.io website to AWS Lambda using Bref.
Saved on: 2019-08-13

Migres - The PostgreSQL migration tool : PHP

Hey /r/PHP I just released the first *alpha* version of a tool I have been working on. It's a framework agnostic migration tool for PostgreSQL. http
Saved on: 2019-07-31

Setup VS Code for Efficient PHP development 🚀

I recently started programming in PHP using the well-known Symfony framework. I wanted to keep my VS Code habits and proficiency I had from my previous projects in Node.js and Vue.js, so I tried to configure VS Code for PHP development as well.
Tags: #tools #php
Saved on: 2019-07-20

How I use Live Templates in PHPStorm | Marijn Huizendveld

How fast you can type is usually not a constraint on software design work. However, having to write the same boilerplate code again, and again, and again can be quite a drag. Over the years I’ve started to use PHPStorm – my IDE of choice – better and better.
Saved on: 2019-07-19

Preloading in PHP 7.4

With PHP 7.4, support for preloading was added, a feature that could improve the performance of your code significantly. Let's look at it in depth.
Saved on: 2019-07-04

How to build a Docker development setup for PHP Projects [Tutorial Part 3]

In this part of my tutorial series on developing PHP on Docker we'll lay the fundamentals to build a complete development infrastructure and explain how to "structure" the Docker setup as part of a PHP project.
Tags: #php #docker
Saved on: 2019-05-20

PHP in 2019

Do you remember the popular "PHP: a fractal of bad design" blog post? The first time I read it, I was working in a crappy place with lots of legacy PHP projects. This article got me wondering whether I should just quit and go do something entirely different than programming.
Tags: #php
Saved on: 2019-05-13

When to declare classes final

In the last month, I had a few discussions about the usage of the final marker on PHP classes. It is therefore clear that coders need a better explanation of when to use final, and when to avoid it.
Tags: #php #oop
Saved on: 2019-05-07

My problems with Doctrine : PHP

[deleted]
Saved on: 2019-04-26

Děláš v PHP? Jsi jedním z nás

It would take us 3 full-time months to rewrite this code in 2017. In February 2019 we did it in less than 3-week span with the help of automated tools. Why and how? This post was originally published in Czech on Zdrojak.
Saved on: 2019-04-23

A PHP Compiler, aka The FFI Rabbit Hole | ircmaxell's Blog

It’s no secret that I’m into building toy compilers and programming languages. Today I’m introducing something that’s not a toy (I hope). Today, I’m introducing php-compiler (among many other projects).
Saved on: 2019-04-23

TwirPHP: A modern RPC framework for PHP

In the last couple years RPC started to become popular again as a communication mechanism for web-based APIs. It’s not a new concept at all, but it changed a lot over the years: the technology evolved, new IDLs and frameworks (like protobuf and gRPC) appeared.
Saved on: 2019-04-20

delight-im/PHP-I18N: Internationalization and localization for PHP

Provide your application in multiple languages, to users in various countries, with different formats and conventions. Note: On Windows, you may have to use the non-thread-safe (NTS) version of PHP.
Tags: #webdev #php
Saved on: 2019-03-29

Kubernetes: deploy Laravel the easy way ♦︎ Learnk8s

TL;DR: In this article, you will learn the basics of how to deploy a Laravel application in Kubernetes. Laravel is an excellent framework for developing PHP applications.
Saved on: 2019-03-21

Introducing Inertia.js

I recently wrote an article explaining how to do full client-side rendering in classic server-side applications. My goal with this approach is to allow developers to build rich client-side apps without all the complexity of building a full-on single-page app with accompanying API.
Saved on: 2019-03-19

PHP book recommendations 2019 : PHP

Looking for book recommendations for learning PHP that are up to date
Tags: #php #books
Saved on: 2019-03-18

Different kinds of service bus: command bus, service bus and query bus.

The last article was all about the command bus, a specific type of service bus. Now, let’s take a step back and look at some other service buses. What similarities can we discover and how do they differ. It is surprisingly hard to find an easy explanation of what a service bus is.
Saved on: 2019-03-01

Why I choose Slim Framework for my PHP web development

I’ve always been the kind of developer who wanted to have the maximum control on its application code. Of course I often found myself involved in the same tedious tasks reinventing the wheel.
Saved on: 2019-02-20

Moving away from magic — or: why I don’t want to use Laravel anymore

Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started
Saved on: 2019-02-20

Why Config Coding Sucks | Tomas Votruba

Rector and static analysis help us to work with code better, but it also helps us spot new weak-points of our PHP code. One of the biggest evils is config coding. How it can hurt you and how get rid of it?
Saved on: 2019-02-19

Keeping (large) data providers organized in PHPUnit - DEV Community ?‍??‍?

When using data providers for you PHPUnit tests, it's easy to get carried away and add loads of different test cases with subtle differences in parameters.
Tags: #testing #php
Saved on: 2019-02-18

If you could recommend just one book.. : PHP

Hi everybody, just a small question. If you could recommend one book on PHP, for a junior/intermediate developer, what would it be? And why? I've go
Saved on: 2019-02-13

GraphQLite: GraphQL in PHP made easy

We are pretty thrilled to announce a new GraphQL library for PHP. It is called GraphQLite and is aiming at making exposing a GraphQL API in PHP dead simple. GraphQLite is a PHP library that maps your PHP classes and methods into GraphQL APIs.
Tags: #php #graphql
Saved on: 2019-02-12

The Best PHP Books 2018 and 2017 - PHP Classes

This article is a listing of PHP books that have been released in the last years that are best sellers in sites like Amazon. It was built with the collaboration of the authors that have written them so they can tell you better what the books are about and why they will be useful if you read them.
Tags: #php #books
Saved on: 2019-01-04

Sanitize Your Inputs? | Kevin Smith

I'm often accused of being particularly fussy with regards to language and word choice, especially in technical discussions. It's true, but I'll wear that badge with pride.
Saved on: 2019-01-03

RubixML/RubixML: Rubix ML is a high-level machine learning library that let

Read the latest docs here. Rubix ML is a free open-source machine learning (ML) library that allows you to build programs that learn from your data using the PHP language.
Saved on: 2018-12-21

PHP Code Performance Explained - Blackfire

Welcome to Blackfire's book to PHP Performance. This book will guide you through the challenges of managing the performance of your applications.
Saved on: 2018-11-27

Laracon AU Videos - Laravel News

The first Laracon Australia is now in the books and it looked like a fantastic event. Along with videos they’ve released photos from the event and you can see those on Flickr and here are a few of our favorites.
Saved on: 2018-11-20

Another question about the future of PHP vs other, currently trendier thing

I see a lot of questions pertaining to whether PHP can survive the current trend of Node-based JS frameworks. The consensus seems to be that : PHP is
Saved on: 2018-10-02

Configuring PHP-FPM For High Network Traffic - DEV Community ?‍??‍?

Maintaining a constant response time on a server with high network traffic while using PHP is probably the hardest & most annoying thing I've done in my career. Switching from Apache to Nginx was a huge performance upgrade...
Saved on: 2018-09-11

On structuring PHP projects — Nikola Poša - Blog

An indispensable part of every programming project is how you structure it, which involves organizing files and sources into directories, naming conventions, and similar. As your application grows, so does the need for structuring it in way that it is easy to manage and maintain.
Saved on: 2018-08-28

Using traits to compose your Doctrine entities – Titouan Galopin – Medium

I migrated my posts to my own blog because Medium is becoming less and less comfortable for readers (paywalls, impossibility to highlight the code, etc.). To read this article in a nicer and privacy friendly context, read it on my personal blog and follow me on Twitter to get notified!
Tags: #php #doctrine
Saved on: 2018-08-21

adhocore/phint

Initializes new PHP project with sane defaults using templates. It scaffolds PHP library &/or project to boost your productivity and save time. For already existing project, run with --sync flag to add missing stuffs, see phint init.
Saved on: 2018-08-21

Shorthand comparisons in PHP - stitcher.io

You probably already know some comparison operators in PHP. Things like the ternary ?:, the null coalescing ?? and the spaceship <=> operators. But do you really know how they work? Understanding these operators makes you use them more, resulting in a cleaner codebase.
Tags: #php
Saved on: 2018-08-20

noximo/PHP-colored-ascii-linechart

Create beautiful, versatile ASCII line-charts within Terminal, written in PHP. This will print a simple chart with a single point in default colors.
Tags: #to-study #php
Saved on: 2018-08-06

Developing at Full Speed with Xdebug | Juan Treminio - Dallas based senior

Docker for Mac is very slow. It is so slow that I purchased a new Dell XPS laptop and for the first time in 6 years am now using a non-MacOS (Fedora) machine as my daily driver.
Saved on: 2018-07-30

From Helpers to Middleware [eng] / Marco Pivetta

PHP fwdays'18 conference took place on June 10 in Kyiv. Facebook: https://www.facebook.com/fwdays Twitter: https://twitter.com/fwdays Telegram: https://t.me/phpfwdays
Tags: #video #php
Saved on: 2018-07-23

storage/README.md at master · igniphp/storage

Minimalistic entity framework with multi database support. - storage/README.md at master · igniphp/storage
Saved on: 2018-07-17

PHP-FPM: Process Management | Servers for Hackers

Learn how to manage how PHP-FPM creates and uses PHP processes to get the most out of your server.I'm running Ubuntu 14.04 in this video: # See the version used.
Saved on: 2018-06-01

Liskov and type safety - stitcher.io

I've been fascinated by type systems in programming languages for a while now. Recently, something clicked for me about inheritance and types. Not only did it clarify type variance, I also understood what the Liskov substitution principle actually is about.
Saved on: 2018-05-28

spatie/typed

This package is a mere proof of concept about what's possible in PHP's userland to improve type checking. It adds support for type inference, generics, union types, typed lists, tuples and structs. Because all is done in userland, there are limitations on what syntax is possible.
Saved on: 2018-05-25

pwm/s-flow: A lightweight library for defining state machines that supports

S-Flow is a lightweight library for defining finite state machines (FSM). Once defined the machine can be run by giving it a start state and a sequence of events to derive some end state.
Saved on: 2018-05-21

Serverless and PHP: introducing Bref | Matthieu Napoli

Serverless basically means "Running apps without worrying about servers". Obviously there are still servers involved, the main difference is that you do not maintain the servers and reserve their capacity. They are scaled up or down automatically and you pay only for what you use.
Saved on: 2018-05-17

20 Useful PHP Scripts Available on CodeCanyon

Whether you need to create an email form, add a shopping cart to your eCommerce store, or create a contact form with validation, there's a PHP script that's right for you.
Tags: #php
Saved on: 2018-05-07

Why Docker? Creating a multi-container application with docker

If you are just starting to learn docker, one of the common questions that come to mind is what docker is and why one would need it. In this post, I provide basic answers to some of these questions and finally walk you through composing your first multi-container application with docker-compose.
Tags: #php #docker
Saved on: 2018-05-06

PSR-15 middleware, Zend Expressive and versioning – mheap

As it turns out, I mis-remembered what Matthew said in his talk and yesterday's post with Slim isn't actually PSR-15 compatible. Slim currently uses function($request, $response, $next) whilst PSR-15 uses function($request, $handler).
Tags: #php
Saved on: 2018-03-26

Functional Programming with PHP Generators – iFixit Engineering – Medium

Generators are cool. They make it easy to write iterators by defining a function instead of building an entire class that implements Iterator. They also make it easy to write lazy lists and infinite streams.
Saved on: 2018-03-19

Make your Laravel App Fly with PHP OPcache – Appstract – Medium

Every time you execute a PHP script, the script needs to be compiled to byte code. OPcache leverages a cache for this bytecode, so the next time the same script is requested, it doesn’t have to recompile it.
Saved on: 2018-03-10

san-kumar/lambdaphp

Host your website on Aws Lambda with full PHP 7 support (i.e. pay by requests instead of paying a fixed monthly hosting fee). Now it's possible for you to host dynamic PHP files, static HTML files, css files on AWS Lambda (serverless) just like an Apache server running mod_php.
Tags: #php #lambda #aws
Saved on: 2018-03-09

Responsive images done right

I want to share some thoughts on responsive images. I'll write about a certain mindset which many projects could benefit from: small- and mid-sized web projects that don't need a full blown CDN setup, but would enjoy the performance gain of responsive images.
Saved on: 2018-03-09

The Definitive PHP 5.6, 7.0, 7.1, 7.2 and HHVM Benchmark (2018)

The Most Popular PHP Frameworks to Use Everything you need to know about PHP frameworks: why you should use one, which ones are best for beginners and the most popular frameworks.
Tags: #php
Saved on: 2018-02-28

The DRY principle misunderstood | Web Technologies

Your ultimate resource hub for developers and enthusiasts seeking to explore the vast world of web technologies and beyond. Whether you’re a seasoned professional or just starting your journey, we have something for everyone.
Saved on: 2018-02-21

Building the ultimate general purpose PHP image for Docker

In this article, I will explain why we decided to build "general purpose" PHP images for Docker, and what you can gain from using one of these images (spoiler alert: it's time). Have a look at thecodingmachine/php. This project contains a set of Docker images containing PHP with:
Tags: #php #docker
Saved on: 2018-02-13

PHP design patterns

Established in the 70's by the "Gang of Four", Design Patterns are generic reusable abstract solutions to solve often recurring problems in software design.
Tags: #php #cqrs
Saved on: 2018-01-20

Regaining trust in your test suite with Docker.

Docker, and containerised services in general, have brought a lot to the world of software development. While not everybody is (or ever should be) using docker as their deployment method, it's usefulness far exceeds being just a platform to run services on in production.
Saved on: 2018-01-20

Apache 2.4, the Event MPM, PHP via mod_proxy_fcgi and PHP-FPM – with vhosts

Recently, I’ve spent a huge amount of time working on Apache and PHP-FPM in order to allow for a threaded Apache MPM whilst still using PHP and virtual hosts (vhosts). As this article is going to be rather lengthy, I’m going to split it up into sections below.
Saved on: 2018-01-16

The 2018 Guide to Building Secure PHP Software

As the year 2018 approaches, technologists in general—and web developers in particular—must discard many of their old practices and beliefs about developing secure PHP applications. This is especially true for anyone who does not believe such a feat is even possible.
Tags: #security #php
Saved on: 2017-12-16

Videos: Testing with PhpStorm | PhpStorm Blog

PhpStorm supports all the major PHP testing frameworks: PHPUnit, Codeception, Behat, and PHPSpec. Recently we’ve published a series of short videos about running PHPUnit and Codeception tests in PhpStorm.
Saved on: 2017-11-18

PHP Software Architecture Part 1: MVC – Hacker Noon

‌ ‌ ‌ ‌ ‌ ‌ ‌
Saved on: 2017-11-09

PHP: Design Patterns

Share what you’ve learned, and be a standout professional in your desired industry with a certificate showcasing your knowledge gained from the course.
Saved on: 2017-11-02

Docker for any PHP Version | Servers for Hackers

We first started trying out installing Laravel on a machine with PHP 5.5 (Laravel 5.3 requires PHP 5.6+). This gave us an error, as we'd expect. Rather than spin up a whole VM, I chose to try using Docker.
Tags: #php #docker
Saved on: 2017-11-02

PHP-FPM tuning: Using ‘pm static’ for max performance

Let’s take a very quick look at how best to set up PHP-FPM for high throughput, low latency, and more stable CPU and memory use.
Tags: #server #php
Saved on: 2017-10-10

Books

Docker has quickly become the container engine of choice, and it may be replacing a virtual machine near you soon. This book offers a step-by-step guide to walk you through building your first real PHP web application using Docker while explaining the basics of the platform along the way.
Tags: #php #docker
Saved on: 2017-10-10

How to gradually upgrade toward PHPUnit 6 with namespaced classes

In the latest months I wrote multiple times, in different projects, code migrating PHPUnit toward major version 6. This upgrade is harder than the previous one, since in this version it was introduced a big breaking change: all classes got (finally!) namespaced.
Saved on: 2017-09-12

PHP 7.2 is due in November. What's new? — Martin Hujer blog

I've published the Czech translation of the article on Zdroják.cz. PHP 7.2 is planned to be released on 30th November 2017 (see the timetable). And it comes with two new security features in the core, several smaller improvements and some language legacy clean-ups.
Tags: #php
Saved on: 2017-09-08

How to not be annoyed by tests and why they are important — Part 1

Developers tend to not write tests, the code is really hard to test or we simply don’t have time to write tests. For the last 3 years I was always struggling to test our software. These are merely excuses about not writing tests at all.
Tags: #tdd #php
Saved on: 2017-09-08

permalink

I guess I'm not the only one relying on a configuration file for parts of my code. I'm wondering what the best approach is to make sure the right clas
Saved on: 2017-08-29

Docker - Getting Started. Why it's useful. How to customize. Common pitfall

So I noticed there seems to be interest in Docker development environments in this subreddit. While I'm far from an expert, I've been learning how to
Tags: #php #docker
Saved on: 2017-08-29

CRUDlex 0.12.0 Released : PHP

Yesterday, I released CRUDlex 0.12.0. :) CRUDlex is an easy to use, well documented and tested CRUD generator for Silex. It is very useful to generat
Tags: #tools #php
Saved on: 2017-08-24

Laracon 2017 – A Recap (And Links Galore) – Koomai – Medium

I attended my first Laracon in person and I have to say I really enjoyed the experience — maybe more than I expected to. It was well organised and the talks were diverse, informative and actionable. Day 1 was all technical and mostly revolved around Laravel.
Saved on: 2017-07-28

Handling Incoming Webhooks in PHP | LornaJane

An increasing number of applications now offer webhooks as an integration, often in addition to an API. The classic example, familiar to most developers, is the GitHub webhooks which can notify your other systems such as CI tooling that a new commit has been added to a branch.
Tags: #php
Saved on: 2017-07-25

Your best dev stack

So I've been doing normal local PHP development with some frameworks like slim and laravel. Also installed and runt basic Lamp and lemp stacks on mult
Tags: #php
Saved on: 2017-07-22

TheCodingMachine Best practices

Why this website? At TheCodingMachine we write code. We read code too... a lot. This is because we use GIT and "pull-requests". For each project, the code has to be reviewed by someone before being pushed to the main branch. Very often, code reviewers are making the same comments, over and over.
Saved on: 2017-07-04
❤️
</>
2025