php

21 Articles 1 Followers

So you want to be a “Web Developer”

This started as a reply to a post on reddit r/phphelp. I’ll likely add to it as I find new things or think of bits and pieces to add. Do not think you have to be a “full stack” developer. Unless you dedicate many years, you will be a jack of all trad...

baohx2000 2 minute read 4 Jun 2021 2 comments $0.11

Composer Monorepo Without Plugins

The problem: You have multiple services you want to build/ci/deploy. You want them all to have consistent dependencies between them all (one of the big reasons to utilize a monorepo). It’s not difficult, you just have to think of your project as bein...

baohx2000 2 minute read 4 Jun 2021 0 comments $0.02

Symfony and PHP attributes

The last stable version of Symfony : 5.2 now uses new PHP 8.0 feature : attributes.  PHP Attributes PHP attributes offer a way to add metadata information on classes, methods, parameters... Here is how you can create an attribute : #[\Attribute] clas...

Jon92 1 minute read 4 Apr 2021 0 comments $0.03

Three e-books to fully master PHP

PHP is one of the most famous programming language dedicated for creating dynamic web sites, PHP was specifically designed for building dynamic web sites it is very easy to learn and free, it is a powerful language and widely used in this domain. So...

ryosuke 1 minute read 12 Feb 2021 0 comments $0.01

XDEBUG with VS CODE on Big Sur

Yesterday I got my hands on a new MacBook Pro with the new M1 processor and Big Sur OS. I was very excited since I watch Apple announcing it a couple of weeks ago. As a seasoned PHP developer, mostly working with Laravel, I have been wondering if the...

Coding Wisely 1 minute read 30 Nov 2020 0 comments $0.48

PHP PDO insert boilerplate code

If you are like me you often grab some old code and copy it and then just change the values a bit. I find myself more often than not googling the code on StackOverflow in order to get some examples because I am too lazy to type it out. Here is the co...

Erik Thiart 1 minute read 25 Nov 2020 0 comments $0.03

Regex: practical developping and testing

Hello all!   You know i don't write for nothing, so here i won't cover whole regex theory, other sites does it well.   Here i want to present a great tool boosting your regex composing time.   It brings: - Didactic live regex composing - Dynamic test...

d-erf 1 minute read 20 Oct 2020 0 comments $0.87

Symfony 5 php object to array conversion

Hello all!     Today one tip (for a tip!), for automatic, correct, recursive, pain-free method to converting php object to json, under symfony 5 php framework. You know it's a common need but not so well addressed in fact, with such a simplicity, avo...

d-erf 1 minute read 13 Oct 2020 0 comments $0.53

Symfony 5 php mongo odm array field

Hello,   I've been searching this information for a couple of hour, and as it's now well documented, i publish solution to prevent other people losing to much time for same need.   Mongodb odm in a symfony 5 project.   How to annotate type in Documen...

d-erf 1 minute read 10 Oct 2020 0 comments $1.27

Linux allows you to build your own website until it is just the way you want it.

Using Apache web server, PHP web scripting tool that makes web pages dynamic, AND MariaDB  which is very much like MySQL as a database. Depending on which Linux you use, the location of the web site's pages to be seen vary. On OpenSuSE Leap 15.1, the...

TrekJunky 1 minute read 15 Feb 2020 2 comments $0.01