{"id":11656,"date":"2024-05-18T11:53:49","date_gmt":"2024-05-18T09:53:49","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=11656"},"modified":"2024-05-18T11:53:51","modified_gmt":"2024-05-18T09:53:51","slug":"enum-best-practices-in-php-8-3","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2024\/05\/18\/enum-best-practices-in-php-8-3\/","title":{"rendered":"Enum Best Practices in PHP 8.3"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Enums were added to PHP in 2021. In this post, I share my experience working with enums and give a brief overview.<\/p>\n<\/blockquote>\n\n\n\n<p>Source: <em><a href=\"https:\/\/dogan-ucar.de\/enum-best-practices-in-php-8-3\/\">Enum Best Practices in PHP 8.3<\/a><\/em><\/p>\n\n\n\n<!--nextpage-->\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Enums were added to PHP in 2021. In this post, I share my experience working with enums and give a brief overview. Source: Enum Best Practices in PHP 8.3<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2024\/05\/18\/enum-best-practices-in-php-8-3\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"inline_featured_image":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[167],"tags":[],"class_list":["post-11656","post","type-post","status-publish","format-link","hentry","category-php","post_format-post-format-link"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-320","jetpack-related-posts":[{"id":9311,"url":"https:\/\/monodes.com\/predaelli\/2022\/04\/27\/9311\/","url_meta":{"origin":11656,"position":0},"title":"As I wished to add\u2026","author":"Paolo Redaelli","date":"2022-04-27","format":false,"excerpt":"As I wished to add a little NextCloud installation to my small corporate server I used its web installer that quaralled that PHP 7.2 is too old. I was used to Debian way of handling multiple versions of a package (having the major version in the package name). These notes\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3249,"url":"https:\/\/monodes.com\/predaelli\/2017\/07\/30\/learning-php-7\/","url_meta":{"origin":11656,"position":1},"title":"Learning PHP 7","author":"Paolo Redaelli","date":"2017-07-30","format":false,"excerpt":"Learning PHP 7: Learn the art of PHP programming through this example-rich book filled to the brim with tutorials every PHP developer needs to know One has to be humble enough to start from the beginning when he really wants to learn a language. I've read half of it and\u2026","rel":"","context":"In &quot;Eiffel&quot;","block_context":{"text":"Eiffel","link":"https:\/\/monodes.com\/predaelli\/category\/eiffel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3428,"url":"https:\/\/monodes.com\/predaelli\/2017\/10\/09\/from-php-to-javascript-with-node-js-matters\/","url_meta":{"origin":11656,"position":2},"title":"From PHP to JavaScript with Node.js \u2013 Matters","author":"Paolo Redaelli","date":"2017-10-09","format":"link","excerpt":"https:\/\/blog.matters.tech\/migrating-from-php-to-javascript-with-node-js-155534498b58","rel":"","context":"In &quot;Javascript&quot;","block_context":{"text":"Javascript","link":"https:\/\/monodes.com\/predaelli\/category\/javascript\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2453,"url":"https:\/\/monodes.com\/predaelli\/2017\/05\/15\/2453\/","url_meta":{"origin":11656,"position":3},"title":"I want to dive a\u2026","author":"Paolo Redaelli","date":"2017-05-15","format":"link","excerpt":"I want to dive a little into WordPress codebase but modern PHP is quite a different language from what I've learned - albeit a little - way ago, so long ago that Wordpress didn't even existed then. Beside reading the obvious official documentation, I've discovered that the almighty O'Really seems\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4792,"url":"https:\/\/monodes.com\/predaelli\/2018\/10\/28\/telosys-code-generator-for-java-javascript-python-nodejs-php-c-etc\/","url_meta":{"origin":11656,"position":4},"title":"Telosys code generator for Java, JavaScript, Python, NodeJS, PHP, C#, etc","author":"Paolo Redaelli","date":"2018-10-28","format":false,"excerpt":"Telosys is a free code generator usable with different languages or frameworks : Java, JavaScript, Python, NodeJS, PHP, GoLang, C#, Angular, VueJS, etc Sorgente: Telosys code generator for Java, JavaScript, Python, NodeJS, PHP, C#, etc","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4450,"url":"https:\/\/monodes.com\/predaelli\/2018\/07\/28\/java-will-kill-your-startup-php-will-save-it-alexander-katrompas-medium\/","url_meta":{"origin":11656,"position":5},"title":"Java will kill your startup. PHP will save it. \u2013 Alexander Katrompas \u2013 Medium","author":"Paolo Redaelli","date":"2018-07-28","format":false,"excerpt":"https:\/\/medium.com\/@alexkatrompas\/java-will-kill-your-startup-php-will-save-it-f3051968145d","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/11656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=11656"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/11656\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=11656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=11656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=11656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}