Due to security reasons, php filter module has been removed from Drupal 8. It caused adding php scripts in blocks and nodes very difficult. To overcome this problem we have created our own module and pushed it as sandbox project in Drupal.org
Php Shortcode - This modules provides shortcode option to execute php scripts inside blocks and nodes.
Dependencies:- Shortcode module
Project URL:- https://www.drupal.org/sandbox/niyas/2780793
Steps to use this module:-