Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
exakat to PHPEnglish · 2 days ago

Why I Avoid PHP Traits (And What I Use Instead)

dev.to

external-link
message-square
0
link
fedilink
4
external-link

Why I Avoid PHP Traits (And What I Use Instead)

dev.to

exakat to PHPEnglish · 2 days ago
message-square
0
link
fedilink
PHP traits are usually presented as a handy way to reuse code. In practice, they are one of the most...
alert-triangle
You must log in or # to comment.

PHP

php

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

<?

namespace lemmy\php;

/*

Welcome to the PHP community on Lemmy

#Rules:

1: Soon™

#Helpful stuff:

PHP Documentation

Composer

PHP Standards

#Common frameworks:

Symfony

Larvel

*/

echo “Welcome”;

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 4 users / day
  • 16 users / week
  • 47 users / month
  • 56 users / 6 months
  • 239 local subscribers
  • 403 subscribers
  • 53 Posts
  • 37 Comments
  • Modlog
  • mods:
  • Madpeter
  • UI: 0.19.16-8-g8cd34ec0
  • BE: 0.19.16-6-g1f680600c
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org