create-prisma-php-app 4.0.0-alpha.2 → 4.0.0-alpha.21

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.
Files changed (59) hide show
  1. package/dist/.htaccess +54 -41
  2. package/dist/bootstrap.php +143 -98
  3. package/dist/index.js +264 -99
  4. package/dist/settings/auto-swagger-docs.ts +196 -95
  5. package/dist/settings/bs-config.ts +56 -58
  6. package/dist/settings/files-list.json +1 -1
  7. package/dist/settings/restart-mcp.ts +58 -0
  8. package/dist/settings/restart-websocket.ts +51 -45
  9. package/dist/settings/utils.ts +240 -0
  10. package/dist/src/Lib/AI/ChatGPTClient.php +147 -0
  11. package/dist/src/Lib/Auth/Auth.php +544 -0
  12. package/dist/src/Lib/Auth/AuthConfig.php +89 -0
  13. package/dist/src/Lib/CacheHandler.php +121 -0
  14. package/dist/src/Lib/ErrorHandler.php +322 -0
  15. package/dist/src/Lib/FileManager/UploadFile.php +383 -0
  16. package/dist/src/Lib/Headers/Boom.php +192 -0
  17. package/dist/src/Lib/IncludeTracker.php +59 -0
  18. package/dist/src/Lib/MCP/WeatherTools.php +104 -0
  19. package/dist/src/Lib/MCP/mcp-server.php +80 -0
  20. package/dist/src/Lib/MainLayout.php +230 -0
  21. package/dist/src/Lib/Middleware/AuthMiddleware.php +154 -0
  22. package/dist/src/Lib/Middleware/CorsMiddleware.php +145 -0
  23. package/dist/src/Lib/PHPMailer/Mailer.php +169 -0
  24. package/dist/src/Lib/PHPX/Exceptions/ComponentValidationException.php +49 -0
  25. package/dist/src/Lib/PHPX/Fragment.php +32 -0
  26. package/dist/src/Lib/PHPX/IPHPX.php +22 -0
  27. package/dist/src/Lib/PHPX/PHPX.php +287 -0
  28. package/dist/src/Lib/PHPX/TemplateCompiler.php +641 -0
  29. package/dist/src/Lib/PHPX/TwMerge.php +346 -0
  30. package/dist/src/Lib/PHPX/TypeCoercer.php +490 -0
  31. package/dist/src/Lib/PartialRenderer.php +40 -0
  32. package/dist/src/Lib/PrismaPHPSettings.php +181 -0
  33. package/dist/src/Lib/Request.php +479 -0
  34. package/dist/src/Lib/Security/RateLimiter.php +33 -0
  35. package/dist/src/Lib/Set.php +102 -0
  36. package/dist/src/Lib/StateManager.php +127 -0
  37. package/dist/src/Lib/Validator.php +752 -0
  38. package/dist/src/{Websocket → Lib/Websocket}/ConnectionManager.php +1 -1
  39. package/dist/src/Lib/Websocket/websocket-server.php +118 -0
  40. package/dist/src/app/error.php +1 -1
  41. package/dist/src/app/index.php +24 -5
  42. package/dist/src/app/js/index.js +1 -1
  43. package/dist/src/app/layout.php +2 -2
  44. package/package.json +1 -1
  45. package/dist/settings/restart-websocket.bat +0 -28
  46. package/dist/src/app/assets/images/prisma-php-black.svg +0 -6
  47. package/dist/websocket-server.php +0 -22
  48. package/vendor/autoload.php +0 -25
  49. package/vendor/composer/ClassLoader.php +0 -579
  50. package/vendor/composer/InstalledVersions.php +0 -359
  51. package/vendor/composer/LICENSE +0 -21
  52. package/vendor/composer/autoload_classmap.php +0 -10
  53. package/vendor/composer/autoload_namespaces.php +0 -9
  54. package/vendor/composer/autoload_psr4.php +0 -10
  55. package/vendor/composer/autoload_real.php +0 -38
  56. package/vendor/composer/autoload_static.php +0 -25
  57. package/vendor/composer/installed.json +0 -825
  58. package/vendor/composer/installed.php +0 -132
  59. package/vendor/composer/platform_check.php +0 -26
@@ -1,132 +0,0 @@
1
- <?php return array(
2
- 'root' => array(
3
- 'name' => 'tsnc/create-prisma-php-app',
4
- 'pretty_version' => 'dev-main',
5
- 'version' => 'dev-main',
6
- 'reference' => '2c280ea243937fb8161bd6ee4970eda908dd4401',
7
- 'type' => 'library',
8
- 'install_path' => __DIR__ . '/../../',
9
- 'aliases' => array(),
10
- 'dev' => true,
11
- ),
12
- 'versions' => array(
13
- 'brick/math' => array(
14
- 'pretty_version' => '0.11.0',
15
- 'version' => '0.11.0.0',
16
- 'reference' => '0ad82ce168c82ba30d1c01ec86116ab52f589478',
17
- 'type' => 'library',
18
- 'install_path' => __DIR__ . '/../brick/math',
19
- 'aliases' => array(),
20
- 'dev_requirement' => false,
21
- ),
22
- 'firebase/php-jwt' => array(
23
- 'pretty_version' => 'dev-main',
24
- 'version' => 'dev-main',
25
- 'reference' => '1b9e87184745595ef70540613c0cb9de09bebab3',
26
- 'type' => 'library',
27
- 'install_path' => __DIR__ . '/../firebase/php-jwt',
28
- 'aliases' => array(
29
- 0 => '9999999-dev',
30
- ),
31
- 'dev_requirement' => false,
32
- ),
33
- 'graham-campbell/result-type' => array(
34
- 'pretty_version' => 'v1.1.2',
35
- 'version' => '1.1.2.0',
36
- 'reference' => 'fbd48bce38f73f8a4ec8583362e732e4095e5862',
37
- 'type' => 'library',
38
- 'install_path' => __DIR__ . '/../graham-campbell/result-type',
39
- 'aliases' => array(),
40
- 'dev_requirement' => false,
41
- ),
42
- 'hidehalo/nanoid-php' => array(
43
- 'pretty_version' => '1.x-dev',
44
- 'version' => '1.9999999.9999999.9999999-dev',
45
- 'reference' => '3fc7c949f4e655939cc30e7110d658af3dbb0e30',
46
- 'type' => 'library',
47
- 'install_path' => __DIR__ . '/../hidehalo/nanoid-php',
48
- 'aliases' => array(),
49
- 'dev_requirement' => false,
50
- ),
51
- 'paragonie/random_compat' => array(
52
- 'pretty_version' => 'v9.99.100',
53
- 'version' => '9.99.100.0',
54
- 'reference' => '996434e5492cb4c3edcb9168db6fbb1359ef965a',
55
- 'type' => 'library',
56
- 'install_path' => __DIR__ . '/../paragonie/random_compat',
57
- 'aliases' => array(),
58
- 'dev_requirement' => false,
59
- ),
60
- 'phpoption/phpoption' => array(
61
- 'pretty_version' => '1.9.2',
62
- 'version' => '1.9.2.0',
63
- 'reference' => '80735db690fe4fc5c76dfa7f9b770634285fa820',
64
- 'type' => 'library',
65
- 'install_path' => __DIR__ . '/../phpoption/phpoption',
66
- 'aliases' => array(),
67
- 'dev_requirement' => false,
68
- ),
69
- 'ramsey/uuid' => array(
70
- 'pretty_version' => '5.x-dev',
71
- 'version' => '5.9999999.9999999.9999999-dev',
72
- 'reference' => 'd04a1b479e9b9e9fc51fc81e3ac2fda83d41c1e9',
73
- 'type' => 'library',
74
- 'install_path' => __DIR__ . '/../ramsey/uuid',
75
- 'aliases' => array(),
76
- 'dev_requirement' => false,
77
- ),
78
- 'rhumsaa/uuid' => array(
79
- 'dev_requirement' => false,
80
- 'replaced' => array(
81
- 0 => '5.x-dev',
82
- ),
83
- ),
84
- 'symfony/polyfill-ctype' => array(
85
- 'pretty_version' => 'v1.28.0',
86
- 'version' => '1.28.0.0',
87
- 'reference' => 'ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb',
88
- 'type' => 'library',
89
- 'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
90
- 'aliases' => array(),
91
- 'dev_requirement' => false,
92
- ),
93
- 'symfony/polyfill-mbstring' => array(
94
- 'pretty_version' => 'v1.28.0',
95
- 'version' => '1.28.0.0',
96
- 'reference' => '42292d99c55abe617799667f454222c54c60e229',
97
- 'type' => 'library',
98
- 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
99
- 'aliases' => array(),
100
- 'dev_requirement' => false,
101
- ),
102
- 'symfony/polyfill-php80' => array(
103
- 'pretty_version' => 'v1.28.0',
104
- 'version' => '1.28.0.0',
105
- 'reference' => '6caa57379c4aec19c0a12a38b59b26487dcfe4b5',
106
- 'type' => 'library',
107
- 'install_path' => __DIR__ . '/../symfony/polyfill-php80',
108
- 'aliases' => array(),
109
- 'dev_requirement' => false,
110
- ),
111
- 'tsnc/create-prisma-php-app' => array(
112
- 'pretty_version' => 'dev-main',
113
- 'version' => 'dev-main',
114
- 'reference' => '2c280ea243937fb8161bd6ee4970eda908dd4401',
115
- 'type' => 'library',
116
- 'install_path' => __DIR__ . '/../../',
117
- 'aliases' => array(),
118
- 'dev_requirement' => false,
119
- ),
120
- 'vlucas/phpdotenv' => array(
121
- 'pretty_version' => 'dev-master',
122
- 'version' => 'dev-master',
123
- 'reference' => '334f4952967f3ee6cdb2004e05e0bd01b525d56b',
124
- 'type' => 'library',
125
- 'install_path' => __DIR__ . '/../vlucas/phpdotenv',
126
- 'aliases' => array(
127
- 0 => '5.6.x-dev',
128
- ),
129
- 'dev_requirement' => false,
130
- ),
131
- ),
132
- );
@@ -1,26 +0,0 @@
1
- <?php
2
-
3
- // platform_check.php @generated by Composer
4
-
5
- $issues = array();
6
-
7
- if (!(PHP_VERSION_ID >= 80100)) {
8
- $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
9
- }
10
-
11
- if ($issues) {
12
- if (!headers_sent()) {
13
- header('HTTP/1.1 500 Internal Server Error');
14
- }
15
- if (!ini_get('display_errors')) {
16
- if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
17
- fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
18
- } elseif (!headers_sent()) {
19
- echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
20
- }
21
- }
22
- trigger_error(
23
- 'Composer detected issues in your platform: ' . implode(' ', $issues),
24
- E_USER_ERROR
25
- );
26
- }