PHP is fine too. Check out https://laravel.com/ and tell me that doesn't look like a joy to work with.
It's a resounding no from me. If you're stuck with PHP, sure, this beats the WordPress style of...well...I can't really find words to describe how bad it is..., but it's still miles behind anything else. It full of strings and other things that you just have to memorize with IDE integration even with specialised extensions still worse than other languages with standard IDEs.
'gender' => 'in:male,female,other'
You can now do: 'gender' => Rule::in(['male', 'female', 'other'])
Which, coming from Go, I very much prefer.Modern PHP is pushing for type-safety (via type-hinting) and Laravel is following this direction as well.
PHP has grown up a lot over the last ten years.
It's too stringly-typed for my tastes, seems like a lot of errors you can make will only be caught at runtime.