create-prisma-php-app 1.20.515 → 1.20.517

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.
@@ -386,15 +386,41 @@ function setupErrorHandling(&$content)
386
386
  ob_start();
387
387
  require_once SETTINGS_PATH . '/public-functions.php';
388
388
  require_once SETTINGS_PATH . '/request-methods.php';
389
- $metadataFile = APP_PATH . '/metadata.php';
390
- $_metadataArray = file_exists($metadataFile) ? require_once $metadataFile : [];
389
+ $_metadataFile = APP_PATH . '/metadata.php';
390
+ $_metadataArray = file_exists($_metadataFile) ? require_once $_metadataFile : [];
391
391
  $_filesListRoutes = [];
392
- $metadata = "";
392
+ /**
393
+ * @var array $metadata Metadata information
394
+ */
395
+ $metadata = [];
396
+ /**
397
+ * @var string $uri The URI of the current request
398
+ */
393
399
  $uri = "";
400
+ /**
401
+ * @var string $pathname The pathname of the current request
402
+ */
394
403
  $pathname = "";
404
+ /**
405
+ * @var array $dynamicRouteParams The dynamic route parameters
406
+ */
395
407
  $dynamicRouteParams = [];
408
+ /**
409
+ * @var string $content The content to be included in the main layout file
410
+ */
396
411
  $content = "";
412
+ /**
413
+ * @var string $childContent The child content to be included in the layout file
414
+ */
397
415
  $childContent = "";
416
+ /**
417
+ * @var array $mainLayoutHead The head content to be included in the main layout file
418
+ */
419
+ $mainLayoutHead = [];
420
+ /**
421
+ * @var array $mainLayoutFooter The footer content to be included in the main layout file
422
+ */
423
+ $mainLayoutFooter = [];
398
424
 
399
425
  function containsChildContent($filePath)
400
426
  {
@@ -639,7 +665,7 @@ try {
639
665
  exit;
640
666
  }
641
667
 
642
- $metadata = $_metadataArray[$uri] ?? ($_metadataArray['default'] ?? null);
668
+ $metadata = $_metadataArray[$uri] ?? ($_metadataArray['default'] ?? []);
643
669
  $_parentLayoutPath = APP_PATH . '/layout.php';
644
670
  $_isParentLayout = !empty($_layoutsToInclude) && strpos($_layoutsToInclude[0], 'src/app/layout.php') !== false;
645
671
 
package/dist/index.js CHANGED
@@ -149,10 +149,8 @@ async function updatePackageJson(baseDir, answer) {
149
149
  updatedScripts.browserSync = browserSyncCommand;
150
150
  updatedScripts._dev =
151
151
  answersToInclude.length > 0
152
- ? `npm-run-all --parallel projectName browserSync ${answersToInclude.join(
153
- " "
154
- )}`
155
- : `npm-run-all --parallel projectName browserSync`;
152
+ ? `npm-run-all -p ${answersToInclude.join(" ")}`
153
+ : 'echo "No additional scripts to run"';
156
154
  updatedScripts.startDev = `node settings/start-dev.js`;
157
155
  updatedScripts.dev = `npm run startDev`;
158
156
  // Finally, assign the updated scripts back to packageJson
@@ -345,13 +343,17 @@ function modifyLayoutPHP(baseDir, answer) {
345
343
  if (checkExcludeFiles(layoutPath)) return;
346
344
  try {
347
345
  let indexContent = fs.readFileSync(layoutPath, "utf8");
348
- const stylesAndLinks = `\n <link href="<?php echo $baseUrl; ?>css/index.css" rel="stylesheet">\n <script src="<?php echo $baseUrl; ?>js/index.js"></script>`;
346
+ const stylesAndLinks = `\n <link href="<?php echo $baseUrl; ?>/css/index.css" rel="stylesheet">\n <script src="<?php echo $baseUrl; ?>/js/index.js"></script>`;
349
347
  // Tailwind CSS link or CDN script
350
348
  const tailwindLink = answer.tailwindcss
351
- ? ` <link href="<?php echo $baseUrl; ?>css/styles.css" rel="stylesheet"> ${stylesAndLinks}`
349
+ ? ` <link href="<?php echo $baseUrl; ?>/css/styles.css" rel="stylesheet"> ${stylesAndLinks}`
352
350
  : ` <script src="https://cdn.tailwindcss.com"></script> ${stylesAndLinks}`;
353
351
  // Insert before the closing </head> tag
354
- indexContent = indexContent.replace("</head>", `${tailwindLink}\n</head>`);
352
+ indexContent = indexContent.replace(
353
+ "</head>",
354
+ `${tailwindLink}\n <!-- Dynamic Head -->\n
355
+ <?php echo implode("\\n", $mainLayoutHead); ?></head>`
356
+ );
355
357
  fs.writeFileSync(layoutPath, indexContent, { flag: "w" });
356
358
  console.log(
357
359
  chalk.green(
@@ -867,7 +869,7 @@ async function main() {
867
869
  answer = await getAnswer();
868
870
  }
869
871
  if (answer === null) {
870
- console.log(chalk.red("Installation cancelled."));
872
+ console.warn(chalk.red("Installation cancelled."));
871
873
  return;
872
874
  }
873
875
  const latestVersionOfCreatePrismaPhpApp = await fetchPackageVersion(
@@ -1,10 +1,30 @@
1
1
  <?php
2
2
 
3
- // Absolute path
3
+ /**
4
+ * @var string SETTINGS_PATH - The absolute path to the settings directory
5
+ */
4
6
  define("SETTINGS_PATH", dirname(__FILE__));
7
+ /**
8
+ * @var string PUBLIC_PATH - The absolute path to the public directory
9
+ */
5
10
  define("PUBLIC_PATH", dirname(SETTINGS_PATH) . "/public");
11
+ /**
12
+ * @var string PRISMA_LIB_PATH - The absolute path to the Prisma library directory
13
+ */
6
14
  define("PRISMA_LIB_PATH", dirname(SETTINGS_PATH) . "/src/Lib/Prisma");
15
+ /**
16
+ * @var string SRC_PATH - The absolute path to the src directory
17
+ */
7
18
  define("SRC_PATH", dirname(SETTINGS_PATH) . "/src");
19
+ /**
20
+ * @var string APP_PATH - The absolute path to the app directory
21
+ */
8
22
  define("APP_PATH", dirname(SETTINGS_PATH) . "/src/app");
23
+ /**
24
+ * @var string LIB_PATH - The absolute path to the layout directory
25
+ */
9
26
  define("LIB_PATH", dirname(SETTINGS_PATH) . "/src/Lib");
27
+ /**
28
+ * @var string DOCUMENT_PATH - The absolute path to the layout directory
29
+ */
10
30
  define("DOCUMENT_PATH", dirname(SETTINGS_PATH));
@@ -1,5 +1,8 @@
1
1
  <?php
2
2
 
3
+ /**
4
+ * @var string $requestMethod - The request method.
5
+ */
3
6
  $requestMethod = $_SERVER['REQUEST_METHOD'];
4
7
 
5
8
  if ($requestMethod == 'OPTIONS') {
@@ -7,6 +10,9 @@ if ($requestMethod == 'OPTIONS') {
7
10
  exit;
8
11
  }
9
12
 
13
+ /**
14
+ * @var array $allowedMethods - The allowed request methods.
15
+ */
10
16
  $allowedMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS'];
11
17
 
12
18
  if (!in_array($requestMethod, $allowedMethods)) {
@@ -15,27 +21,83 @@ if (!in_array($requestMethod, $allowedMethods)) {
15
21
  exit;
16
22
  }
17
23
 
24
+ /**
25
+ * @var bool $isGet - True if the request method is GET, false otherwise.
26
+ */
18
27
  $isGet = $requestMethod === 'GET';
28
+ /**
29
+ * @var bool $isPost - True if the request method is POST, false otherwise.
30
+ */
19
31
  $isPost = $requestMethod === 'POST';
32
+ /**
33
+ * @var bool $isPut - True if the request method is PUT, false otherwise.
34
+ */
20
35
  $isPut = $requestMethod === 'PUT';
36
+ /**
37
+ * @var bool $isDelete - True if the request method is DELETE, false otherwise.
38
+ */
21
39
  $isDelete = $requestMethod === 'DELETE';
40
+ /**
41
+ * @var bool $isPatch - True if the request method is PATCH, false otherwise.
42
+ */
22
43
  $isPatch = $requestMethod === 'PATCH';
44
+ /**
45
+ * @var bool $isHead - True if the request method is HEAD, false otherwise.
46
+ */
23
47
  $isHead = $requestMethod === 'HEAD';
48
+ /**
49
+ * @var bool $isOptions - True if the request method is OPTIONS, false otherwise.
50
+ */
24
51
  $isOptions = $requestMethod === 'OPTIONS';
52
+ /**
53
+ * @var bool $isAjax - True if the request is an AJAX request, false otherwise.
54
+ */
25
55
  $isAjax = isAjaxRequest();
56
+ /**
57
+ * @var bool $isWire - True if the request is a wire request, false otherwise.
58
+ */
26
59
  $isWire = isWireRequest();
60
+ /**
61
+ * @var bool $isXFilRequest - True if the request is an X-Fil request, false otherwise.
62
+ */
27
63
  $isXFilRequest = isXFilRequest();
64
+ /**
65
+ * @var string $contentType - The content type of the request.
66
+ */
28
67
  $contentType = $_SERVER['CONTENT_TYPE'] ?? '';
68
+ /**
69
+ * @var string $requestedWith - The X-Requested-With header of the request.
70
+ */
29
71
  $requestedWith = $_SERVER['HTTP_X_REQUESTED_WITH'] ?? '';
72
+ /**
73
+ * @var string $protocol - The protocol of the request.
74
+ */
30
75
  $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ||
31
76
  (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') ||
32
77
  $_SERVER['SERVER_PORT'] == 443 ? "https://" : "http://";
78
+ /**
79
+ * @var string $domainName - The domain name of the request.
80
+ */
33
81
  $domainName = $_SERVER['HTTP_HOST'];
34
- $scriptName = dirname($_SERVER['SCRIPT_NAME']) . '/';
35
- $baseUrl = $protocol . $domainName . rtrim($scriptName, '/') . '/src/app/';
36
- $documentUrl = $protocol . $domainName . rtrim($scriptName, '/') . '/';
82
+ /**
83
+ * @var string $scriptName - The script name of the request.
84
+ */
85
+ $scriptName = dirname($_SERVER['SCRIPT_NAME']);
86
+ /**
87
+ * @var string $baseUrl - The base URL of the request.
88
+ */
89
+ $baseUrl = $protocol . $domainName . "$scriptName/src/app";
90
+ /**
91
+ * @var string $documentUrl - The document URL of the request.
92
+ */
93
+ $documentUrl = $protocol . $domainName . $scriptName;
94
+ /**
95
+ * @var string $referer - The referer of the request.
96
+ */
37
97
  $referer = $_SERVER['HTTP_REFERER'] ?? 'Unknown';
38
-
98
+ /**
99
+ * @var \ArrayObject $params - The request parameters
100
+ */
39
101
  $params = [];
40
102
 
41
103
  if ($requestMethod == 'GET') {
@@ -1,73 +1,153 @@
1
1
  import { exec } from "child_process";
2
2
  import chalk from "chalk";
3
3
  import { writeFileSync } from "fs";
4
+ import readline from "readline";
4
5
 
5
- // Run the original dev command and capture the output
6
- const devProcess = exec("npm run _dev");
6
+ function runCommand(command, options = {}) {
7
+ return new Promise((resolve, reject) => {
8
+ const process = exec(command, options);
7
9
 
8
- // Use a Set to track logged lines to avoid duplicate logging
9
- const loggedLines = new Set();
10
+ let stdout = "";
11
+ let stderr = "";
10
12
 
11
- // Log the output from stdout (standard output)
12
- devProcess.stdout.on("data", (data) => {
13
- const dataString = data.toString(); // Ensure data is a string
13
+ process.stdout.on("data", (data) => {
14
+ stdout += data;
15
+ });
14
16
 
15
- // Only log if neither "Proxying" nor "Access URLs" have been logged before
16
- if (
17
- !dataString.includes("[Browsersync] Proxying:") &&
18
- !dataString.includes("[Browsersync] Access URLs:") &&
19
- !loggedLines.has(dataString)
20
- ) {
21
- console.log(dataString);
22
- loggedLines.add(dataString); // Add to set to avoid future duplicates
23
- }
17
+ process.stderr.on("data", (data) => {
18
+ stderr += data;
19
+ });
24
20
 
25
- let formattedLog = {
26
- local: "",
27
- external: "",
28
- ui: "",
29
- uiExternal: "",
30
- };
31
- const lines = dataString.split("\n");
32
-
33
- lines.forEach((line) => {
34
- if (/Proxying/.test(line)) {
35
- console.log(line.trim());
36
- } else if (/Access URLs:/.test(line)) {
37
- console.log(chalk.green("[Browsersync] Access URLs:"));
38
- } else if (/Local:/.test(line)) {
39
- const localUrl = line.match(/Local:\s*(http:\/\/.+)/)[1];
40
- formattedLog.local = localUrl;
41
- console.log(chalk.white("Local: ") + chalk.cyanBright(localUrl));
42
- } else if (/^ {4}External:/.test(line)) {
43
- const externalUrl = line.match(/External:\s*(http:\/\/\S+)/)[1];
44
- formattedLog.external = externalUrl;
45
- console.log(chalk.white("External: ") + chalk.magentaBright(externalUrl));
46
- } else if (/UI:/.test(line)) {
47
- const uiUrl = line.match(/UI:\s*(http:\/\/.+)/)[1];
48
- formattedLog.ui = uiUrl;
49
- console.log(chalk.yellow("UI: ") + chalk.cyanBright(uiUrl));
50
- } else if (/UI External:/.test(line)) {
51
- const uiExternalUrl = line.match(/UI External:\s*(http:\/\/.+)/)[1];
52
- formattedLog.uiExternal = uiExternalUrl;
53
- console.log(
54
- chalk.yellow("UI External: ") + chalk.magentaBright(uiExternalUrl)
55
- );
56
- } else if (/Watching files/.test(line)) {
57
- console.log(chalk.blue("[Browsersync] Watching files..."));
58
- const outputPath = "./settings/bs-output.json";
59
- writeFileSync(outputPath, JSON.stringify(formattedLog, null, 2), "utf-8");
60
- console.log(`Browser-sync output saved to ${outputPath}`);
61
- }
21
+ process.on("close", (code) => {
22
+ if (code === 0) {
23
+ resolve({ stdout, stderr });
24
+ } else {
25
+ reject(
26
+ new Error(`Command "${command}" exited with code ${code}\n${stderr}`)
27
+ );
28
+ }
29
+ });
62
30
  });
63
- });
31
+ }
32
+
33
+ async function startDev() {
34
+ try {
35
+ // Step 1: Start projectName and wait for it to complete
36
+ console.log("Starting projectName...");
37
+ const projectName = await runCommand("npm run projectName");
38
+ console.log(projectName.stdout);
39
+
40
+ // Step 2: Start browserSync and process its output
41
+ console.log("Starting browser-sync...");
42
+ const browserSync = exec("npm run browserSync");
43
+ let formattedLog = {
44
+ local: "",
45
+ external: "",
46
+ ui: "",
47
+ uiExternal: "",
48
+ };
49
+
50
+ const rl = readline.createInterface({
51
+ input: browserSync.stdout,
52
+ crlfDelay: Infinity,
53
+ });
54
+
55
+ let browserSyncReady = false;
56
+
57
+ rl.on("line", (line) => {
58
+ if (/Proxying/.test(line)) {
59
+ console.log(line.trim());
60
+ } else if (/Access URLs:/.test(line)) {
61
+ console.log(chalk.green("[Browsersync] Access URLs:"));
62
+ } else if (/Local:/.test(line)) {
63
+ const match = line.match(/Local:\s*(http:\/\/.+)/);
64
+ if (match) {
65
+ const localUrl = match[1];
66
+ formattedLog.local = localUrl;
67
+ console.log(chalk.white("Local: ") + chalk.cyanBright(localUrl));
68
+ }
69
+ } else if (/^ {4}External:/.test(line)) {
70
+ const match = line.match(/External:\s*(http:\/\/\S+)/);
71
+ if (match) {
72
+ const externalUrl = match[1];
73
+ formattedLog.external = externalUrl;
74
+ console.log(
75
+ chalk.white("External: ") + chalk.magentaBright(externalUrl)
76
+ );
77
+ }
78
+ } else if (/UI:/.test(line)) {
79
+ const match = line.match(/UI:\s*(http:\/\/.+)/);
80
+ if (match) {
81
+ const uiUrl = match[1];
82
+ formattedLog.ui = uiUrl;
83
+ console.log(chalk.yellow("UI: ") + chalk.cyanBright(uiUrl));
84
+ }
85
+ } else if (/UI External:/.test(line)) {
86
+ const match = line.match(/UI External:\s*(http:\/\/.+)/);
87
+ if (match) {
88
+ const uiExternalUrl = match[1];
89
+ formattedLog.uiExternal = uiExternalUrl;
90
+ console.log(
91
+ chalk.yellow("UI External: ") + chalk.magentaBright(uiExternalUrl)
92
+ );
93
+ }
94
+ } else if (/Watching files/.test(line)) {
95
+ console.log(`${chalk.blue("[Browsersync]")} Watching files...`);
96
+ const outputPath = "./settings/bs-output.json";
97
+ writeFileSync(
98
+ outputPath,
99
+ JSON.stringify(formattedLog, null, 2),
100
+ "utf-8"
101
+ );
102
+ console.log(`Browser-sync output saved to ${outputPath}`);
103
+
104
+ if (!browserSyncReady) {
105
+ browserSyncReady = true;
106
+ // Start _dev after browserSync is ready
107
+ startDevProcess();
108
+ }
109
+ } else if (/Reloading Browsers/.test(line)) {
110
+ console.log(`${chalk.blue("[Browsersync]")} Reloading Browsers...`);
111
+ } else {
112
+ // Print any other notifications
113
+ console.log(line);
114
+ }
115
+ });
64
116
 
65
- // Log the output from stderr (error output)
66
- devProcess.stderr.on("data", (data) => {
67
- console.error(data.toString()); // Convert data to string
68
- });
117
+ const rlErr = readline.createInterface({
118
+ input: browserSync.stderr,
119
+ crlfDelay: Infinity,
120
+ });
121
+
122
+ rlErr.on("line", (line) => {
123
+ console.error(`browser-sync error: ${line}`);
124
+ });
125
+
126
+ // Function to start _dev process
127
+ function startDevProcess() {
128
+ console.log("Starting _dev...");
129
+ const devProcess = exec("npm run _dev");
130
+
131
+ devProcess.stdout.on("data", (data) => {
132
+ process.stdout.write(data);
133
+ });
134
+
135
+ devProcess.stderr.on("data", (data) => {
136
+ process.stderr.write(data);
137
+ });
138
+
139
+ devProcess.on("close", (code) => {
140
+ console.log(`Dev process exited with code ${code}`);
141
+ });
142
+ }
143
+
144
+ // Handle browserSync close event
145
+ browserSync.on("close", (code) => {
146
+ console.log(`browserSync process exited with code ${code}`);
147
+ });
148
+ } catch (error) {
149
+ console.error("An error occurred:", error.message);
150
+ }
151
+ }
69
152
 
70
- // Handle process exit
71
- devProcess.on("exit", (code) => {
72
- console.log(`Dev process exited with code ${code}`);
73
- });
153
+ startDev();
@@ -1,7 +1,7 @@
1
1
  <div class="flex flex-col min-h-[100vh] bg-gradient-to-b from-[#a1b8c2] to-white dark:from-[#334455] dark:to-black">
2
2
  <header class="px-4 lg:px-6 h-14 flex items-center">
3
3
  <a class="flex items-center justify-center" href="/">
4
- <img class="h-10 w-10" src="<?= $baseUrl ?>assets/images/prisma-php.png" alt="Prisma PHP">
4
+ <img class="h-10 w-10" src="<?php echo $baseUrl ?>/assets/images/prisma-php.png" alt="Prisma PHP">
5
5
  <span class="sr-only">Prisma PHP</span>
6
6
  </a>
7
7
  <nav class="ml-auto flex gap-4 sm:gap-6">
@@ -24,7 +24,7 @@
24
24
  <div class="px-4 md:px-6">
25
25
  <div class="flex flex-col items-center space-y-4 text-center">
26
26
  <h1 class="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl/none flex items-center gap-3 justify-center">
27
- Welcome to Prisma PHP <img class="h-20 w-20 hidden sm:block" src="<?= $baseUrl ?>assets/images/prisma-php.png" alt="Prisma PHP">
27
+ Welcome to Prisma PHP <img class="h-20 w-20 hidden sm:block" src="<?php echo $baseUrl ?>/assets/images/prisma-php.png" alt="Prisma PHP">
28
28
  </h1>
29
29
  <p class="mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400">
30
30
  The Next Generation ORM for PHP
@@ -6,11 +6,13 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <meta name="pp-description" content="<?php echo htmlspecialchars($metadata['description']); ?>">
8
8
  <title><?php echo htmlspecialchars($metadata['title']); ?></title>
9
- <link rel="icon" href="<?php echo $baseUrl; ?>favicon.ico" type="image/x-icon">
9
+ <link rel="icon" href="<?php echo $baseUrl; ?>\favicon.ico" type="image/x-icon">
10
10
  </head>
11
11
 
12
12
  <body>
13
13
  <?php echo $content; ?>
14
+ <!-- Dynamic Footer -->
15
+ <?php echo implode("\n", $mainLayoutFooter); ?>
14
16
  </body>
15
17
 
16
18
  </html>
@@ -1,4 +1,15 @@
1
+ <?php
2
+
3
+ $mainLayoutHead = [
4
+ "<link rel='stylesheet' type='text/css' href='$baseUrl/swagger-docs/dist/swagger-ui.css' />",
5
+ "<link rel='stylesheet' type='text/css' href='$baseUrl/swagger-docs/dist/index.css' />",
6
+ "<link rel='icon' type='image/png' href='$baseUrl/swagger-docs/dist/favicon-32x32.png' sizes='32x32' />",
7
+ "<link rel='icon' type='image/png' href='$baseUrl/swagger-docs/dist/favicon-16x16.png' sizes='16x16' />",
8
+ ]
9
+
10
+ ?>
11
+
1
12
  <div id="swagger-ui"></div>
2
- <script src="<?= $baseUrl ?>swagger-docs/dist/swagger-ui-bundle.js" charset="UTF-8"> </script>
3
- <script src="<?= $baseUrl ?>swagger-docs/dist/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
4
- <script src="<?= $baseUrl ?>swagger-docs/dist/swagger-initializer.js" charset="UTF-8"> </script>
13
+ <script src="<?php echo $baseUrl ?>/swagger-docs/dist/swagger-ui-bundle.js" charset="UTF-8"> </script>
14
+ <script src="<?php echo $baseUrl ?>/swagger-docs/dist/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
15
+ <script src="<?php echo $baseUrl ?>/swagger-docs/dist/swagger-initializer.js" charset="UTF-8"> </script>
@@ -4,14 +4,16 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
  <title>Swagger UI</title>
7
- <link rel="stylesheet" type="text/css" href="<?= $baseUrl ?>swagger-docs/dist/swagger-ui.css" />
8
- <link rel="stylesheet" type="text/css" href="<?= $baseUrl ?>swagger-docs/dist/index.css" />
9
- <link rel="icon" type="image/png" href="<?= $baseUrl ?>swagger-docs/dist/favicon-32x32.png" sizes="32x32" />
10
- <link rel="icon" type="image/png" href="<?= $baseUrl ?>swagger-docs/dist/favicon-16x16.png" sizes="16x16" />
7
+ <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>/swagger-docs/dist/swagger-ui.css" />
8
+ <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>/swagger-docs/dist/index.css" />
9
+ <link rel="icon" type="image/png" href="<?php echo $baseUrl ?>/swagger-docs/dist/favicon-32x32.png" sizes="32x32" />
10
+ <link rel="icon" type="image/png" href="<?php echo $baseUrl ?>/swagger-docs/dist/favicon-16x16.png" sizes="16x16" />
11
11
  </head>
12
12
 
13
13
  <body>
14
14
  <?php echo $content; ?>
15
+ <!-- Dynamic Footer -->
16
+ <?php echo implode("\n", $mainLayoutFooter); ?>
15
17
  </body>
16
18
 
17
19
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.20.515",
3
+ "version": "1.20.517",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",