A few days ago Github again, prevents access to my personal private project on Github because I visited my home country last year.
I decided to move my private repositories from Github to Gitlab. after migrating my project I noticed I haven't work with Gitlab for a long time and during this time it has added a lot of tools. like Bitbucket and Github it server very convenient CI/CD development that developers easily deploy their projects to servers without any cover.
How to apply patches in Drupal 8 with Composer
Sometimes you need to apply the patch in Drupal 8. as I wrote here after Drupal 8.8, Drupal is more composer friendly CMSF, So you can easily apply custom patches without worry about how to keep the patches available in Drupal core updates.
How to apply a custom patch with composer?
first, you need to install cweagans/composer-patches which is a package to apply patches by composer. you can install it with
Composer cheatsheet for a Drupalist
As you know Composer is a great tool to manage packages and their dependencies in PHP, while in Drupal 8.8 is going to more composer compatible, you can find composer cheatsheet in the following.
Update Drupal Automatically - new feature
Auto-update Drupal core and modules always have been a high demand in Drupal. hopefully, in the Amsterdam 2019 DrupalCon , Automatic Updates modules has been introduced. a great module but in begging on its way. but Automatic updates is a great feature in drupal.
it has been introduced as a contrib module, but it will finally go to the core of Drupal.
as you can see in its page in will developed in two phases.
What is Autowiring? how to use Autowire in Drupal
I heard about the autowiring concept several years ago in spring java,
Autowiring feature of spring framework enables you to inject the object dependency implicitly. It internally uses setter or constructor injection.
in Symfony 2.8, in November 2015, the autowiring concept introduced in a PHP framework for the first time.
What is SOLID Principle? go through SOLID Principle by example
SOLID Principle, a buzzword you hear everywhere, A brilliant rules to develop software.
Drupal Global Services, How to use global services in Drupal 8
One of the significant improvements of Drupal 8 that got me excited was the services & dependency-injection throughout the entire Drupal system. From aspects like routing, templating, managing configuration, querying and persisting data, you name it everything is done with services. it's fantastic because it grants developers a level of flexibility in extending Drupal that is far greater than what Drupal 7 was able to. by using well-disposed structure developers get ride of ravioli coding.
Fix Drupal Files/Directories permissions by PHP after hacked
Last night one of our former company's customer called me and need help to recover their hacked website,
First of all, I install the Hacked module, and check the changed files and recover them, then looking and cleansing some backdoor files which their job is to inject codes for external codes(most of the time, js files to traffic hijacking) to the website.
Protect Children on the internet
I wrote a post about the youtube.com tool to protect children on the youtube.com in Persian, Kaylee Ferreira emailed me and ask me to read and share her great articles, Actually, children are unprotected surfers of the internet, there are tones of Vulners which we should protect them.
and the Kaylee said in her articles :
Notes about Background Commands; run multiple commands in docker-compose
I've written an article about the running Php scripts in the background two years ago, Now I'm going to write an advanced version of it, nowadays I'm working with docker and micro-services which we need in our architecture.
as I explained before