thgs, to php
@thgs@phpc.social avatar

Woke up this morning and feel like..

Let's build a space rocket with

symfony, to Symfony
@symfony@mastodon.social avatar
valorin, to php

Security Tip: Replace simple dependencies with in-house versions!

The more dependencies your project has, the higher your risk of supply-chain attack is, and the less you're aware of what code is actually running…
https://larasec.substack.com/p/security-tip-replace-simple-dependencies

mjgardner, to javascript
@mjgardner@social.sdf.org avatar

2023 (its friends still call it ) will standardize allowing -style shebang lines to indicate a interpreter.

https://github.com/tc39/proposal-hashbang/blob/gh-pages/README.md#why-hashbang-instead-of-shebang

Of course, the JavaScript kiddies want to call them “hashbangs” because “hash is commonly associated with modern terms involving # such as .” No respect for tradition 🧓🏻

mjgardner,
@mjgardner@social.sdf.org avatar

This quote from @codepo8 in @marypcbuk‘s article is funny.

> While serverside is far from new, he said, “it feels to me like JavaScript has finally arrived as a serverside language with this, because when I think of or or all the other languages, you always have the hashbang.”

Yep, now that you’ve almost killed everything else, welcome to the big leagues of .

https://thenewstack.io/the-new-javascript-features-coming-in-ecmascript-2023/

einenlum, to python
@einenlum@fosstodon.org avatar

I'm so thrilled to announce the release of my book "From PHP to Python".

Two years of hard work, and the journey was totally worth it. I believe I managed to write the book I wish I had when I started learning .

If you are a curious developer, you might be interested. It's a great shortcut to quickly master a second language.

Boosts and Feedback welcome! Thank you all ❤️

https://fromphptopython.com/

derickr, to php
@derickr@phpc.social avatar

ICYMI: 📰 New blog post: "Xdebug at 21": https://derickrethans.nl/xdebug-21.html

marcuskober, to php

Now let's get our hands dirty with autoloading and check out some coding standards in plugin development.

https://marcuskober.com/autoloading-coding-standards-and-file-structure-in-wordpress-plugin-development/

ramsey, to php
@ramsey@phpc.social avatar

just opened up the ability to get virtual passes to next week’s conference, so if you can’t make it in-person, you can still watch the sessions.

You can get your virtual pass and watch the live stream of the conference at https://phptek.tv

Tickets for the in-person event are still on sale, too. I hope to see you there! https://tek.phparch.com

derickr, to php
@derickr@phpc.social avatar

📰 New blog post: "Xdebug at 21": https://derickrethans.nl/xdebug-21.html

wyri, to php
@wyri@haxim.us avatar

It is Monday, and I've already written my most ridiculous bit of code of this week. A method that "converts" a string or class-string into a class-string. By returning it and telling static analyzers it is now a class-string. Mainly because I got tired of putting @var class-string everywhere. And code is used to generate code, not run at service runtime.

mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore our article: Dream Universal, Develop Local: A look at PHP Local Development Tools. https://www.symfonystation.com/local-php-development-tools

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore our article: Dream Universal, Develop Local: A look at PHP Local Development Tools. https://www.symfonystation.com/local-php-development-tools

maddiefuzz, to php

I'm about to tear my hair out.

I have no idea how to get the log output from , which is

ramsey, to php
@ramsey@phpc.social avatar

This photo popped up in my “featured photos” today.

Taken at 2017 in Atlanta, that’s Sammy, Amanda, @joepferguson, @eric, and @john seated on stage, with @matthewtrask looming behind them on a large projection screen.

I’m pretty sure I was being a jerk in the audience that night.

itsjoshbruce, (edited ) to php
@itsjoshbruce@phpc.social avatar

isn't my normal deal so any assistance would be greatly appreciated. See if there's someone who can beat me to it. lol

{!! date:
created=2023-01-01
!!}

I want to match everything between the opening and closing.

solution that seems to work:

{!!([\S\s]*?)!!}

awoodsnet, to php
@awoodsnet@phpc.social avatar

you know, it’s funny. For all the web pages that get created in PHP, a language with native templatng, we haven’t really created good strategies for making it easy to work with markup.

Where’s the discussion of strategies of creating blocks of HTML/XML? of wrapping heredocs / nowdocs in typehinted functions? of making that markup accessible?

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Here's an interesting experiment that just popped in my head. Curious if there are examples of it in , , and specifically:

Has anyone ever written (and documented) an application wherein you only pass and receive messages?

function doSomething(RequestInterface $request): ResonposeInterface

That sort of thing.

I've seen folks use Arrays and individual arguments, of course.

Crell, to php
@Crell@phpc.social avatar

Functional programming isn't just for Haskell developers. It's for developers, too. "Thinking Functionally in PHP" is available from LeanPub.

https://leanpub.com/thinking-functionally-in-php

ramsey, to php
@ramsey@phpc.social avatar

Last night, I tagged the first “stable” version of socialweb/atproto-lexicon.

It’s a schema parser for the , and it should come in handy for code-generation purposes—that’s what I’ll be using it for.

As usual, I’ll probably see much more engagement with this post here than I do on . 🤣

@activitypubblueskybridge

https://github.com/socialweb-php/atproto-lexicon/releases/tag/0.1.0

tobz, to php

This looks very promising.
https://zed.dev

I write a lot of which it doesn't support yet (how not) !

So will have to wait until I can use it properly.

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore today's @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-5-May-2023 :symfony: :elephpant_purple: :drupalicon: :fediverse: :mastodon: :php: 🇺🇦

outofcontrol, to internet
@outofcontrol@phpc.social avatar

Looking at a post on from Povilas Korop (https://twitter.com/PovilasKorop/status/1653311111498719236)

I'm always torn about using $userID or $userId.

outofcontrol, (edited )
@outofcontrol@phpc.social avatar

From my previous post, in which way do you name your variables?

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore today's @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-5-May-2023 :symfony: :elephpant_purple: :drupalicon: :fediverse: :mastodon: :php: 🇺🇦

neotoy, to php
@neotoy@mastodon.social avatar

So I know there are tons of brilliant on here & I have a question. One of my biggest challenges is ...

I've been using notepad for , & & which I know is really holding me back, but... I don't want an IDE that looks like the inside of a space shuttle cockpit.

Is there an IDE out there that is simple, elegant, & doesn't take up 30GB of disk space while also having essential features like:

Visually shows the relationship between code & output in real-time?

mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore today's @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-5-May-2023 :symfony: :elephpant_purple: :drupalicon: :fediverse: :mastodon: :php: 🇺🇦

  • All
  • Subscribed
  • Moderated
  • Favorites
  • tester
  • everett
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • rosin
  • slotface
  • InstantRegret
  • mdbf
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • Leos
  • ngwrru68w68
  • hgfsjryuu7
  • cubers
  • GTA5RPClips
  • khanakhh
  • vwfavf
  • ethstaker
  • osvaldo12
  • cisconetworking
  • normalnudes
  • tacticalgear
  • modclub
  • anitta
  • All magazines