
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@php-wasm/node
Advanced tools
This package ships WebAssembly PHP binaries and the JavaScript API optimized for Node.js. It comes with the following PHP extensions:
It uses the host filesystem directly and can access the network if you plug in a custom WS proxy.
Here's how to use it:
import {
loadPHPRuntime,
getPHPLoaderModule,
PHP,
PHPServer,
} from '@php-wasm/node';
const php = new PHP(await loadPHPRuntime(await getPHPLoaderModule('8.0')));
// Create and run a script directly
php.writeFile('./index.php', `<?php echo "Hello " . $_POST['name']; ?>`);
php.run({ scriptPath: './index.php' });
// Or use the familiar HTTP concepts:
const server = new PHPServer(php, {
documentRoot: new URL('./', import.meta.url).pathname,
});
const response = server.request({
method: 'POST',
relativeUrl: '/index.php',
data: { name: 'John' },
});
FAQs
PHP.wasm for Node.js
The npm package @php-wasm/node receives a total of 7,567 weekly downloads. As such, @php-wasm/node popularity was classified as popular.
We found that @php-wasm/node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.