@ghostwriter@phpc.social avatar

ghostwriter

@ghostwriter@phpc.social

A functional mind hosted in an object oriented brain. #BlackLivesMatter✊🏾✊🏿

OSS Maintainer and Software Architect

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ghostwriter, to random
@ghostwriter@phpc.social avatar
sarah, to random
@sarah@phpc.social avatar

Hot take: the best framework in PHP is easy to figure out. I'll even tell you what it is.

Drumroll please...

The best framework in PHP is the one that gets the job done for your business case.

Frameworks are tools, and we should treat them as such. The best one meets your business needs and development goals, and achieves the objectives for which it was selected. Nothing more, nothing less.

ghostwriter,
@ghostwriter@phpc.social avatar

@sarah what framework would you have preferred to have used to build phpforhire?

for your business case? outside of the current WooComSF.

ghostwriter,
@ghostwriter@phpc.social avatar

@sarah for some reason my brain is fighting to accept “WordPress” as a framework for software development.

My understanding was WordPress is an application, blogging application that has grown into a full-featured content management system.

I forgot my followup question.

sarah, to php
@sarah@phpc.social avatar

What do you use for offsite backups for applications and databases?

ghostwriter,
@ghostwriter@phpc.social avatar

backup

docker exec -t {app}postgres pg_dumpall -c -U postgres > backupdate +%Y-%m-%d"_"%H_%M_%S.sql

upload to s3

aws s3 cp ./backups/ s3://backups/ --recursive --exclude * --include backup_*.sql


download from s3

aws s3 cp s3://backups/backups_xyz.sql /backup.sql

restore

cat backup.sql | docker exec -i {app}_postgres psql -U postgres

ghostwriter, to random
@ghostwriter@phpc.social avatar

standard file extension for PHP

== PHP 2 - .phtml

== PHP 3 - .php3

>= PHP 4 - .php

derickr, to random
@derickr@phpc.social avatar

👋 For those who are interested in writing PHP extensions, and the tutorial I did yesterday at , I also have these as a video online on YouTube: https://www.youtube.com/watch?v=WjbKYHzoKM0&list=PLg9Kjjye-m1hW4z0J-546qaFpysjlo27x

🎥 There will be more episodes coming soon™.

ghostwriter,
@ghostwriter@phpc.social avatar

Great tutorial @derickr,

learned more about PHP's internal API

thank you for sharing.

ramsey, to opensource
@ramsey@phpc.social avatar

On one hand, I get it. Theming is hard, and if users use a third-party theme and have a bad experience, they blame the app, rather than the theme.

On the other hand, I think applying this statement to a project goes against the spirit of .

https://stopthemingmy.app

ghostwriter,
@ghostwriter@phpc.social avatar

@ramsey
No, they are correct

They have a valid reason for their statement

I believe we should all respect the opinions expressed from their genuine experiences

they make it clear that app does not officially support themes

As long as they are not actively doing anything to prevent users from using their app with "themes"

open and honest discussions, with both sides freely expressing their opinions is better

than hiding in private silos demoralizing others

eg. nuno "wrappers” php packages

manchuck, to random
@manchuck@phpc.social avatar

Daisy came home today to meet her little brother

ghostwriter,
@ghostwriter@phpc.social avatar

Congratulations to you and your family! @manchuck

ghostwriter, to composer
@ghostwriter@phpc.social avatar
ghostwriter, to php
@ghostwriter@phpc.social avatar

Tagged Mockery 1.6.10

composer require mockery/mockery --dev

Refactored legacy codebase with the help of our contributors to achieve:

  • Improved performance
  • Reduced memory consumption
  • Modernized syntax
  • Support for versions 7.3 to 8.4*

What’s next?

  • Mock readonly classes.

https://github.com/mockery/mockery/releases/tag/1.6.10

sebastian, to random
@sebastian@phpc.social avatar

With GitHub Releases, is there a way to configure "N commits to 11.0 since this release" instead of "N commits to main since this release"?

ghostwriter,
@ghostwriter@phpc.social avatar

try choosing which branch to run the actions on.

  1. "actions/checkout” , use ref action inputs.

https://github.com/actions/checkout?tab=readme-ov-file#checkout-a-different-branch

  1. "ncipollo/release-action” , set both the tag and commit action inputs.

commit can point to a commit hash or a branch name
https://github.com/ncipollo/release-action?tab=readme-ov-file#notes

@sebastian

sebastian, (edited ) to random
@sebastian@phpc.social avatar

#PHPUnit 10.5.12 and 11.0.5 are the first releases that use GitHub's Releases feature:

https://github.com/sebastianbergmann/phpunit/releases

ghostwriter,
@ghostwriter@phpc.social avatar

Thanks @sebastian,

p.s. latest @phpunit phar releases are missing from phar.phpunit.de

ghostwriter,
@ghostwriter@phpc.social avatar

@sebastian maybe, it’s available now.

Thank you

derickr, to random
@derickr@phpc.social avatar

A while ago, somebody on here was asking for help with Mastodon/ActivityPub signatures, but I can't find the post or person.

I can probably now offer some help.

ghostwriter,
@ghostwriter@phpc.social avatar
ghostwriter,
@ghostwriter@phpc.social avatar

@derickr regular “dork" search and photographic memory

ghostwriter, to random
@ghostwriter@phpc.social avatar

Hey @beausimensen

I appreciate you streaming the content on PHP Performance Profiling with Blackfire.

Watching you in action taught me a some useful tricks.

Thank you

ghostwriter, to php
@ghostwriter@phpc.social avatar

Starting from 8.0.0, we can use reserved keywords as part of a namespace name.

namespace Vendor\Package\Trait;

namespace Vendor\Package\Interface;

However, using the keyword as a standalone class name is not supported.

afilina, to random
@afilina@phpc.social avatar

Seriously, this is my 4th consecutive respiratory infection, on top of independent flu and pneumonia cases earlier in the fall. It's do hard to get any work done. I've been barely going out to protect myself. I fall sick each year, but not like this. This is insane.

ghostwriter,
@ghostwriter@phpc.social avatar

@afilina get well soon.

nicoverbruggen, to random
@nicoverbruggen@phpc.social avatar

🚀 PHP Monitor 6.2.2 is now available!

This update makes the upgrade process to PHP 8.3 as seamless as possible, and upgrading is HIGHLY recommended this time around.

🔗 http://phpmon.app

📝 http://github.com/nicoverbruggen/phpmon/releases/tag/v6.2.2

❤️ http://phpmon.app/sponsor

ghostwriter,
@ghostwriter@phpc.social avatar

Thank you @nicoverbruggen, works great on M1.

ghostwriter, to github
@ghostwriter@phpc.social avatar

Beta testing #GitHub #Copilot Chat for #PHP via #PHPStorm

image/png

ghostwriter, to random
@ghostwriter@phpc.social avatar

Hey @Girgias,

Hope you’re doing well.

When an exception is thrown inside a function or method that returns a Generator, the exception does not propagate or end the execution…
until we iterate over the generator.

Is this behavior correct?

https://3v4l.org/JEK7g

Should we validate the user input in a separate function/method?

ghostwriter, to php
@ghostwriter@phpc.social avatar

The rate limit for GITHUB_TOKEN is 1,000 requests per hour per repository

No more than 100 concurrent requests are allowed

No more than 90 seconds of CPU time per 60 seconds of real time is allowed

No more than 60 seconds of this CPU time is allowed for the GraphQL API

No more than 80 content-generating requests per minute and no more than 500 content-generating requests per hour are allowed.

You can use the headers that are sent with each response to determine the current rate limit

thomas, to php
@thomas@metalhead.club avatar

Nextcloud 25 is not compatible to Debian 12 Bookworm (PHP 8.2) - and Nextcloud 26 is not compatible to Debian 11 (PHP 7.4). Sooo how do you upgrade to Debian 12 Bookworm?

It turns out that the Nextcloud 25 updater is PHP 8.2 compatible, so it's Bookworm compatible!

Therefore upgrade to Debian 12 first and then Upgrade to Nextcloud 26 by using the CLI:

sudo -u www-data php updater/updater.phar

See: https://help.nextcloud.com/t/upgrade-to-debian-12-bookworm/163944/6

ghostwriter,
@ghostwriter@phpc.social avatar

@thomas thanks for the heads up.

manchuck, to random
@manchuck@phpc.social avatar

deleted_by_author

  • Loading...
  • ghostwriter,
    @ghostwriter@phpc.social avatar

    @manchuck No, not If it’s a fork you’re personally maintaining that will not push changes back up to main repository.

    And it’s its open source and other will use it, (Not as long as there is proper attribution and or a copy of the original license.)

    But this my personal opinion.

    ghostwriter, to random
    @ghostwriter@phpc.social avatar

    I would proudly root for Goliath in his battle against David if it happened today, If i found out that David was a Zionist.

    ghostwriter,
    @ghostwriter@phpc.social avatar

    Thank you for sharing @derickr.

    I have not verified all of the information I’ve heard yet but so far the level of detail is amazing.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • Durango
  • osvaldo12
  • rosin
  • Youngstown
  • slotface
  • khanakhh
  • tacticalgear
  • kavyap
  • ethstaker
  • DreamBathrooms
  • Leos
  • ngwrru68w68
  • everett
  • cubers
  • GTA5RPClips
  • love
  • modclub
  • cisconetworking
  • mdbf
  • tester
  • normalnudes
  • anitta
  • provamag3
  • JUstTest
  • All magazines