prisma-client-php 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/dist/index.enc +1 -1
- package/dist/init.js +44 -15
- package/dist/src/Lib/Prisma/Model/IModel.php +3 -3
- package/dist/src/Lib/Validator.php +692 -0
- package/package.json +1 -4
package/README.md
CHANGED
|
@@ -40,17 +40,25 @@ This command will convert your `schema.prisma` models into PHP classes, enabling
|
|
|
40
40
|
|
|
41
41
|
## Adding Prisma Client PHP to an Existing Prisma PHP Project
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
To integrate Prisma Client PHP into an existing Prisma PHP project, follow these steps:
|
|
44
44
|
|
|
45
45
|
1. **Open your terminal**.
|
|
46
46
|
|
|
47
|
-
2. **Install Prisma Client PHP** by running
|
|
47
|
+
2. **Install Prisma Client PHP** globally by running:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install -g prisma-client-php@latest
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This command installs the Prisma Client PHP package globally, making it available for use in any PHP project.
|
|
54
|
+
|
|
55
|
+
3. **Initialize Prisma Client PHP** in your project by running:
|
|
48
56
|
|
|
49
57
|
```bash
|
|
50
58
|
npx ppo init
|
|
51
59
|
```
|
|
52
60
|
|
|
53
|
-
This command
|
|
61
|
+
This command sets up all necessary packages for Prisma Client PHP to function within your existing project.
|
|
54
62
|
|
|
55
63
|
## Features
|
|
56
64
|
|