Web Development tips and tricks: PHP, CSS, JavaScript, HTML, Drupal

Here is a pretty way to use SSH with PHP.
Please note that this method required to install libssh2 for PHP on the server.


The qickest way to duplicate MySQL table.


Quick snippet how to make a youtube embed video responsive by CSS only.

Quick code sample on how to get and attach an image or file to node or other entity programmatically in Drupal 8.

Code snippet to load taxonomy term by name (or any otehr property) in Drupal 8.

Code snippet to add YouTube video as a background for you HTML tag.

Code snippet to create an Order and Order Items in Drupal Commerce for Drupal 8.

Code snippets for creating Drupal 8 products and product variations for Drupal Commerce.

Quick but helpful example - how to get the taxonomy terms of a vocabulary?

In this article I will show you how to create a Bootstrap subtheme for Drupal 8.


Hey! Don't miss a new cool stuff!