Skip to content

Commit 16bf7a7

Browse files
committed
Rename package to @nexustools/php
1 parent 962b58a commit 16bf7a7

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# jsphp (`node-jsphp`)
1+
# @nexustools/php (`node-jsphp`)
22

3-
`jsphp` is a high-performance Node.js runtime, CLI, and transpiler engine for **PHP 8.5** written in TypeScript. It parses PHP code into ASTs, optimizes execution through constant folding and dead-code elimination, and transpiles PHP to asynchronous JavaScript source code with source maps (`.js.map`).
3+
`@nexustools/php` is a high-performance Node.js runtime, CLI, and transpiler engine for **PHP 8.5** written in TypeScript. It parses PHP code into ASTs, optimizes execution through constant folding and dead-code elimination, and transpiles PHP to asynchronous JavaScript source code with source maps (`.js.map`).
44

5-
`jsphp` enables running PHP scripts, applications (including full **WordPress** sites), and command-line interfaces directly inside Node.js without needing native PHP binaries or socket connections to PHP-FPM.
5+
`@nexustools/php` enables running PHP scripts, applications (including full **WordPress** sites), and command-line interfaces directly inside Node.js without needing native PHP binaries or socket connections to PHP-FPM.
66

77
---
88

@@ -22,7 +22,7 @@
2222
## Installation
2323

2424
```bash
25-
npm install jsphp
25+
npm install @nexustools/php
2626
```
2727

2828
---
@@ -32,7 +32,7 @@ npm install jsphp
3232
### 1. Basic PHP Code Execution
3333

3434
```typescript
35-
import { PHPEngine } from "jsphp";
35+
import { PHPEngine } from "@nexustools/php";
3636

3737
async function main() {
3838
const engine = new PHPEngine();
@@ -55,7 +55,7 @@ main();
5555
### 2. Running a PHP File
5656

5757
```typescript
58-
import { PHPContext } from "jsphp";
58+
import { PHPContext } from "@nexustools/php";
5959

6060
async function run() {
6161
await PHPContext.runFile("./index.php", {

‎package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "jsphp",
2+
"name": "@nexustools/php",
33
"version": "1.0.0",
44
"description": "PHP 8.5 runtime and CLI written in TypeScript for Node.js",
55
"main": "index.js",
@@ -8,6 +8,9 @@
88
"php": "bin/php.js",
99
"php-fpm": "bin/php-fpm.js"
1010
},
11+
"publishConfig": {
12+
"access": "public"
13+
},
1114
"scripts": {
1215
"build": "tsc",
1316
"test": "jest",

0 commit comments

Comments
 (0)