PHP News, Code, and Stuff

Bootstrap Hotfix!

If you use Mac OS and Ollama as a local AI, here’s an app that adds a GUI.

I’ve been using other AIs as terminal isn’t my fav app for interacting with an AI.

I’ve got Local AI
Which has its own UI + runs a bunch of different models it can use

1 Like

JetBrains is having on Online PHP Conference on June 17.

Everyone is invited

For three decades, PHP has powered the web, evolving into the dynamic and powerful language we know today. To mark this milestone, we’re bringing together the brilliant minds who have shaped PHP’s past, present, and future.

Taking place on June 17, the event will be packed with insightful talks, engaging discussions, and opportunities to connect with the PHP community.

2 Likes

Bootstrap 5.3.6 was released… Nice to see updates again!!!

Is is very interesting.

FrankenPHP moving under the PHP GitHub organization

Hello,

The PHP Foundation would like to announce that it has decided to directly
support the FrankenPHP project moving forward. The plan is that FrankenPHP
will move to the PHP GitHub organization, which will make it easier for
core contributors and others to be actively involved in the project. A
portion of its documentation will also move to php.net (exact details TBD).

For those not familiar with it, FrankenPHP is an alternative Server API
(SAPI) for PHP that is built on the Caddy web server, and includes a number
of high-performance configuration options. It’s already directly supported
by multiple major frameworks in the PHP ecosystem.

This change will put FrankenPHP in essentially the same administrative
“bucket” as PECL extensions. Its governance will not change; the same
maintainers will still be maintaining it, but it will now be easier for
others to contribute to the project and coordinate larger efforts.

At this time, there are no plans for tighter integration into php-src the
way PHP-FPM or the CLI SAPI are. Should there be serious discussion of
that in the future, it will involve an RFC, just like any other major
addition to php-src.

Kind Regards,

Jakub

More info:

1 Like

PHP 8.5 is getting a Pipe Operator!

From that page…

Before Example 1

$value = "hello world";
$result = function1(function2(function3($value)));

Before Example 2

$value = "hello world";
$result1 = function3($value);
$result2 = function2($result1);
$result = function1($result2);

New Pipe Operator

$value = "hello world";

$result = $value
    |> function3(...)
    |> function2(...)
    |> function1(...);
1 Like

every Go Developer is yawning…

what is this |> Bullshit? Why could they not use a normal | pipe syntax?
Next message will be, how editors or parser wil fail on |>

PHP uses the pipe for a bitwise or…

1 Like

Today, I added a code example on GitHub that we use in Xanadu.

The navTimingAPI appends load time info into the browser JavaScript console.

Looks like this:

[Log] 1.8330s Total Time
[Log]     0.1270s DNS Lookup
[Log]     0.1020s TCP Connection
[Log]     0.0550s TLS Handshake
[Log]     0.6040s Server Total
[Log]         0.3066s Nginx, DNS, etc
[Log]         0.2974s PHP
[Log]     0.0480s Content Download
[Log]     0.9510s Client Render

There are also a few more code examples for php, css, and js at https://github.com/campsoftware

That’s PHP, it is an animal which works different to all others. A simple scripting language which has not the needed functionality and builds only a small api for piping which is written in a really old concept. For small webapps or content management it is okay (like Wordpress) but for bigger software projects not usable. It is, what it is. A web Server Scripting language.

I disagree. It’s crazy fast, solid, and moving forward.

While it might be scripted:

OPCache is a caching mechanism provided by PHP. It improves PHP performance significantly by storing precompiled script bytecode in shared memory. This eliminates the need for PHP to load and parse scripts on every request, enhancing both performance and scalability for production environments.

:slight_smile:

If php scratches your itch and does the job you need it to do then it doesn’t matter our opinions. :slight_smile:

3 Likes

Facebook grew to be an enormously busy and huge company on PHP

Its not MY cup of tea but does that really matter in any way ?
No

It’s just a pleasure now. No more Xojo bugs.