Skip to main content

PHP8

Nov 28, 2025 5 min read

PHP 8.5 Features : PHP NoDiscard Attribute to improve safety of APIs

Web APIs are crucial part of any #Back-End application and their safety is primary focus of any developer. Use PHP NoDiscard Attribute to secure API call.

 

#[\NoDiscard] Attribute

What happen if you forget to use the returned value of a function? many time we miss the usage of a retuened response from a function. But this will not break your application anymore as PHP 8.5 has introduced PHP NoDiscard Attribute #[\NoDiscard]

 

Jan 22, 2025 5 min read

Transform PHP 8 class to a Database table like a framework

Use #reflection #api in #php8 to transform PHP 8 class to a database table. In this blog post you will learn how to map a class properties into #MySQL table and columns.

 

Why do you need to transform PHP 8 class to a database table?

The logic is important to understand the #drupal11 #entityapi and making of custom entities. Also, you need to understand how reflection API works behind the scene so that you can adopt new way of hooks implementation in Drupal 11.

© 2026 Bhimmu.com. Content Migration Experts. Built for Drupal 11.