php

19 Articles 1 Followers


Symfony and PHP attributes

4 Apr 2021 1 minute read 0 comments Jon92

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...

Three e-books to fully master PHP

12 Feb 2021 1 minute read 0 comments ryosuke

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...

XDEBUG with VS CODE on Big Sur

30 Nov 2020 1 minute read 0 comments Coding Wisely

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...

PHP PDO insert boilerplate code

25 Nov 2020 1 minute read 0 comments Erik Thiart

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...

Regex: practical developping and testing

20 Oct 2020 1 minute read 0 comments d-erf

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...

Symfony 5 php object to array conversion

13 Oct 2020 1 minute read 0 comments d-erf

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...

Symfony 5 php mongo odm array field

10 Oct 2020 1 minute read 0 comments d-erf

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...

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

15 Feb 2020 1 minute read 2 comments TrekJunky

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...

Integrating keybase with a php website

20 Sep 2019 11 minute read 0 comments viraladmin

Today's article will be a bit different from most of my articles. Its going to explain how to integrate keybase verification with a php website. This article is specifically for people who use php as a programming language and it assumes you have cod...