From cd9b25451e90d428edbf13085266104617c3a378 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 21 Jan 2025 22:50:05 +0000 Subject: [PATCH 01/86] testing new navbar --- dashboard/dashboard.php | 6 +++--- server/main_navbar.php | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 server/main_navbar.php diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index 69f99ac..fe001e3 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -10,6 +10,7 @@ // Include the database connection file include "../server/db_connect.php"; +include "../server/main_navbar.php"; $time = time(); @@ -112,13 +113,12 @@ Hours Tracking - Dashboard
-
+ @@ -130,7 +130,7 @@
-
+ -->

diff --git a/server/main_navbar.php b/server/main_navbar.php new file mode 100644 index 0000000..7042666 --- /dev/null +++ b/server/main_navbar.php @@ -0,0 +1,18 @@ +
+ +
\ No newline at end of file From e43720b1b34550ef9146d5f231a82585ac95218b Mon Sep 17 00:00:00 2001 From: James Date: Tue, 21 Jan 2025 23:19:34 +0000 Subject: [PATCH 02/86] added: new notes styling --- assets/style/style.css | 21 ++++++++++++++++++++- bigtable/bigtable.php | 23 +++++++++++++++++------ bigtable/{notes.php => view_notes.php} | 0 3 files changed, 37 insertions(+), 7 deletions(-) rename bigtable/{notes.php => view_notes.php} (100%) diff --git a/assets/style/style.css b/assets/style/style.css index c62d2b9..748ff28 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -538,9 +538,28 @@ select option { display: flex; justify-content: center; align-items: center; - padding-top: 10px; } .centered-form form { text-align: center; /* Align content inside the form */ +} + +.table_button{ + color: #1d70b8; + position: relative; + font-family: roboto; + font-size: 20px; + font-weight: bold; + background-color: transparent; + border: none; + text-decoration: none; + cursor: pointer; + border-bottom: none; + padding-bottom: 3px; +} + +.table_button:hover { + text-decoration: none; + color: #003078; + border-bottom: 2px solid #003078; } \ No newline at end of file diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index 7891722..696be3e 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -141,21 +141,32 @@ class="search_bar" echo "" . htmlspecialchars($value, ENT_QUOTES) . ""; } echo " +
-
- "; +
+ "; echo " -
+
+ - - "; +
+ + +
+
+ + "; echo ""; } diff --git a/bigtable/notes.php b/bigtable/view_notes.php similarity index 100% rename from bigtable/notes.php rename to bigtable/view_notes.php From 4050ff04e60e09c50784fd98b320ff88628611ba Mon Sep 17 00:00:00 2001 From: James Date: Tue, 21 Jan 2025 23:22:42 +0000 Subject: [PATCH 03/86] fixed: table style --- assets/style/style.css | 4 ++-- bigtable/bigtable.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/style/style.css b/assets/style/style.css index 748ff28..46d6c66 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -536,8 +536,8 @@ select option { .centered-form { display: flex; - justify-content: center; - align-items: center; + /* justify-content: center; + align-items: center; */ } .centered-form form { diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index 696be3e..7801a65 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -125,10 +125,10 @@ class="search_bar" echo ""; echo ""; foreach ($custom_headings as $heading) { - echo ""; + echo ""; } - echo ""; - echo ""; + echo ""; + echo ""; echo ""; foreach ($results as $row) { From 339c0e1dc1a6291eef10dd608b0f2ed7296e2c11 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 00:11:24 +0000 Subject: [PATCH 04/86] added: better notes --- assets/style/style.css | 2 +- bigtable/bigtable.php | 3 +- bigtable/create_notes.php | 87 ++++++++++++++++++++++++++++ bigtable/view_notes.php | 116 +++++++++++++++----------------------- 4 files changed, 134 insertions(+), 74 deletions(-) create mode 100644 bigtable/create_notes.php diff --git a/assets/style/style.css b/assets/style/style.css index 46d6c66..ff9a711 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -561,5 +561,5 @@ select option { .table_button:hover { text-decoration: none; color: #003078; - border-bottom: 2px solid #003078; + border-bottom: 4px solid #003078; } \ No newline at end of file diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index 7801a65..5e07ab6 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -154,18 +154,19 @@ class="search_bar"
+
+
- "; echo ""; } diff --git a/bigtable/create_notes.php b/bigtable/create_notes.php new file mode 100644 index 0000000..f967d5f --- /dev/null +++ b/bigtable/create_notes.php @@ -0,0 +1,87 @@ +Staff code not found. Please log in again.

"); +} + +$staff_code = $_SESSION['staff_code']; // Get the staff_code from session + +// Redirect back if the required data is missing +if (!$student_id || !$takes_id) { + die("

Invalid request. Missing student or medication data.

"); +} + +// Handle form submission +if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content'])) { + $content = trim($_POST['content']); + $note_date = $_POST['note_date']; // Get the date from the form input + $note_time = $_POST['note_time']; // Get the time from the form input + + // Combine date and time into a single string + $full_note_datetime = $note_date . ' ' . $note_time; + + // Validate that the user has entered a valid date and time + if (empty($content)) { + echo "

Note content cannot be empty.

"; + } elseif (empty($note_date) || empty($note_time)) { + echo "

Please select both date and time for the note.

"; + } else { + try { + // Insert the note with the user-selected date and time, and the staff_code + $sql = "INSERT INTO notes (takes_id, content, created_at, staff_code) + VALUES (:takes_id, :content, :created_at, :staff_code)"; + $stmt = $conn->prepare($sql); + $stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); + $stmt->bindParam(':content', $content, PDO::PARAM_STR); + $stmt->bindParam(':created_at', $full_note_datetime, PDO::PARAM_STR); + $stmt->bindParam(':staff_code', $staff_code, PDO::PARAM_STR); + $stmt->execute(); + + echo "

Note added successfully!

"; + } catch (PDOException $e) { + die("

Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES) . "

"); + } + } +} +?> + + + + + Create Notes + + + +
+

Create Note

+

Adding a note for Student ID: and Takes ID:

+ +
+ + + + + + + + + + + + + + + +
+ Back to Student Medication +
+ + diff --git a/bigtable/view_notes.php b/bigtable/view_notes.php index cd59d71..3c1373d 100644 --- a/bigtable/view_notes.php +++ b/bigtable/view_notes.php @@ -1,81 +1,53 @@ - - -Hours Tracking - View Notes -
- - prepare($sql); - $stmt->bindParam(':student_id', $student_id, PDO::PARAM_INT); - $stmt->execute(); +// Get student_id and takes_id from the GET request +$student_id = isset($_GET['student_id']) ? intval($_GET['student_id']) : null; +$takes_id = isset($_GET['takes_id']) ? intval($_GET['takes_id']) : null; - // Fetch results - $results = $stmt->fetchAll(PDO::FETCH_ASSOC); - - // Display the table - echo "

Log Records for Student ID: " . htmlspecialchars($student_id) . "

"; - if ($results) { - echo "
" . htmlspecialchars($heading, ENT_QUOTES) . "" . htmlspecialchars($heading, ENT_QUOTES) . "ActionsNotesActionsNotes
"; - echo " - - - - "; - - foreach ($results as $row) { - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - } +// Validate the inputs +if (!$student_id || !$takes_id) { + die("

Invalid request. Missing student or medication data.

"); +} - echo "
Log IDDate LoggedNotes
" . htmlspecialchars($row['log_id']) . "" . htmlspecialchars(date('d/m/Y H:i', $row['date_time'])) . "" . htmlspecialchars($row['notes']) . "
"; - } else { - echo "

No records found for this student.

"; +try { + // Query to fetch notes along with staff_code for the specified student and takes_id + $sql = "SELECT notes.note_id, notes.content, notes.created_at, + students.first_name, students.last_name, + med.med_name, notes.staff_code + FROM notes + INNER JOIN takes ON notes.takes_id = takes.takes_id + INNER JOIN students ON takes.student_id = students.student_id + INNER JOIN med ON takes.med_id = med.med_id + WHERE takes.takes_id = :takes_id AND students.student_id = :student_id"; + + $stmt = $conn->prepare($sql); + $stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); + $stmt->bindParam(':student_id', $student_id, PDO::PARAM_INT); + $stmt->execute(); + + $notes = $stmt->fetchAll(PDO::FETCH_ASSOC); + + echo "

Notes for " . htmlspecialchars($notes[0]['first_name'], ENT_QUOTES) . " " . htmlspecialchars($notes[0]['last_name'], ENT_QUOTES) . "

"; + echo "

Medication: " . htmlspecialchars($notes[0]['med_name'], ENT_QUOTES) . "

"; + + if ($notes) { + echo ""; + echo ""; + + foreach ($notes as $note) { + echo ""; + echo ""; // Display the staff_code from notes table + echo ""; + echo ""; + echo ""; } - } catch (PDOException $e) { - echo "

Database error: " . htmlspecialchars($e->getMessage()) . "

"; + + echo "
Staff CodeContentCreated At
" . htmlspecialchars($note['staff_code'], ENT_QUOTES) . "" . htmlspecialchars($note['content'], ENT_QUOTES) . "" . htmlspecialchars(date('d/m/Y H:i', strtotime($note['created_at'])), ENT_QUOTES) . "
"; + } else { + echo "

No notes found for this student and medication.

"; } -} else { - echo "

No student ID provided.

"; +} catch (PDOException $e) { + die("

Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES) . "

"); } ?> From 2894e482d1107cb01626a8fe9116fca66f2059cf Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 00:13:02 +0000 Subject: [PATCH 05/86] cookie update --- login/login.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/login/login.php b/login/login.php index feeeac5..29831cb 100644 --- a/login/login.php +++ b/login/login.php @@ -40,7 +40,7 @@ function logAction($conn, $staff_id, $action) { $password = $_POST["password"]; // First check if the email exists and get the staff details - $sql = "SELECT staff_id, `group`, password, email FROM staff WHERE email = :email"; + $sql = "SELECT staff_id, `group`, password, email, staff_code FROM staff WHERE email = :email"; $stmt = $conn->prepare($sql); $stmt->execute(['email' => $email]); $user = $stmt->fetch(PDO::FETCH_ASSOC); @@ -57,13 +57,14 @@ function logAction($conn, $staff_id, $action) { $_SESSION['staff_id'] = $user['staff_id']; $_SESSION["ssnlogin"] = true; $_SESSION["email"] = $user["email"]; + $_SESSION["staff_code"] = $user["staff_code"]; // Store staff_code in session // Add cookie setting here setcookie( 'cookies_and_cream', 'active', [ - 'expires' => time() + (2 * 60), // 2 minutes + 'expires' => time() + (5 * 60), // 5 minutes 'path' => '/', 'secure' => true, 'httponly' => true, @@ -94,4 +95,4 @@ function logAction($conn, $staff_id, $action) { // Redirect to login page in case of an error header("Location: ../index.html"); exit(); -} \ No newline at end of file +} From 971c44aad936d1d144f01094ff5d785a34fbab00 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 00:14:57 +0000 Subject: [PATCH 06/86] archive: code --- administer/administer.php | 137 --------------------------------- administer/administer_form.php | 59 -------------- administer/choose_med.php | 120 ----------------------------- administer/choose_stu.php | 85 -------------------- log/add_notes.php | 80 ------------------- log/choose_student.php | 92 ---------------------- log/log.php | 87 --------------------- log/log_form.php | 54 ------------- 8 files changed, 714 deletions(-) delete mode 100644 administer/administer.php delete mode 100644 administer/administer_form.php delete mode 100644 administer/choose_med.php delete mode 100644 administer/choose_stu.php delete mode 100644 log/add_notes.php delete mode 100644 log/choose_student.php delete mode 100644 log/log.php delete mode 100644 log/log_form.php diff --git a/administer/administer.php b/administer/administer.php deleted file mode 100644 index cf1817d..0000000 --- a/administer/administer.php +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - Hours Tracking - Administer - - - - - - - - - - - -prepare($sql); - - $stmt -> bindParam(1,$sid); - - $stmt->execute(); - - $result = $stmt->fetch(); - - $tid = $result['takes_id']; - - // Combine the date and time into a single string - $date_time_str = $date . ' ' . $time; - - // Convert the combined date and time string to a Unix timestamp (epoch time) - $date_time_epoch = strtotime($date_time_str); - - // Prepare SQL statement to insert information into the 'administer' table - $sql = "INSERT INTO administer (staff_code, date_time, dose_given, takes_id) VALUES (?, ?, ?,?)"; - $stmt = $conn->prepare($sql); - - // Bind parameters to prevent SQL injection - $stmt->bindParam(1, $staff_code); - $stmt->bindParam(2, $date_time_epoch); // Use the Unix timestamp here - $stmt->bindParam(3, $taken_dose); - $stmt->bindParam(4, $tid); - - // Execute the statement - if($stmt->execute()) { - echo "Data successfully inserted!"; - echo ""; - } else { - echo "Error inserting data."; - echo ""; - } - - // Dose subtracted from takes table - - // Prepare sql statement - $sql = "SELECT current_dose FROM takes WHERE takes_id = ?"; - $stmt = $conn->prepare($sql); - - // Bind parameters to prevent SQL injection - $stmt->bindParam(1,$tid); - - $stmt->execute(); - - $result = $stmt->fetch(); - - $new_dose = $result['current_dose'] - $taken_dose; - - // Update sql table - $sql = "UPDATE takes SET current_dose = ? WHERE takes_id = ?"; - $stmt = $conn->prepare($sql); - - // Bind parameters to prevent SQL injection - $stmt->bindParam(1,$new_dose); - $stmt->bindParam(2,$tid); - - // Execute the statement - if($stmt->execute()){ - echo "Data successfully updated!"; - }else{ - echo "Error updating data."; - }; - - - } catch (PDOException $e) { - // Handle any errors - echo "Error: " . $e->getMessage(); - } - -?> \ No newline at end of file diff --git a/administer/administer_form.php b/administer/administer_form.php deleted file mode 100644 index bd6b080..0000000 --- a/administer/administer_form.php +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - Hours Tracking - Administer Form - - - - - -
- -

Create a log

-
-
Enter staff code
-
Example: AWA
- -

-
Enter students first name
-
Example: Joe
- -

-
Enter students year group
-
Example: 12
- -

- -
-
- - \ No newline at end of file diff --git a/administer/choose_med.php b/administer/choose_med.php deleted file mode 100644 index 25316dd..0000000 --- a/administer/choose_med.php +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - Hours Tracking - Choose Medication - - - - - - - - - - -prepare($sql); - - // Bind parameter for student ID from POST data - $stmt->bindParam(1, $_POST['sid']); - - // Execute the query - $stmt->execute(); - - // Fetch all results - $result = $stmt->fetchAll(); - - // Display the form and table for medication selection - echo "
"; - - echo ""; - - // Display each medication with a checkbox and dose input for selection - foreach ($result as $row) { - - echo ""; - - // Hidden field to pass student_id - echo ""; - - // Hidden field to pass med_id - echo ""; - - // Hidden field to pass staff_code - echo ""; - - // Checkbox to select what meds have been taken - echo ""; - echo ""; - - echo ""; - - echo ""; - - } - - // Submit button for the form - echo "
Medication name: " . $row['med_name'] . ""; - - // Input field for dose of each medication - echo ""; - echo ""; -; - // Date input field of each medication - echo ""; - echo ""; - - // Time input field of each medication - echo ""; - echo ""; - - echo "
"; - - echo ""; - - echo "
"; - -?> \ No newline at end of file diff --git a/administer/choose_stu.php b/administer/choose_stu.php deleted file mode 100644 index a2408c9..0000000 --- a/administer/choose_stu.php +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - Hours Tracking - Choose Student - - - - - -
- - -

Select a Student

-
- - - -prepare($sql); - - $stmt->bindParam(1, $_POST['student_fname']); - $stmt->bindParam(2, $_POST['student_yeargroup']); - - $stmt->execute(); - - $result = $stmt->fetchAll(); - - // Display the table and form for student selection - echo "
"; - echo ""; - - // Display each student with a checkbox for selection - foreach ($result as $row) { - echo ""; - echo ""; - echo ""; - echo ""; - echo "
"; - echo ""; - echo ""; - } - - // Submit button for the form - echo "
First name: " . htmlspecialchars($row['first_name']) . "Last name: " . htmlspecialchars($row['last_name']) . "
"; - echo "
"; - echo ""; - echo "
"; - -?> \ No newline at end of file diff --git a/log/add_notes.php b/log/add_notes.php deleted file mode 100644 index 549e83a..0000000 --- a/log/add_notes.php +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - Hours Tracking - Add Notes - - - - - - - - - -Add Notes"; - echo "
"; - echo ""; - - ### TODO: Discuss using https://design-system.service.gov.uk/patterns/dates/ this date format instead and try and change the logic to still work with epoch -- James - ### Still going to style it to match the style for the rest of the site but might be changed - ### Working Example, https://github.com/SilentSmeary/hours-tracking/blob/main/student/insert_log.php - echo "
Enter date
-
Example: 12/05/2025
"; - echo ""; - echo "

"; - // Time input field of each medication - echo "
Enter time
-
Example: 12/05/2025
"; - echo ""; - echo "

"; - // Notes input for log - echo "
Enter notes
-
Example: 2x Given
"; -// echo ""; - echo ""; - echo "

"; - // Submit button for the form - echo ""; - - echo ""; - - echo "
"; - -?> \ No newline at end of file diff --git a/log/choose_student.php b/log/choose_student.php deleted file mode 100644 index 374ed68..0000000 --- a/log/choose_student.php +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - Hours Tracking - Choose Student - - -
- - - prepare($sql); - - $stmt->bindParam(1, $_POST['student_fname']); - $stmt->bindParam(2, $_POST['student_yeargroup']); - - $stmt->execute(); - - $result = $stmt->fetchAll(); - - // Display the table and form for student selection - echo "
"; - - echo "
"; - - echo ""; - echo "

Select Student

"; - // Display each student with a checkbox for selection - foreach ($result as $row) { - - echo ""; - echo ""; - echo ""; - echo "
"; - echo ""; - } - - // Submit button for the form - echo "
First name: " . htmlspecialchars($row['first_name']) . "Last name: " . htmlspecialchars($row['last_name']) . "
"; - echo "
"; - echo ""; - - echo "
"; - - echo "
"; - - ?> - -
- - - - \ No newline at end of file diff --git a/log/log.php b/log/log.php deleted file mode 100644 index 3af42fb..0000000 --- a/log/log.php +++ /dev/null @@ -1,87 +0,0 @@ - - - - - Hours Tracking - Log - - - -
- - -prepare($sql); - - // Bind parameters to prevent SQL injection - $stmt ->bindParam(1, $stu_id); - $stmt ->bindParam(2, $staff_id); - $stmt ->bindParam(3, $notes); - $stmt ->bindParam(4, $date_time_epoch); - - // Execute the statement - if($stmt->execute()) { - echo "
Data successfully inserted!"; - echo ""; - } else { - echo "Error inserting data."; - echo ""; - } - - } catch (PDOException $e) { - // Handle any errors - echo "Error: " . $e->getMessage(); - } - -?> \ No newline at end of file diff --git a/log/log_form.php b/log/log_form.php deleted file mode 100644 index 7e73f25..0000000 --- a/log/log_form.php +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - Hours Tracking - Log Form - - -
- -

Choose a Student

-
-
Enter students first name
-
Example: Joe
- -

-
Enter students year group
-
Example: 12
- -

- -
-
- - \ No newline at end of file From 2d45ff09f7e76c7f1ba683fc7d9345d6fe03e295 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 18:57:06 +0000 Subject: [PATCH 07/86] fixed: table readability --- bigtable/bigtable.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index 5e07ab6..b322bc5 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -89,9 +89,8 @@ class="search_bar" $total_pages = ceil($total_records / $results_per_page); - $sql = "SELECT takes.takes_id, takes.exp_date, takes.current_dose, takes.min_dose, - takes.strength, med.med_name, brand.brand_name, - students.student_id, students.first_name, students.last_name, students.year + $sql = "SELECT takes.takes_id, students.student_id, students.first_name, students.last_name, students.year, + med.med_name, brand.brand_name, takes.exp_date, takes.current_dose, takes.min_dose FROM takes INNER JOIN med ON takes.med_id = med.med_id INNER JOIN brand ON takes.brand_id = brand.brand_id @@ -108,15 +107,14 @@ class="search_bar" $custom_headings = [ 'takes_id' => 'ID', + 'first_name' => 'First Name', + 'last_name' => 'Last Name', + 'year' => 'Year', + 'med_name' => 'Medication Name', + 'brand_name' => 'Brand Name', 'exp_date' => 'Expiry Date', 'current_dose' => 'Current Dose', 'min_dose' => 'Minimum Dose', - 'strength' => 'Strength', - 'med_name' => 'Medication Name', - 'brand_name' => 'Brand Name', - 'first_name' => 'First Name', - 'last_name' => 'Last Name', - 'year' => 'Year' ]; $results = $stmt->fetchAll(PDO::FETCH_ASSOC); @@ -153,14 +151,14 @@ class="search_bar" echo "
- +
- +
- - + +
- - - - - - @@ -174,22 +165,18 @@ -
+
+ Recent Note: +
- - + +
- - - - - - @@ -204,22 +191,18 @@ -
+
+ Recent Note: +
- - + +
- - - - - - @@ -234,27 +217,22 @@ -
+
+ Recent Note: +
- - + +
- - - - - - -
From e5f618376d979a3432b1faf5410086c962d4742a Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 21:29:24 +0000 Subject: [PATCH 12/86] added: create notes to dashboard --- dashboard/create_notes.php | 87 ++++++++++++++++++++++++++++++++++++++ dashboard/dashboard.php | 33 +++++++++------ dashboard/doses.php | 40 ++++++++++++++++++ dashboard/view_notes.php | 53 +++++++++++++++++++++++ 4 files changed, 201 insertions(+), 12 deletions(-) create mode 100644 dashboard/create_notes.php create mode 100644 dashboard/doses.php create mode 100644 dashboard/view_notes.php diff --git a/dashboard/create_notes.php b/dashboard/create_notes.php new file mode 100644 index 0000000..fae2454 --- /dev/null +++ b/dashboard/create_notes.php @@ -0,0 +1,87 @@ +Staff code not found. Please log in again.

"); +} + +$staff_code = $_SESSION['staff_code']; // Get the staff_code from session + +// Redirect back if the required data is missing +if (!$student_id || !$takes_id) { + die("

Invalid request. Missing student or medication data.

"); +} + +// Handle form submission +if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content'])) { + $content = trim($_POST['content']); + $note_date = $_POST['note_date']; // Get the date from the form input + $note_time = $_POST['note_time']; // Get the time from the form input + + // Combine date and time into a single string + $full_note_datetime = $note_date . ' ' . $note_time; + + // Validate that the user has entered a valid date and time + if (empty($content)) { + echo "

Note content cannot be empty.

"; + } elseif (empty($note_date) || empty($note_time)) { + echo "

Please select both date and time for the note.

"; + } else { + try { + // Insert the note with the user-selected date and time, and the staff_code + $sql = "INSERT INTO notes (takes_id, content, created_at, staff_code) + VALUES (:takes_id, :content, :created_at, :staff_code)"; + $stmt = $conn->prepare($sql); + $stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); + $stmt->bindParam(':content', $content, PDO::PARAM_STR); + $stmt->bindParam(':created_at', $full_note_datetime, PDO::PARAM_STR); + $stmt->bindParam(':staff_code', $staff_code, PDO::PARAM_STR); + $stmt->execute(); + + echo "

Note added successfully!

"; + } catch (PDOException $e) { + die("

Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES) . "

"); + } + } +} +?> + + + + + Create Notes + + + +
+

Create Note

+

Adding a note for Student ID: and Takes ID:

+ +
+ + + + + + + + + + + + + +
+ +
+ Back to Student Medication +
+ + diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index 4d0bed7..3a6aee7 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -50,6 +50,7 @@ foreach ($result as $row) { $expiry_date = $row["exp_date"]; $takes_id = $row["takes_id"]; + $student_id = $row["student_id"]; // Store student_id from database $student_name = $row["first_name"] . " " . $row["last_name"]; $student_year = $row["year"]; $med_name = $row["med_name"]; @@ -62,7 +63,8 @@ 'info' => "$student_name
Year: $student_year
Medication: $med_name , $brand_name
Expiry: $formatted_date", 'takes_id' => $takes_id, 'notes' => $notes, - 'recent_note' => $recent_note + 'recent_note' => $recent_note, + 'student_id' => $student_id // Include student_id in the medication info array ]; if ($expiry_date < $time) { @@ -104,9 +106,9 @@ foreach ($dose_result as $row) { $takes_id = $row["takes_id"]; + $student_id = $row["student_id"]; // Store student_id from database $student_name = $row["first_name"] . " " . $row["last_name"]; $student_year = $row["year"]; - $student_id = $row["student_id"]; $med_name = $row["med_name"]; $brand_name = $row["brand_name"]; $current_dose = $row["current_dose"]; @@ -117,7 +119,8 @@ 'info' => "$student_name
Year: $student_year
Medication: $med_name , $brand_name
Dose: $current_dose", 'takes_id' => $takes_id, 'notes' => $notes, - 'recent_note' => $recent_note + 'recent_note' => $recent_note, + 'student_id' => $student_id // Include student_id in the medication info array ]; $below_minimum_doses[] = $medication_info; @@ -146,11 +149,20 @@ -
- +
+
+ + + +
+
+ + + +
@@ -172,9 +184,8 @@ -
- +
@@ -198,9 +209,8 @@ -
- +
@@ -224,9 +234,8 @@ -
- +
@@ -235,4 +244,4 @@ - + \ No newline at end of file diff --git a/dashboard/doses.php b/dashboard/doses.php new file mode 100644 index 0000000..c8c680f --- /dev/null +++ b/dashboard/doses.php @@ -0,0 +1,40 @@ +prepare($check_sql); + $stmt->bindParam(':take_id', $take_id, PDO::PARAM_INT); + $stmt->execute(); + $result = $stmt->fetch(PDO::FETCH_ASSOC); + + if ($result && $result['doses'] > 0) { + // Decrement the dose count + $update_sql = "UPDATE takes SET doses = doses - 1 WHERE take_id = :take_id"; + $update_stmt = $conn->prepare($update_sql); + $update_stmt->bindParam(':take_id', $take_id, PDO::PARAM_INT); + $update_stmt->execute(); + header("Location: bigtable.php"); // Redirect back to the main page + exit; + } else { + echo "Cannot decrement: doses are already zero."; + } + } catch (PDOException $e) { + die("Database error: " . $e->getMessage()); + } +} else { + die("Invalid request."); +} +?> diff --git a/dashboard/view_notes.php b/dashboard/view_notes.php new file mode 100644 index 0000000..ec0efab --- /dev/null +++ b/dashboard/view_notes.php @@ -0,0 +1,53 @@ +Invalid request. Missing student or medication data.

"); +} + +try { + // Query to fetch notes along with staff_code for the specified student and takes_id + $sql = "SELECT notes.note_id, notes.content, notes.created_at, + students.first_name, students.last_name, + med.med_name, notes.staff_code + FROM notes + INNER JOIN takes ON notes.takes_id = takes.takes_id + INNER JOIN students ON takes.student_id = students.student_id + INNER JOIN med ON takes.med_id = med.med_id + WHERE takes.takes_id = :takes_id AND students.student_id = :student_id"; + + $stmt = $conn->prepare($sql); + $stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); + $stmt->bindParam(':student_id', $student_id, PDO::PARAM_INT); + $stmt->execute(); + + $notes = $stmt->fetchAll(PDO::FETCH_ASSOC); + + if (!$notes) { + echo "

No notes found for this student and medication.

"; + } else { + echo "

Notes for " . htmlspecialchars($notes[0]['first_name'], ENT_QUOTES) . " " . htmlspecialchars($notes[0]['last_name'], ENT_QUOTES) . "

"; + echo "

Medication: " . htmlspecialchars($notes[0]['med_name'], ENT_QUOTES) . "

"; + + echo ""; + echo ""; + + foreach ($notes as $note) { + echo ""; + echo ""; // Display the staff_code from notes table + echo ""; + echo ""; + echo ""; + } + + echo "
Staff CodeContentCreated At
" . htmlspecialchars($note['staff_code'], ENT_QUOTES) . "" . htmlspecialchars($note['content'], ENT_QUOTES) . "" . htmlspecialchars(date('d/m/Y H:i', strtotime($note['created_at'])), ENT_QUOTES) . "
"; + } +} catch (PDOException $e) { + die("

Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES) . "

"); +} +?> From b91b9207373774223a1dc368f904fc6b455f5822 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 22:44:01 +0000 Subject: [PATCH 13/86] added: button styling --- assets/style/style.css | 18 +++++++++++++++ dashboard/dashboard.php | 50 ++++++++++++++++++++++++++++++++--------- 2 files changed, 58 insertions(+), 10 deletions(-) diff --git a/assets/style/style.css b/assets/style/style.css index ff9a711..784fece 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -562,4 +562,22 @@ select option { text-decoration: none; color: #003078; border-bottom: 4px solid #003078; +} + +.home_page_button{ + margin-top: 10px; + color: #0b0b0c; + font-family: roboto; + font-size: 20px; + font-weight: 500; + background-color: #f3f2f1; + border: none; + text-decoration: none; + cursor: pointer; + border-bottom: 1px solid #505a5f; + padding: 5px; +} + +.home_page_button:hover { + background-color: #b1b4b6; } \ No newline at end of file diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index 3a6aee7..c50d13a 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -147,21 +147,21 @@
- +
- +
- +
- +
@@ -182,11 +182,21 @@
- +
- + +
+
+ + + +
+
+ + +
@@ -207,11 +217,21 @@
- +
- + +
+
+ + + +
+
+ + +
@@ -232,11 +252,21 @@
- +
- + +
+
+ + + +
+
+ + +
From 91daf45c07b69380f18295676ac6ca7b85d8f31c Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 23:10:50 +0000 Subject: [PATCH 14/86] added: style for create notes --- assets/style/style.css | 16 ++++++++++++++ dashboard/create_notes.php | 43 ++++++++++++++++++++++---------------- dashboard/view_notes.php | 35 +++++++++++++++++++++++-------- server/main_navbar.php | 34 +++++++++++++++--------------- 4 files changed, 84 insertions(+), 44 deletions(-) diff --git a/assets/style/style.css b/assets/style/style.css index 784fece..cbf57d5 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -580,4 +580,20 @@ select option { .home_page_button:hover { background-color: #b1b4b6; +} + +.big_table_td_custom_one { + width: 100px; + padding: 12px; /* Padding for table header cells */ + text-align: left; + border-bottom: 1px solid #0b0b0c; /* Light gray border */ + font-size: 20px; +} + +.big_table_td_custom_two { + width: 200px; + padding: 12px; /* Padding for table header cells */ + text-align: left; + border-bottom: 1px solid #0b0b0c; /* Light gray border */ + font-size: 20px; } \ No newline at end of file diff --git a/dashboard/create_notes.php b/dashboard/create_notes.php index fae2454..3f1d5ca 100644 --- a/dashboard/create_notes.php +++ b/dashboard/create_notes.php @@ -51,6 +51,8 @@ } } } + +include "../server/main_navbar.php"; ?> @@ -59,29 +61,34 @@ Create Notes - -
-

Create Note

-

Adding a note for Student ID: and Takes ID:

+ +
+

Create A Note

+

You are adding a note for Student ID: with Takes ID:

- - - - - - - - - - - - - +
Enter the note date:
+
Example: 22/01/2025
+ +

+ +
Enter the time:
+
Example: 22/01/2025
+ + +

+ +
Enter the note:
+
Example: Attempted to call mum
+ + +

+ +

- Back to Student Medication + > Go Back
diff --git a/dashboard/view_notes.php b/dashboard/view_notes.php index ec0efab..35ff76a 100644 --- a/dashboard/view_notes.php +++ b/dashboard/view_notes.php @@ -1,5 +1,14 @@ + + + + Create Notes + + + + execute(); $notes = $stmt->fetchAll(PDO::FETCH_ASSOC); - if (!$notes) { + echo "

No notes found for this student and medication.

"; + echo " > Go Back"; } else { - echo "

Notes for " . htmlspecialchars($notes[0]['first_name'], ENT_QUOTES) . " " . htmlspecialchars($notes[0]['last_name'], ENT_QUOTES) . "

"; - echo "

Medication: " . htmlspecialchars($notes[0]['med_name'], ENT_QUOTES) . "

"; + echo "

View Notes

"; + echo "

Notes for " . htmlspecialchars($notes[0]['first_name'], ENT_QUOTES) . " " . htmlspecialchars($notes[0]['last_name'], ENT_QUOTES) . "

"; + echo "

Medication: " . htmlspecialchars($notes[0]['med_name'], ENT_QUOTES) . "

"; - echo ""; - echo ""; + echo "
Staff CodeContentCreated At
"; + echo " + + + + "; foreach ($notes as $note) { echo ""; - echo ""; // Display the staff_code from notes table - echo ""; - echo ""; + echo ""; // Display the staff_code from notes table + echo ""; + echo ""; echo ""; } - + echo "
Staff CodeDate and TimeContent
" . htmlspecialchars($note['staff_code'], ENT_QUOTES) . "" . htmlspecialchars($note['content'], ENT_QUOTES) . "" . htmlspecialchars(date('d/m/Y H:i', strtotime($note['created_at'])), ENT_QUOTES) . "" . htmlspecialchars($note['staff_code'], ENT_QUOTES) . "" . htmlspecialchars(date('d/m/Y H:i', strtotime($note['created_at'])), ENT_QUOTES) . "" . htmlspecialchars($note['content'], ENT_QUOTES) . "
"; + echo "

"; + echo " > Go Back"; } } catch (PDOException $e) { die("

Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES) . "

"); diff --git a/server/main_navbar.php b/server/main_navbar.php index 7042666..d1a355d 100644 --- a/server/main_navbar.php +++ b/server/main_navbar.php @@ -1,18 +1,18 @@ \ No newline at end of file + +
\ No newline at end of file From f8e4349b5433751ec7dff15f295a1741cfc651de Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2025 23:39:04 +0000 Subject: [PATCH 15/86] added: default date and time fields --- assets/style/style.css | 4 ++-- dashboard/create_notes.php | 18 ++++++++++++++++-- dashboard/dashboard.php | 18 +++++++++--------- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/assets/style/style.css b/assets/style/style.css index cbf57d5..8d58c80 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -568,14 +568,14 @@ select option { margin-top: 10px; color: #0b0b0c; font-family: roboto; - font-size: 20px; + font-size: 18px; font-weight: 500; background-color: #f3f2f1; border: none; text-decoration: none; cursor: pointer; border-bottom: 1px solid #505a5f; - padding: 5px; + padding: 10px; } .home_page_button:hover { diff --git a/dashboard/create_notes.php b/dashboard/create_notes.php index 3f1d5ca..8eb8660 100644 --- a/dashboard/create_notes.php +++ b/dashboard/create_notes.php @@ -69,12 +69,26 @@
Enter the note date:
Example: 22/01/2025
- + + + +

Enter the time:
Example: 22/01/2025
- + + + +

diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index c50d13a..2fbaf7a 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -32,10 +32,10 @@ brand.brand_name, takes.notes, (SELECT CONCAT(notes.staff_code, ' logged ', notes.content) - FROM notes - WHERE notes.takes_id = takes.takes_id - ORDER BY notes.created_at DESC - LIMIT 1) AS recent_note + FROM notes + WHERE notes.takes_id = takes.takes_id + ORDER BY notes.created_at DESC + LIMIT 1) AS recent_note FROM takes JOIN students ON takes.student_id = students.student_id JOIN med ON takes.med_id = med.med_id @@ -90,10 +90,10 @@ takes.min_dose, takes.notes, (SELECT CONCAT(notes.staff_code, ' logged ', notes.content) - FROM notes - WHERE notes.takes_id = takes.takes_id - ORDER BY notes.created_at DESC - LIMIT 1) AS recent_note + FROM notes + WHERE notes.takes_id = takes.takes_id + ORDER BY notes.created_at DESC + LIMIT 1) AS recent_note FROM takes JOIN students ON takes.student_id = students.student_id JOIN med ON takes.med_id = med.med_id @@ -145,7 +145,7 @@
Recent Note:
- +
From 3b7a645c7f3d269e0ac767feda6ea4a5ca0c80ed Mon Sep 17 00:00:00 2001 From: James Date: Thu, 23 Jan 2025 00:11:46 +0000 Subject: [PATCH 16/86] added: delete verify for staff --- admin/staff/staff_home.php | 11 ++++++++--- assets/style/style.css | 4 ++++ dashboard/dashboard.php | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/admin/staff/staff_home.php b/admin/staff/staff_home.php index 35dd1ad..60cae82 100644 --- a/admin/staff/staff_home.php +++ b/admin/staff/staff_home.php @@ -69,13 +69,18 @@ +
+ + +
- +
-
+ + - +
diff --git a/assets/style/style.css b/assets/style/style.css index 8d58c80..01537d4 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -596,4 +596,8 @@ select option { text-align: left; border-bottom: 1px solid #0b0b0c; /* Light gray border */ font-size: 20px; +} + +.action-buttons{ + width: 500px; } \ No newline at end of file diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index 2fbaf7a..920fa14 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -180,7 +180,7 @@
Recent Note:
-
+
@@ -215,7 +215,7 @@
Recent Note:
-
+
@@ -250,7 +250,7 @@
Recent Note:
-
+
From fa0cb7112073dc73e710a48690533cb18728f458 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 23 Jan 2025 11:49:47 +0000 Subject: [PATCH 17/86] Update database.sql --- database/database.sql | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/database/database.sql b/database/database.sql index 04db9df..9c967e9 100644 --- a/database/database.sql +++ b/database/database.sql @@ -99,7 +99,7 @@ INSERT INTO `brand` (`brand_id`, `brand_name`) VALUES (33, 'VIBRAMYCIN'), (34, 'DELTASONE'), (35, 'PLAVIX'), -(36, 'PANADOL'), +(36, 'PANADOL'); -- -- Triggers `brand` @@ -162,10 +162,7 @@ INSERT INTO `med` (`med_id`, `med_name`) VALUES (27, 'LEVOCETIRIZINE'), (28, 'GABAPENTIN'), (29, 'DOXYCYCLINE'), -(30, 'CLOPIDOGREL'), -(31, 'ASDASDASDASD'), -(32, 'ASDASDASDASD'), -(33, 'ASDASDASDASD'); +(30, 'CLOPIDOGREL'); -- -- Triggers `med` @@ -281,7 +278,7 @@ INSERT INTO `students` (`student_id`, `first_name`, `last_name`, `year`) VALUES (30, 'MARK', 'SLOAN', '11'), (31, 'OWEN', 'HUNT', '13'), (32, 'CRISTINA', 'YANG', '11'), -(33, 'MIRANDA', 'BAILEY', '14'), +(33, 'MIRANDA', 'BAILEY', '14'); -- -- Triggers `students` From fea29215a29450ba5a1b687431ee10849d90faad Mon Sep 17 00:00:00 2001 From: James Date: Thu, 23 Jan 2025 12:07:22 +0000 Subject: [PATCH 18/86] fix: style --- dashboard/dashboard.php | 70 ++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index 920fa14..add8638 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -145,14 +145,6 @@
Recent Note:
-
- - -
-
- - -
@@ -163,6 +155,15 @@
+
+
+ + +
+
+ + +
@@ -180,14 +181,6 @@
Recent Note:
-
- - -
-
- - -
@@ -198,6 +191,15 @@
+
+
+ + +
+
+ + +
@@ -215,14 +217,6 @@
Recent Note:
-
- - -
-
- - -
@@ -233,6 +227,15 @@
+
+
+ + +
+
+ + +
@@ -250,14 +253,6 @@
Recent Note:
-
- - -
-
- - -
@@ -268,10 +263,19 @@
+
+
+ + +
+
+ + +
- \ No newline at end of file + From d147f3475cd11e2bd8f198c4f6a8cc2adb3e7fdc Mon Sep 17 00:00:00 2001 From: James Date: Thu, 23 Jan 2025 22:37:46 +0000 Subject: [PATCH 19/86] added: edit staff details --- admin/staff/create_user_data.php | 10 ++- admin/staff/create_user_form.php | 4 + admin/staff/edit_user.php | 127 +++++++++++++++++++++++++++++++ admin/staff/staff_home.php | 6 +- 4 files changed, 141 insertions(+), 6 deletions(-) create mode 100644 admin/staff/edit_user.php diff --git a/admin/staff/create_user_data.php b/admin/staff/create_user_data.php index 0aa1e07..22f587a 100644 --- a/admin/staff/create_user_data.php +++ b/admin/staff/create_user_data.php @@ -11,6 +11,7 @@ $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; +$staff_code = $_POST['staff_code']; $email = $_POST['email']; $password = $_POST['password']; $c_password = $_POST['c_password']; @@ -37,13 +38,14 @@ } else { try { $hpswd = password_hash($password, PASSWORD_DEFAULT); - $sql = "INSERT INTO staff (first_name, last_name, email, password, `group`) VALUES (?, ?, ?, ?, ?)"; + $sql = "INSERT INTO staff (first_name, last_name, staff_code, email, password, `group`) VALUES (?, ?, ?, ?, ?, ?)"; $stmt = $conn->prepare($sql); $stmt->bindParam(1,$first_name); $stmt->bindParam(2,$last_name); - $stmt->bindParam(3,$email); - $stmt->bindParam(4,$hpswd); - $stmt->bindParam(5,$group); + $stmt->bindParam(3,$staff_code); + $stmt->bindParam(4,$email); + $stmt->bindParam(5,$hpswd); + $stmt->bindParam(6,$group); $stmt->execute(); header("refresh:5; url=staff_home.php"); diff --git a/admin/staff/create_user_form.php b/admin/staff/create_user_form.php index 8d63948..07ff645 100644 --- a/admin/staff/create_user_form.php +++ b/admin/staff/create_user_form.php @@ -47,6 +47,10 @@
Example: Bloggs


+
Enter staff code
+
Example: JBL
+ +

Enter email:
Example: joe.bloggs@utcleeds.co.uk
diff --git a/admin/staff/edit_user.php b/admin/staff/edit_user.php new file mode 100644 index 0000000..d9c4790 --- /dev/null +++ b/admin/staff/edit_user.php @@ -0,0 +1,127 @@ +prepare($query); + $stmt->bindParam(':staff_id', $staff_id, PDO::PARAM_INT); + $stmt->execute(); + $user = $stmt->fetch(PDO::FETCH_ASSOC); + + if (!$user) { + die("User not found."); + } + } elseif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['staff_id'])) { + $staff_id = $_POST['staff_id']; + $first_name = $_POST['first_name']; + $last_name = $_POST['last_name']; + $email = $_POST['email']; + $staff_code = $_POST['staff_code']; + + // Validate inputs + if (empty($first_name) || empty($last_name) || empty($email) || empty($staff_code)) { + $error = "All fields are required."; + } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { + $error = "Invalid email format."; + } else { + // Update user details + $query = "UPDATE staff SET first_name = :first_name, last_name = :last_name, email = :email, staff_code = :staff_code WHERE staff_id = :staff_id"; + $stmt = $conn->prepare($query); + $stmt->bindParam(':first_name', $first_name); + $stmt->bindParam(':last_name', $last_name); + $stmt->bindParam(':email', $email); + $stmt->bindParam(':staff_code', $staff_code); + $stmt->bindParam(':staff_id', $staff_id, PDO::PARAM_INT); + + if ($stmt->execute()) { + $success = "Details updated successfully."; + } else { + $error = "Failed to update details."; + } + } + } else { + $error = "Invalid request."; + } +} catch (PDOException $e) { + $error = "Database error: " . $e->getMessage(); +} +?> + + + +Hours Tracking - Dashboard +
+ +

Edit User Details

+ + +
+
+

Error

+
+
+

+
+
+
+ +
+
+

Success

+
+
+

+
+
+
+ + + +
+ +
+
Enter first name
+
Example: Joe
+ +
+
+
+
Enter last name
+
Example: Bloggs
+ +
+
+
+
Enter email
+
Example: joe.bloggs@utcleeds.co.uk
+ +
+
+
+
Enter staff code
+
Example: JBL
+ +
+
+ +
+ + + < Go Back + + + diff --git a/admin/staff/staff_home.php b/admin/staff/staff_home.php index 60cae82..4de3966 100644 --- a/admin/staff/staff_home.php +++ b/admin/staff/staff_home.php @@ -10,7 +10,7 @@ include "../../server/db_connect.php"; // Fetch staff data -$query = "SELECT staff_id, first_name, last_name, email FROM staff WHERE staff_id != 1"; +$query = "SELECT staff_id, first_name, last_name, email, staff_code FROM staff WHERE staff_id != 1"; $stmt = $conn->prepare($query); $stmt->execute(); $staffData = $stmt->fetchAll(PDO::FETCH_ASSOC); @@ -57,6 +57,7 @@ First Name Last Name Email + Staff Code Actions @@ -68,8 +69,9 @@ + -
+
From 140e92a3efa0a90254c52f0ab6c798e5fea5c10b Mon Sep 17 00:00:00 2001 From: James Date: Thu, 23 Jan 2025 23:55:27 +0000 Subject: [PATCH 20/86] added: search by year group --- bigtable/bigtable.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index e2173ed..c957c20 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -32,7 +32,7 @@ type="text" name="search" class="search_bar" - placeholder="Search by student name, medication, or brand" + placeholder="Search by student name, medication, brand, or year group" value="" > @@ -79,7 +79,7 @@ class="search_bar" INNER JOIN brand ON takes.brand_id = brand.brand_id INNER JOIN students ON takes.student_id = students.student_id WHERE CONCAT(students.first_name, ' ', students.last_name) LIKE :search - OR med.med_name LIKE :search OR brand.brand_name LIKE :search"; + OR med.med_name LIKE :search OR brand.brand_name LIKE :search OR students.year LIKE :search"; $total_stmt = $conn->prepare($total_sql); $search_param = '%' . $search_term . '%'; $total_stmt->bindParam(':search', $search_param, PDO::PARAM_STR); @@ -95,7 +95,7 @@ class="search_bar" INNER JOIN brand ON takes.brand_id = brand.brand_id INNER JOIN students ON takes.student_id = students.student_id WHERE CONCAT(students.first_name, ' ', students.last_name) LIKE :search - OR med.med_name LIKE :search OR brand.brand_name LIKE :search + OR med.med_name LIKE :search OR brand.brand_name LIKE :search OR students.year LIKE :search LIMIT :limit OFFSET :offset"; $stmt = $conn->prepare($sql); @@ -133,10 +133,8 @@ class="search_bar" foreach ($custom_headings as $column => $heading) { $value = $row[$column] ?? ''; if ($column === 'takes_id') { - // Make the ID bold $value = "" . htmlspecialchars($value, ENT_QUOTES) . ""; } elseif ($column === 'exp_date' && is_numeric($value)) { - // Format expiry date $value = date('d/m/y', $value); } echo "" . $value . ""; @@ -171,7 +169,6 @@ class="search_bar" "; echo ""; } - echo ""; } else { From 25750cf52854c29426ca2d80ad2a80081d038624 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 25 Jan 2025 19:48:19 +0000 Subject: [PATCH 21/86] moved audit-log to the server folder with other functions --- insert_data/export_brands.php | 2 +- insert_data/export_meds.php | 2 +- insert_data/export_students.php | 2 +- insert_data/process_csv.php | 2 +- insert_data/upload_single.php | 2 +- {audit-log => server}/audit-log.php | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename {audit-log => server}/audit-log.php (100%) diff --git a/insert_data/export_brands.php b/insert_data/export_brands.php index 1a74532..edf9673 100644 --- a/insert_data/export_brands.php +++ b/insert_data/export_brands.php @@ -1,7 +1,7 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); diff --git a/insert_data/export_meds.php b/insert_data/export_meds.php index b4612a8..a2b9a5e 100644 --- a/insert_data/export_meds.php +++ b/insert_data/export_meds.php @@ -1,7 +1,7 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); diff --git a/insert_data/export_students.php b/insert_data/export_students.php index d97f266..73c3dc2 100644 --- a/insert_data/export_students.php +++ b/insert_data/export_students.php @@ -1,7 +1,7 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); diff --git a/insert_data/process_csv.php b/insert_data/process_csv.php index 60a74a4..46a5ed0 100644 --- a/insert_data/process_csv.php +++ b/insert_data/process_csv.php @@ -31,7 +31,7 @@ Date: Sat, 25 Jan 2025 20:03:45 +0000 Subject: [PATCH 22/86] Update database.sql --- database/database.sql | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/database/database.sql b/database/database.sql index 9c967e9..18f466e 100644 --- a/database/database.sql +++ b/database/database.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 --- Generation Time: Jan 22, 2025 at 07:25 PM +-- Generation Time: Jan 25, 2025 at 08:03 PM -- Server version: 8.0.30 -- PHP Version: 8.1.10 @@ -20,6 +20,8 @@ SET time_zone = "+00:00"; -- -- Database: `utcl-mts` -- +CREATE DATABASE IF NOT EXISTS `utcl-mts` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci; +USE `utcl-mts`; -- -------------------------------------------------------- @@ -30,7 +32,7 @@ SET time_zone = "+00:00"; CREATE TABLE `administer` ( `adminster_id` int NOT NULL, `takes_id` int NOT NULL, - `staff_code` text COLLATE utf8mb4_general_ci NOT NULL, + `staff_code` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `date_time` int NOT NULL, `dose_given` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -44,7 +46,7 @@ CREATE TABLE `administer` ( CREATE TABLE `audit_logs` ( `audit_id` int UNSIGNED NOT NULL, `staff_id` int NOT NULL, - `act` text COLLATE utf8mb4_general_ci NOT NULL, + `act` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `date_time` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -56,7 +58,7 @@ CREATE TABLE `audit_logs` ( CREATE TABLE `brand` ( `brand_id` int UNSIGNED NOT NULL, - `brand_name` text COLLATE utf8mb4_general_ci NOT NULL + `brand_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- @@ -125,7 +127,7 @@ DELIMITER ; CREATE TABLE `med` ( `med_id` int UNSIGNED NOT NULL, - `med_name` text COLLATE utf8mb4_general_ci NOT NULL + `med_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- @@ -189,8 +191,8 @@ DELIMITER ; CREATE TABLE `notes` ( `note_id` int NOT NULL, `takes_id` int NOT NULL, - `staff_code` text COLLATE utf8mb4_general_ci NOT NULL, - `content` text COLLATE utf8mb4_general_ci NOT NULL, + `staff_code` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -212,12 +214,12 @@ INSERT INTO `notes` (`note_id`, `takes_id`, `staff_code`, `content`, `created_at CREATE TABLE `staff` ( `staff_id` int UNSIGNED NOT NULL, - `first_name` text COLLATE utf8mb4_general_ci NOT NULL, - `last_name` text COLLATE utf8mb4_general_ci NOT NULL, - `email` text COLLATE utf8mb4_general_ci NOT NULL, - `staff_code` text COLLATE utf8mb4_general_ci NOT NULL, - `password` text COLLATE utf8mb4_general_ci NOT NULL, - `group` text COLLATE utf8mb4_general_ci NOT NULL + `first_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `last_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `email` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `staff_code` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `password` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `group` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- @@ -236,9 +238,9 @@ INSERT INTO `staff` (`staff_id`, `first_name`, `last_name`, `email`, `staff_code CREATE TABLE `students` ( `student_id` int UNSIGNED NOT NULL, - `first_name` text COLLATE utf8mb4_general_ci NOT NULL, - `last_name` text COLLATE utf8mb4_general_ci NOT NULL, - `year` text COLLATE utf8mb4_general_ci NOT NULL + `first_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `last_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `year` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- @@ -313,7 +315,7 @@ CREATE TABLE `takes` ( `current_dose` int NOT NULL, `min_dose` int NOT NULL, `max_dose` int NOT NULL, - `strength` text COLLATE utf8mb4_general_ci NOT NULL, + `strength` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, `archived` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -386,7 +388,7 @@ INSERT INTO `takes` (`takes_id`, `student_id`, `med_id`, `brand_id`, `exp_date`, CREATE TABLE `whole_log` ( `whole_log_id` int NOT NULL, `whole_school_id` int NOT NULL, - `notes` text COLLATE utf8mb4_general_ci NOT NULL, + `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `date_time` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -398,10 +400,10 @@ CREATE TABLE `whole_log` ( CREATE TABLE `whole_school` ( `whole_school_id` int NOT NULL, - `name` text COLLATE utf8mb4_general_ci NOT NULL, + `name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `exp_date` int NOT NULL, `amount_left` int NOT NULL, - `notes` text COLLATE utf8mb4_general_ci NOT NULL, + `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `archived` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; From 5543976251fb7505caf516fa10b2e14a83614dd8 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 25 Jan 2025 22:02:01 +0000 Subject: [PATCH 23/86] added: decrement dose prompt to check amount --- assets/style/style.css | 26 +++++++++++++ bigtable/bigtable.php | 87 ++++++++++++++++++++++++++---------------- bigtable/doses.php | 18 ++++++--- 3 files changed, 93 insertions(+), 38 deletions(-) diff --git a/assets/style/style.css b/assets/style/style.css index 01537d4..9f18745 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -600,4 +600,30 @@ select option { .action-buttons{ width: 500px; +} + +.popup { + display: none; + position: fixed; + z-index: 1000; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: rgba(0,0,0,0.4); +} +.popup-content { + background-color: #fefefe; + margin: 15% auto; + padding: 20px; + border: 1px solid #888; + width: 600px; +} +.popup-close { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; + cursor: pointer; } \ No newline at end of file diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index c957c20..77b1e28 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -49,30 +49,6 @@ class="search_bar" $start_from = ($page - 1) * $results_per_page; $search_term = trim($_GET['search'] ?? ''); - if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['decrement'])) { - $takes_id = intval($_POST['takes_id']); - - try { - $check_sql = "SELECT current_dose FROM takes WHERE takes_id = :takes_id"; - $check_stmt = $conn->prepare($check_sql); - $check_stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); - $check_stmt->execute(); - $result = $check_stmt->fetch(PDO::FETCH_ASSOC); - - if ($result && $result['current_dose'] > 0) { - $update_sql = "UPDATE takes SET current_dose = current_dose - 1 WHERE takes_id = :takes_id"; - $update_stmt = $conn->prepare($update_sql); - $update_stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); - $update_stmt->execute(); - echo "

Dose decremented successfully.

"; - } else { - echo "

Cannot decrement. Dose is already at zero.

"; - } - } catch (PDOException $e) { - die("

Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES) . "

"); - } - } - try { $total_sql = "SELECT COUNT(*) AS total_records FROM takes INNER JOIN med ON takes.med_id = med.med_id @@ -117,7 +93,7 @@ class="search_bar" ]; $results = $stmt->fetchAll(PDO::FETCH_ASSOC); - echo "
"; + echo "
"; if ($results) { echo ""; echo ""; @@ -141,12 +117,12 @@ class="search_bar" } echo ""; echo ""; } - // If the student is in Year 13, show the archive option - if ($student['year'] == 13) { + // Add logic for Year 11 and Year 12 students + if ($student['year'] == 11 || $student['year'] == 12) { + echo ""; + } elseif ($student['year'] == 13) { echo "
-
- - -
+
@@ -197,6 +173,53 @@ class="search_bar" die("Database error: " . htmlspecialchars($e->getMessage(), ENT_QUOTES)); } ?> + + + + + - + \ No newline at end of file diff --git a/bigtable/doses.php b/bigtable/doses.php index c8c680f..452b226 100644 --- a/bigtable/doses.php +++ b/bigtable/doses.php @@ -11,25 +11,31 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $take_id = intval($_POST['take_id']); // Get the `take_id` from the form + $decrement_amount = intval($_POST['decrement_amount']); // Get the decrement amount try { // Check the current doses - $check_sql = "SELECT doses FROM takes WHERE take_id = :take_id"; + $check_sql = "SELECT current_dose FROM takes WHERE takes_id = :take_id"; $stmt = $conn->prepare($check_sql); $stmt->bindParam(':take_id', $take_id, PDO::PARAM_INT); $stmt->execute(); $result = $stmt->fetch(PDO::FETCH_ASSOC); - if ($result && $result['doses'] > 0) { + if ($result && $result['current_dose'] >= $decrement_amount) { // Decrement the dose count - $update_sql = "UPDATE takes SET doses = doses - 1 WHERE take_id = :take_id"; + $update_sql = "UPDATE takes SET current_dose = current_dose - :decrement_amount WHERE takes_id = :take_id"; $update_stmt = $conn->prepare($update_sql); $update_stmt->bindParam(':take_id', $take_id, PDO::PARAM_INT); + $update_stmt->bindParam(':decrement_amount', $decrement_amount, PDO::PARAM_INT); $update_stmt->execute(); - header("Location: bigtable.php"); // Redirect back to the main page + + // Redirect back to the main page with a success message + header("Location: bigtable.php?success=1"); exit; } else { - echo "Cannot decrement: doses are already zero."; + // Redirect back with an error message + header("Location: bigtable.php?error=1"); + exit; } } catch (PDOException $e) { die("Database error: " . $e->getMessage()); @@ -37,4 +43,4 @@ } else { die("Invalid request."); } -?> +?> \ No newline at end of file From c0ca3b64852c988672e519d5a0db4fbd5c24fc4f Mon Sep 17 00:00:00 2001 From: James Date: Sat, 25 Jan 2025 22:10:53 +0000 Subject: [PATCH 24/86] Update bigtable.php --- bigtable/bigtable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigtable/bigtable.php b/bigtable/bigtable.php index 77b1e28..e8e571b 100644 --- a/bigtable/bigtable.php +++ b/bigtable/bigtable.php @@ -182,7 +182,7 @@ class="search_bar"
Enter number of doses to decrement
-
Example: Joe
+
Example: 3

From ef18274e723d09306dc31fe6a8f21a2c20b162f1 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 25 Jan 2025 22:44:22 +0000 Subject: [PATCH 25/86] refactor entire whole school Add dual navbar system and moved content to different pages --- assets/style/style.css | 3 +- dashboard/dashboard.php | 18 +++- ...le_school_table.php => active_records.php} | 81 +++++++----------- whole_school/archive_records.php | 83 +++++++++++++++++++ whole_school/whole_school_form.php | 21 +++-- 5 files changed, 149 insertions(+), 57 deletions(-) rename whole_school/{whole_school_table.php => active_records.php} (63%) create mode 100644 whole_school/archive_records.php diff --git a/assets/style/style.css b/assets/style/style.css index 9f18745..a0eb435 100644 --- a/assets/style/style.css +++ b/assets/style/style.css @@ -102,6 +102,7 @@ .navbar_li a.active { color: #003078; background: #f3f2f1; + font-weight: bolder; } .full_page_styling{ @@ -321,7 +322,7 @@ select option { .temp_date_field{ padding: 10px; font-family: Roboto; - font-size: 16px; + font-size: 20px; border: solid #0b0b0c; } diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index add8638..70c913c 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -10,7 +10,6 @@ // Include the database connection file include "../server/db_connect.php"; -include "../server/main_navbar.php"; // Time and categorization arrays $time = time(); @@ -130,6 +129,23 @@ Hours Tracking - Dashboard

diff --git a/whole_school/whole_school_table.php b/whole_school/active_records.php similarity index 63% rename from whole_school/whole_school_table.php rename to whole_school/active_records.php index 61374b9..cfc153c 100644 --- a/whole_school/whole_school_table.php +++ b/whole_school/active_records.php @@ -27,9 +27,8 @@ - - + @@ -41,11 +40,19 @@
-

+
- - - + + +
@@ -53,15 +60,25 @@ query($sql); $results = $stmt->fetchAll(PDO::FETCH_ASSOC); if ($results) { echo ""; echo ""; + // Define custom headings + $customHeadings = [ + 'whole_school_id' => 'Record ID', + 'name' => 'Item Name', + 'exp_date' => 'Expiry Date', + 'amount_left' => 'Amount Left', + 'notes' => 'Notes', + ]; + + // Print custom headings based on fetched columns foreach (array_keys($results[0]) as $header) { - echo ""; + echo ""; } echo ""; echo ""; @@ -72,18 +89,18 @@ if ($key === 'exp_date' && is_numeric($value)) { $value = date('d/m/y', $value); } - echo ""; + echo ""; } echo ""; + "; echo ""; } echo "
" . htmlspecialchars($header) . "" . htmlspecialchars($customHeadings[$header] ?? $header) . "Actions
" . htmlspecialchars($value) . "" . htmlspecialchars($value) . " - +
- +
-
"; @@ -94,44 +111,8 @@ echo "

Database error: " . htmlspecialchars($e->getMessage()) . "

"; } ?> - - +
-
-

Archived Records

- query($sql); - $archived_results = $stmt->fetchAll(PDO::FETCH_ASSOC); - - if ($archived_results) { - echo ""; - echo ""; - foreach (array_keys($archived_results[0]) as $header) { - echo ""; - } - echo ""; - - foreach ($archived_results as $row) { - echo ""; - foreach ($row as $key => $value) { - if ($key === 'exp_date' && is_numeric($value)) { - $value = date('d/m/y', $value); - } - echo ""; - } - echo ""; - } - echo "
" . htmlspecialchars($header) . "
" . htmlspecialchars($value) . "
"; - } else { - echo "

No archived records found.

"; - } - } catch (PDOException $e) { - echo "

Database error: " . htmlspecialchars($e->getMessage()) . "

"; - } - ?> -
+ diff --git a/whole_school/archive_records.php b/whole_school/archive_records.php new file mode 100644 index 0000000..cf5291b --- /dev/null +++ b/whole_school/archive_records.php @@ -0,0 +1,83 @@ + + + + +Hours Tracking - Create Whole School Item +
+ +
+ + + +
+

Archived Records

+ query($sql); + $archived_results = $stmt->fetchAll(PDO::FETCH_ASSOC); + + if ($archived_results) { + echo ""; + echo ""; + + $customHeadings = [ + 'whole_school_id' => 'Record ID', + 'name' => 'Item Name', + 'exp_date' => 'Expiry Date', + 'amount_left' => 'Amount Left', + 'notes' => 'Notes', + ]; + + foreach (array_keys($archived_results[0]) as $header) { + echo ""; + } + echo ""; + + foreach ($archived_results as $row) { + echo ""; + foreach ($row as $key => $value) { + if ($key === 'exp_date' && is_numeric($value)) { + $value = date('d/m/y', $value); + } + echo ""; + } + echo ""; + } + echo "
" . htmlspecialchars($customHeadings[$header] ?? $header) . "
" . htmlspecialchars($value) . "
"; + } else { + echo "

No archived records found.

"; + } + } catch (PDOException $e) { + echo "

Database error: " . htmlspecialchars($e->getMessage()) . "

"; + } + ?> \ No newline at end of file diff --git a/whole_school/whole_school_form.php b/whole_school/whole_school_form.php index d2480cb..fda7ec8 100644 --- a/whole_school/whole_school_form.php +++ b/whole_school/whole_school_form.php @@ -11,7 +11,8 @@ // Validate inputs if (!empty($name) && !empty($exp_date_input) && is_numeric($amount_left) && intval($amount_left) >= 0) { - $exp_date = strtotime($exp_date_input); // Convert date to timestamp + // Convert date to UNIX epoch timestamp at start of day + $exp_date = strtotime('today', strtotime($exp_date_input)); // Ensure the date conversion is successful if ($exp_date) { @@ -43,13 +44,12 @@ Hours Tracking - Create Whole School Item
-
+ +
+ +
@@ -79,7 +90,7 @@

Enter date:
Example: 01/12/2025
- +

Enter amount:
Example: 12
@@ -93,4 +104,4 @@
- + \ No newline at end of file From e79d52305dd4653b1be24591c5bdf43f8974c800 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 25 Jan 2025 22:55:33 +0000 Subject: [PATCH 26/86] added: dashboard navbar --- dashboard/create_notes.php | 3 +- dashboard/dashboard.php | 19 +--- dashboard/info.php | 92 ------------------- dashboard/view_notes.php | 2 +- .../{main_navbar.php => navbar/dashboard.php} | 5 +- 5 files changed, 6 insertions(+), 115 deletions(-) delete mode 100644 dashboard/info.php rename server/{main_navbar.php => navbar/dashboard.php} (74%) diff --git a/dashboard/create_notes.php b/dashboard/create_notes.php index 8eb8660..e773c79 100644 --- a/dashboard/create_notes.php +++ b/dashboard/create_notes.php @@ -2,6 +2,7 @@ session_start(); // Start the session to access session variables include "../server/db_connect.php"; +include "../server/navbar/dashboard.php"; // Get student_id and takes_id from the GET request $student_id = isset($_GET['student_id']) ? intval($_GET['student_id']) : null; @@ -52,7 +53,7 @@ } } -include "../server/main_navbar.php"; + ?> diff --git a/dashboard/dashboard.php b/dashboard/dashboard.php index 70c913c..e0da98f 100644 --- a/dashboard/dashboard.php +++ b/dashboard/dashboard.php @@ -10,6 +10,7 @@ // Include the database connection file include "../server/db_connect.php"; +include "../server/navbar/dashboard.php"; // Time and categorization arrays $time = time(); @@ -128,24 +129,6 @@ Hours Tracking - Dashboard -

diff --git a/dashboard/info.php b/dashboard/info.php deleted file mode 100644 index ddc5616..0000000 --- a/dashboard/info.php +++ /dev/null @@ -1,92 +0,0 @@ -prepare($sql); - $stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); - $stmt->execute(); - $notes = $stmt->fetch(PDO::FETCH_ASSOC)['notes'] ?? ''; -} else { - die("Invalid request."); -} - -// Handle form submission to update notes -if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['updated_notes'])) { - $updated_notes = $_POST['updated_notes']; - - $update_sql = "UPDATE takes SET notes = :notes WHERE takes_id = :takes_id"; - $update_stmt = $conn->prepare($update_sql); - $update_stmt->bindParam(':notes', $updated_notes, PDO::PARAM_STR); - $update_stmt->bindParam(':takes_id', $takes_id, PDO::PARAM_INT); - - if ($update_stmt->execute()) { - $message = "Notes updated successfully!"; - $notes = $updated_notes; // Update notes for display - } else { - $message = "Error updating notes. Please try again."; - } -} -?> - - - - - Hours Tracking - Edit Info - - - -
- -

Edit Notes

- - - -

- - - -
- -
Provide and notes about the student
-
This is not required
- -

- -
- -
- < Back -
- - diff --git a/dashboard/view_notes.php b/dashboard/view_notes.php index 35ff76a..50e667b 100644 --- a/dashboard/view_notes.php +++ b/dashboard/view_notes.php @@ -8,7 +8,7 @@
" . htmlspecialchars($value) . " +
+ + +
+
Archive @@ -115,7 +122,7 @@ $archive_ids = $_POST['archive_ids']; try { - // Archive the students by updating their status (you can add a field in the database for archived status) + // Archive the students by updating their status $archive_sql = "UPDATE students SET archived = 1 WHERE student_id = :student_id"; $archive_stmt = $conn->prepare($archive_sql); diff --git a/edit_details/student_table.php b/edit_details/student_table.php index 2b9e410..0723a93 100644 --- a/edit_details/student_table.php +++ b/edit_details/student_table.php @@ -62,7 +62,7 @@
From 3f321a1dd0749626d81b5e6846e6824429ee7b2c Mon Sep 17 00:00:00 2001 From: James Date: Sun, 26 Jan 2025 14:21:29 +0000 Subject: [PATCH 32/86] added: log_med navbar --- log-new-med/log_new_med.php | 20 +------------------- server/navbar/add_new_med.php | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 server/navbar/add_new_med.php diff --git a/log-new-med/log_new_med.php b/log-new-med/log_new_med.php index e202611..42b1d69 100644 --- a/log-new-med/log_new_med.php +++ b/log-new-med/log_new_med.php @@ -5,6 +5,7 @@ // Include the database connection file include "../server/db_connect.php"; + include "../server/navbar/add_new_med.php"; // Function to check if the request is coming from the dashboard function isFromDashboard() { @@ -17,25 +18,6 @@ function isFromDashboard() { Hours Tracking - Dashboard
-

Add a new med

diff --git a/server/navbar/add_new_med.php b/server/navbar/add_new_med.php new file mode 100644 index 0000000..874c8c7 --- /dev/null +++ b/server/navbar/add_new_med.php @@ -0,0 +1,19 @@ + + + \ No newline at end of file From 1b01a49c5e5d9d204d291982810ddf8d07135e4c Mon Sep 17 00:00:00 2001 From: James Date: Sun, 26 Jan 2025 15:03:46 +0000 Subject: [PATCH 33/86] refactor staff management --- {admin/add => add}/add_new_brand.php | 0 {admin/add => add}/add_new_med.php | 0 admin/admin_dashboard.php | 40 +++++++------------------ admin/{staff => }/change_password.php | 27 ++++------------- admin/{staff => }/create_user_data.php | 4 +-- admin/{staff => }/create_user_form.php | 34 +++++++++------------ admin/{staff => }/delete_user.php | 4 +-- admin/{staff => }/edit_user.php | 8 ++--- admin/{staff => }/staff_home.php | 41 ++++++++------------------ assets/style/style.css | 24 +++++++++++++++ server/navbar/admin_dashboard.php | 19 ++++++++++++ 11 files changed, 94 insertions(+), 107 deletions(-) rename {admin/add => add}/add_new_brand.php (100%) rename {admin/add => add}/add_new_med.php (100%) rename admin/{staff => }/change_password.php (69%) rename admin/{staff => }/create_user_data.php (95%) rename admin/{staff => }/create_user_form.php (59%) rename admin/{staff => }/delete_user.php (90%) rename admin/{staff => }/edit_user.php (96%) rename admin/{staff => }/staff_home.php (64%) create mode 100644 server/navbar/admin_dashboard.php diff --git a/admin/add/add_new_brand.php b/add/add_new_brand.php similarity index 100% rename from admin/add/add_new_brand.php rename to add/add_new_brand.php diff --git a/admin/add/add_new_med.php b/add/add_new_med.php similarity index 100% rename from admin/add/add_new_med.php rename to add/add_new_med.php diff --git a/admin/admin_dashboard.php b/admin/admin_dashboard.php index 39e0d45..fd6395e 100644 --- a/admin/admin_dashboard.php +++ b/admin/admin_dashboard.php @@ -6,6 +6,9 @@ header("Location: ../index.html"); exit(); } + +include "../server/navbar/admin_dashboard.php"; + ?> @@ -14,33 +17,12 @@ Hours Tracking - Admin Home - -
+ - -

- - - -

- - - \ No newline at end of file +
+

Administrator Dashboard

+ \ No newline at end of file diff --git a/admin/staff/change_password.php b/admin/change_password.php similarity index 69% rename from admin/staff/change_password.php rename to admin/change_password.php index 9dfb18a..3d93ae2 100644 --- a/admin/staff/change_password.php +++ b/admin/change_password.php @@ -4,11 +4,13 @@ // Check for valid session and cookie if (!isset($_SESSION['ssnlogin']) || !isset($_COOKIE['cookies_and_cream'])) { - header("Location: ../../index.html"); + header("Location: ../index.html"); exit(); } -include "../../server/db_connect.php"; +include "../server/db_connect.php"; +include "../server/navbar/admin_dashboard.php"; + try { if ($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['staff_id'])) { @@ -66,28 +68,9 @@ Hours Tracking - Admin Home - + -

Change Password

diff --git a/admin/staff/create_user_data.php b/admin/create_user_data.php similarity index 95% rename from admin/staff/create_user_data.php rename to admin/create_user_data.php index 22f587a..e73e59d 100644 --- a/admin/staff/create_user_data.php +++ b/admin/create_user_data.php @@ -3,11 +3,11 @@ // Check for valid session and cookie if (!isset($_SESSION['ssnlogin']) || !isset($_COOKIE['cookies_and_cream'])) { - header("Location: ../../index.html"); + header("Location: ../index.html"); exit(); } -include "../../server/db_connect.php"; +include "../server/db_connect.php"; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; diff --git a/admin/staff/create_user_form.php b/admin/create_user_form.php similarity index 59% rename from admin/staff/create_user_form.php rename to admin/create_user_form.php index 07ff645..1c51661 100644 --- a/admin/staff/create_user_form.php +++ b/admin/create_user_form.php @@ -3,38 +3,32 @@ // Check for valid session and cookie if (!isset($_SESSION['ssnlogin']) || !isset($_COOKIE['cookies_and_cream'])) { - header("Location: ../../index.html"); + header("Location: ../index.html"); exit(); } +include "../server/navbar/admin_dashboard.php"; + ?> + Hours Tracking - Admin Home - + +
+ + +

Create a new user

diff --git a/admin/staff/delete_user.php b/admin/delete_user.php similarity index 90% rename from admin/staff/delete_user.php rename to admin/delete_user.php index f33c1ce..397f871 100644 --- a/admin/staff/delete_user.php +++ b/admin/delete_user.php @@ -3,11 +3,11 @@ // Check for valid session and cookie if (!isset($_SESSION['ssnlogin']) || !isset($_COOKIE['cookies_and_cream'])) { - header("Location: ../../index.html"); + header("Location: ../index.html"); exit(); } -include "../../server/db_connect.php"; +include "../server/db_connect.php"; if ($_SERVER["REQUEST_METHOD"] === "POST") { try { diff --git a/admin/staff/edit_user.php b/admin/edit_user.php similarity index 96% rename from admin/staff/edit_user.php rename to admin/edit_user.php index d9c4790..a227797 100644 --- a/admin/staff/edit_user.php +++ b/admin/edit_user.php @@ -3,12 +3,12 @@ // Check for valid session and cookie if (!isset($_SESSION['ssnlogin']) || !isset($_COOKIE['cookies_and_cream'])) { - header("Location: ../../index.html"); + header("Location: ../index.html"); exit(); } -include "../../server/db_connect.php"; -include "../../server/main_navbar.php"; +include "../server/db_connect.php"; +include "../server/navbar/admin_dashboard.php"; try { @@ -61,7 +61,7 @@ } ?> - + Hours Tracking - Dashboard
diff --git a/admin/staff/staff_home.php b/admin/staff_home.php similarity index 64% rename from admin/staff/staff_home.php rename to admin/staff_home.php index 4de3966..0a2c80d 100644 --- a/admin/staff/staff_home.php +++ b/admin/staff_home.php @@ -7,7 +7,8 @@ exit(); } -include "../../server/db_connect.php"; +include "../server/db_connect.php"; +include "../server/navbar/admin_dashboard.php"; // Fetch staff data $query = "SELECT staff_id, first_name, last_name, email, staff_code FROM staff WHERE staff_id != 1"; @@ -20,36 +21,20 @@ Hours Tracking - Admin Home - + - +
+

Staff Management

- - - - -

- @@ -95,7 +80,7 @@


- < Go Back + < Go Back + + \ No newline at end of file From 46162e73e7f3dda8c0435f54a3876a445327e067 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 26 Jan 2025 18:26:31 +0000 Subject: [PATCH 34/86] added: vendor for compose --- composer.json | 5 + composer.lock | 598 ++ vendor/autoload.php | 25 + vendor/composer/ClassLoader.php | 579 ++ vendor/composer/InstalledVersions.php | 378 ++ vendor/composer/LICENSE | 21 + vendor/composer/autoload_classmap.php | 10 + vendor/composer/autoload_namespaces.php | 9 + vendor/composer/autoload_psr4.php | 17 + vendor/composer/autoload_real.php | 38 + vendor/composer/autoload_static.php | 81 + vendor/composer/installed.json | 612 ++ vendor/composer/installed.php | 104 + vendor/composer/pcre/LICENSE | 19 + vendor/composer/pcre/README.md | 189 + vendor/composer/pcre/composer.json | 54 + vendor/composer/pcre/extension.neon | 22 + vendor/composer/pcre/src/MatchAllResult.php | 46 + .../pcre/src/MatchAllStrictGroupsResult.php | 46 + .../pcre/src/MatchAllWithOffsetsResult.php | 48 + vendor/composer/pcre/src/MatchResult.php | 39 + .../pcre/src/MatchStrictGroupsResult.php | 39 + .../pcre/src/MatchWithOffsetsResult.php | 41 + .../src/PHPStan/InvalidRegexPatternRule.php | 142 + .../pcre/src/PHPStan/PregMatchFlags.php | 70 + .../PregMatchParameterOutTypeExtension.php | 65 + .../PregMatchTypeSpecifyingExtension.php | 119 + ...regReplaceCallbackClosureTypeExtension.php | 91 + .../PHPStan/UnsafeStrictGroupsCallRule.php | 112 + vendor/composer/pcre/src/PcreException.php | 55 + vendor/composer/pcre/src/Preg.php | 430 ++ vendor/composer/pcre/src/Regex.php | 176 + vendor/composer/pcre/src/ReplaceResult.php | 43 + .../pcre/src/UnexpectedNullMatchException.php | 20 + vendor/composer/platform_check.php | 30 + vendor/maennchen/zipstream-php/.editorconfig | 22 + vendor/maennchen/zipstream-php/.gitattributes | 6 + .../zipstream-php/.github/CODE_OF_CONDUCT.md | 132 + .../zipstream-php/.github/CONTRIBUTING.md | 139 + .../zipstream-php/.github/FUNDING.yml | 1 + .../.github/ISSUE_TEMPLATE/BUG.yml | 71 + .../.github/ISSUE_TEMPLATE/FEATURE.yml | 11 + .../.github/PULL_REQUEST_TEMPLATE.md | 6 + .../PULL_REQUEST_TEMPLATE/FAILING_TEST.md | 13 + .../.github/PULL_REQUEST_TEMPLATE/FIX.md | 13 + .../PULL_REQUEST_TEMPLATE/IMPROVEMENT.md | 9 + .../PULL_REQUEST_TEMPLATE/NEW_FEATURE.md | 9 + .../zipstream-php/.github/SECURITY.md | 22 + .../zipstream-php/.github/dependabot.yml | 13 + .../zipstream-php/.github/scorecard.yml | 14 + .../.github/workflows/branch_main.yml | 24 + .../.github/workflows/part_dependabot.yml | 30 + .../.github/workflows/part_docs.yml | 51 + .../.github/workflows/part_release.yml | 94 + .../.github/workflows/part_test.yml | 183 + .../zipstream-php/.github/workflows/pr.yml | 50 + .../.github/workflows/scorecard.yml | 78 + .../.github/workflows/tag-beta.yml | 29 + .../.github/workflows/tag-stable.yml | 55 + vendor/maennchen/zipstream-php/.gitignore | 12 + .../maennchen/zipstream-php/.phive/phars.xml | 4 + .../zipstream-php/.php-cs-fixer.dist.php | 70 + .../.phpdoc/template/base.html.twig | 15 + vendor/maennchen/zipstream-php/.tool-versions | 1 + vendor/maennchen/zipstream-php/LICENSE | 24 + vendor/maennchen/zipstream-php/README.md | 154 + vendor/maennchen/zipstream-php/composer.json | 88 + .../zipstream-php/guides/ContentLength.rst | 47 + .../zipstream-php/guides/FlySystem.rst | 34 + .../maennchen/zipstream-php/guides/Nginx.rst | 16 + .../zipstream-php/guides/Options.rst | 66 + .../zipstream-php/guides/PSR7Streams.rst | 21 + .../zipstream-php/guides/StreamOutput.rst | 39 + .../zipstream-php/guides/Symfony.rst | 130 + .../zipstream-php/guides/Varnish.rst | 22 + .../maennchen/zipstream-php/guides/index.rst | 126 + .../maennchen/zipstream-php/phpdoc.dist.xml | 39 + .../maennchen/zipstream-php/phpunit.xml.dist | 15 + vendor/maennchen/zipstream-php/psalm.xml | 25 + vendor/maennchen/zipstream-php/results.sarif | 1 + .../src/CentralDirectoryFileHeader.php | 52 + .../zipstream-php/src/CompressionMethod.php | 106 + .../zipstream-php/src/DataDescriptor.php | 26 + .../src/EndOfCentralDirectory.php | 35 + .../maennchen/zipstream-php/src/Exception.php | 7 + .../Exception/DosTimeOverflowException.php | 23 + .../src/Exception/FileNotFoundException.php | 22 + .../Exception/FileNotReadableException.php | 22 + .../Exception/FileSizeIncorrectException.php | 23 + .../src/Exception/OverflowException.php | 21 + .../src/Exception/ResourceActionException.php | 29 + .../SimulationFileUnknownException.php | 19 + .../Exception/StreamNotReadableException.php | 21 + .../Exception/StreamNotSeekableException.php | 22 + vendor/maennchen/zipstream-php/src/File.php | 420 ++ .../src/GeneralPurposeBitFlag.php | 89 + .../zipstream-php/src/LocalFileHeader.php | 40 + .../zipstream-php/src/OperationMode.php | 35 + .../maennchen/zipstream-php/src/PackField.php | 56 + vendor/maennchen/zipstream-php/src/Time.php | 39 + .../maennchen/zipstream-php/src/Version.php | 12 + .../src/Zip64/DataDescriptor.php | 28 + .../src/Zip64/EndOfCentralDirectory.php | 43 + .../Zip64/EndOfCentralDirectoryLocator.php | 29 + .../Zip64/ExtendedInformationExtraField.php | 45 + .../maennchen/zipstream-php/src/ZipStream.php | 865 +++ .../src/Zs/ExtendedInformationExtraField.php | 23 + .../zipstream-php/test/Assertions.php | 49 + .../test/CentralDirectoryFileHeaderTest.php | 60 + .../zipstream-php/test/DataDescriptorTest.php | 26 + .../test/EndOfCentralDirectoryTest.php | 35 + .../zipstream-php/test/EndlessCycleStream.php | 104 + .../test/FaultInjectionResource.php | 141 + .../test/LocalFileHeaderTest.php | 47 + .../zipstream-php/test/PackFieldTest.php | 42 + .../zipstream-php/test/ResourceStream.php | 159 + .../maennchen/zipstream-php/test/Tempfile.php | 42 + .../maennchen/zipstream-php/test/TimeTest.php | 44 + vendor/maennchen/zipstream-php/test/Util.php | 127 + .../test/Zip64/DataDescriptorTest.php | 28 + .../EndOfCentralDirectoryLocatorTest.php | 28 + .../test/Zip64/EndOfCentralDirectoryTest.php | 41 + .../ExtendedInformationExtraFieldTest.php | 42 + .../zipstream-php/test/ZipStreamTest.php | 1195 ++++ .../Zs/ExtendedInformationExtraFieldTest.php | 22 + .../zipstream-php/test/bootstrap.php | 7 + .../complex/.github/workflows/main.yml | 153 + vendor/markbaker/complex/README.md | 173 + .../markbaker/complex/classes/src/Complex.php | 388 ++ .../complex/classes/src/Exception.php | 13 + .../complex/classes/src/Functions.php | 823 +++ .../complex/classes/src/Operations.php | 210 + vendor/markbaker/complex/composer.json | 40 + .../complex/examples/complexTest.php | 154 + .../complex/examples/testFunctions.php | 52 + .../complex/examples/testOperations.php | 35 + vendor/markbaker/complex/license.md | 25 + .../matrix/.github/workflows/main.yaml | 124 + vendor/markbaker/matrix/README.md | 215 + vendor/markbaker/matrix/buildPhar.php | 62 + .../markbaker/matrix/classes/src/Builder.php | 70 + .../src/Decomposition/Decomposition.php | 27 + .../matrix/classes/src/Decomposition/LU.php | 260 + .../matrix/classes/src/Decomposition/QR.php | 191 + .../matrix/classes/src/Div0Exception.php | 13 + .../matrix/classes/src/Exception.php | 13 + .../matrix/classes/src/Functions.php | 376 ++ .../markbaker/matrix/classes/src/Matrix.php | 423 ++ .../matrix/classes/src/Operations.php | 157 + .../matrix/classes/src/Operators/Addition.php | 68 + .../classes/src/Operators/DirectSum.php | 64 + .../matrix/classes/src/Operators/Division.php | 35 + .../classes/src/Operators/Multiplication.php | 86 + .../matrix/classes/src/Operators/Operator.php | 78 + .../classes/src/Operators/Subtraction.php | 68 + vendor/markbaker/matrix/composer.json | 52 + vendor/markbaker/matrix/examples/test.php | 33 + vendor/markbaker/matrix/infection.json.dist | 17 + vendor/markbaker/matrix/license.md | 25 + vendor/markbaker/matrix/phpstan.neon | 6 + vendor/phpoffice/phpspreadsheet/CHANGELOG.md | 1815 ++++++ .../phpoffice/phpspreadsheet/CONTRIBUTING.md | 49 + vendor/phpoffice/phpspreadsheet/LICENSE | 21 + vendor/phpoffice/phpspreadsheet/README.md | 70 + vendor/phpoffice/phpspreadsheet/composer.json | 121 + .../Calculation/ArrayEnabled.php | 122 + .../Calculation/BinaryComparison.php | 136 + .../Calculation/Calculation.php | 5798 +++++++++++++++++ .../PhpSpreadsheet/Calculation/Category.php | 22 + .../Calculation/Database/DAverage.php | 44 + .../Calculation/Database/DCount.php | 45 + .../Calculation/Database/DCountA.php | 44 + .../Calculation/Database/DGet.php | 49 + .../Calculation/Database/DMax.php | 45 + .../Calculation/Database/DMin.php | 45 + .../Calculation/Database/DProduct.php | 44 + .../Calculation/Database/DStDev.php | 45 + .../Calculation/Database/DStDevP.php | 45 + .../Calculation/Database/DSum.php | 44 + .../Calculation/Database/DVar.php | 47 + .../Calculation/Database/DVarP.php | 47 + .../Calculation/Database/DatabaseAbstract.php | 177 + .../Calculation/DateTimeExcel/Constants.php | 38 + .../Calculation/DateTimeExcel/Current.php | 60 + .../Calculation/DateTimeExcel/Date.php | 167 + .../Calculation/DateTimeExcel/DateParts.php | 154 + .../Calculation/DateTimeExcel/DateValue.php | 163 + .../Calculation/DateTimeExcel/Days.php | 62 + .../Calculation/DateTimeExcel/Days360.php | 118 + .../Calculation/DateTimeExcel/Difference.php | 153 + .../Calculation/DateTimeExcel/Helpers.php | 287 + .../Calculation/DateTimeExcel/Month.php | 104 + .../Calculation/DateTimeExcel/NetworkDays.php | 119 + .../Calculation/DateTimeExcel/Time.php | 130 + .../Calculation/DateTimeExcel/TimeParts.php | 135 + .../Calculation/DateTimeExcel/TimeValue.php | 80 + .../Calculation/DateTimeExcel/Week.php | 274 + .../Calculation/DateTimeExcel/WorkDay.php | 198 + .../Calculation/DateTimeExcel/YearFrac.php | 124 + .../Engine/ArrayArgumentHelper.php | 188 + .../Engine/ArrayArgumentProcessor.php | 159 + .../Calculation/Engine/BranchPruner.php | 201 + .../Engine/CyclicReferenceStack.php | 65 + .../Calculation/Engine/FormattedNumber.php | 147 + .../Calculation/Engine/Logger.php | 126 + .../Calculation/Engine/Operands/Operand.php | 10 + .../Engine/Operands/StructuredReference.php | 355 + .../Calculation/Engineering/BesselI.php | 141 + .../Calculation/Engineering/BesselJ.php | 176 + .../Calculation/Engineering/BesselK.php | 130 + .../Calculation/Engineering/BesselY.php | 137 + .../Calculation/Engineering/BitWise.php | 247 + .../Calculation/Engineering/Compare.php | 82 + .../Calculation/Engineering/Complex.php | 120 + .../Engineering/ComplexFunctions.php | 592 ++ .../Engineering/ComplexOperations.php | 128 + .../Calculation/Engineering/Constants.php | 11 + .../Calculation/Engineering/ConvertBase.php | 69 + .../Calculation/Engineering/ConvertBinary.php | 163 + .../Engineering/ConvertDecimal.php | 213 + .../Calculation/Engineering/ConvertHex.php | 175 + .../Calculation/Engineering/ConvertOctal.php | 174 + .../Calculation/Engineering/ConvertUOM.php | 679 ++ .../Engineering/EngineeringValidations.php | 27 + .../Calculation/Engineering/Erf.php | 109 + .../Calculation/Engineering/ErfC.php | 77 + .../PhpSpreadsheet/Calculation/Exception.php | 22 + .../Calculation/ExceptionHandler.php | 24 + .../Calculation/Financial/Amortization.php | 213 + .../CashFlow/CashFlowValidations.php | 41 + .../Financial/CashFlow/Constant/Periodic.php | 195 + .../CashFlow/Constant/Periodic/Cumulative.php | 138 + .../CashFlow/Constant/Periodic/Interest.php | 213 + .../Periodic/InterestAndPrincipal.php | 44 + .../CashFlow/Constant/Periodic/Payments.php | 116 + .../Calculation/Financial/CashFlow/Single.php | 107 + .../CashFlow/Variable/NonPeriodic.php | 302 + .../Financial/CashFlow/Variable/Periodic.php | 157 + .../Calculation/Financial/Constants.php | 19 + .../Calculation/Financial/Coupons.php | 407 ++ .../Calculation/Financial/Depreciation.php | 265 + .../Calculation/Financial/Dollar.php | 127 + .../Financial/FinancialValidations.php | 122 + .../Calculation/Financial/Helpers.php | 58 + .../Calculation/Financial/InterestRate.php | 71 + .../Financial/Securities/AccruedInterest.php | 151 + .../Financial/Securities/Price.php | 283 + .../Financial/Securities/Rates.php | 134 + .../Securities/SecurityValidations.php | 32 + .../Financial/Securities/Yields.php | 153 + .../Calculation/Financial/TreasuryBill.php | 146 + .../Calculation/FormulaParser.php | 616 ++ .../Calculation/FormulaToken.php | 131 + .../PhpSpreadsheet/Calculation/Functions.php | 352 + .../Calculation/Information/ErrorValue.php | 72 + .../Calculation/Information/ExcelError.php | 165 + .../Calculation/Information/Value.php | 318 + .../Internal/ExcelArrayPseudoFunctions.php | 103 + .../Calculation/Internal/MakeMatrix.php | 12 + .../Calculation/Internal/WildcardMatch.php | 39 + .../Calculation/Logical/Boolean.php | 36 + .../Calculation/Logical/Conditional.php | 211 + .../Calculation/Logical/Operations.php | 163 + .../Calculation/LookupRef/Address.php | 123 + .../Calculation/LookupRef/ChooseRowsEtc.php | 241 + .../Calculation/LookupRef/ExcelMatch.php | 249 + .../Calculation/LookupRef/Filter.php | 72 + .../Calculation/LookupRef/Formula.php | 42 + .../Calculation/LookupRef/HLookup.php | 121 + .../Calculation/LookupRef/Helpers.php | 74 + .../Calculation/LookupRef/Hyperlink.php | 41 + .../Calculation/LookupRef/Indirect.php | 128 + .../Calculation/LookupRef/Lookup.php | 105 + .../Calculation/LookupRef/LookupBase.php | 64 + .../LookupRef/LookupRefValidations.php | 34 + .../Calculation/LookupRef/Matrix.php | 145 + .../Calculation/LookupRef/Offset.php | 148 + .../LookupRef/RowColumnInformation.php | 210 + .../Calculation/LookupRef/Selection.php | 51 + .../Calculation/LookupRef/Sort.php | 309 + .../Calculation/LookupRef/Unique.php | 148 + .../Calculation/LookupRef/VLookup.php | 122 + .../Calculation/MathTrig/Absolute.php | 37 + .../Calculation/MathTrig/Angle.php | 63 + .../Calculation/MathTrig/Arabic.php | 92 + .../Calculation/MathTrig/Base.php | 65 + .../Calculation/MathTrig/Ceiling.php | 165 + .../Calculation/MathTrig/Combinations.php | 103 + .../Calculation/MathTrig/Exp.php | 37 + .../Calculation/MathTrig/Factorial.php | 126 + .../Calculation/MathTrig/Floor.php | 191 + .../Calculation/MathTrig/Gcd.php | 65 + .../Calculation/MathTrig/Helpers.php | 111 + .../Calculation/MathTrig/IntClass.php | 40 + .../Calculation/MathTrig/Lcm.php | 111 + .../Calculation/MathTrig/Logarithms.php | 102 + .../Calculation/MathTrig/MatrixFunctions.php | 179 + .../Calculation/MathTrig/Operations.php | 155 + .../Calculation/MathTrig/Random.php | 97 + .../Calculation/MathTrig/Roman.php | 846 +++ .../Calculation/MathTrig/Round.php | 236 + .../Calculation/MathTrig/SeriesSum.php | 53 + .../Calculation/MathTrig/Sign.php | 38 + .../Calculation/MathTrig/Sqrt.php | 64 + .../Calculation/MathTrig/Subtotal.php | 127 + .../Calculation/MathTrig/Sum.php | 110 + .../Calculation/MathTrig/SumSquares.php | 133 + .../Calculation/MathTrig/Trig/Cosecant.php | 64 + .../Calculation/MathTrig/Trig/Cosine.php | 116 + .../Calculation/MathTrig/Trig/Cotangent.php | 118 + .../Calculation/MathTrig/Trig/Secant.php | 64 + .../Calculation/MathTrig/Trig/Sine.php | 116 + .../Calculation/MathTrig/Trig/Tangent.php | 160 + .../Calculation/MathTrig/Trunc.php | 36 + .../Calculation/Statistical/AggregateBase.php | 59 + .../Calculation/Statistical/Averages.php | 259 + .../Calculation/Statistical/Averages/Mean.php | 126 + .../Calculation/Statistical/Conditional.php | 293 + .../Calculation/Statistical/Confidence.php | 51 + .../Calculation/Statistical/Counts.php | 96 + .../Calculation/Statistical/Deviations.php | 138 + .../Statistical/Distributions/Beta.php | 279 + .../Statistical/Distributions/Binomial.php | 231 + .../Statistical/Distributions/ChiSquared.php | 329 + .../Distributions/DistributionValidations.php | 21 + .../Statistical/Distributions/Exponential.php | 54 + .../Statistical/Distributions/F.php | 63 + .../Statistical/Distributions/Fisher.php | 72 + .../Statistical/Distributions/Gamma.php | 148 + .../Statistical/Distributions/GammaBase.php | 388 ++ .../Distributions/HyperGeometric.php | 75 + .../Statistical/Distributions/LogNormal.php | 139 + .../Distributions/NewtonRaphson.php | 64 + .../Statistical/Distributions/Normal.php | 180 + .../Statistical/Distributions/Poisson.php | 66 + .../Distributions/StandardNormal.php | 158 + .../Statistical/Distributions/StudentT.php | 132 + .../Statistical/Distributions/Weibull.php | 57 + .../Calculation/Statistical/MaxMinBase.php | 17 + .../Calculation/Statistical/Maximum.php | 85 + .../Calculation/Statistical/Minimum.php | 85 + .../Calculation/Statistical/Percentiles.php | 202 + .../Calculation/Statistical/Permutations.php | 100 + .../Calculation/Statistical/Size.php | 97 + .../Statistical/StandardDeviations.php | 89 + .../Calculation/Statistical/Standardize.php | 49 + .../Statistical/StatisticalValidations.php | 36 + .../Calculation/Statistical/Trends.php | 425 ++ .../Calculation/Statistical/VarianceBase.php | 28 + .../Calculation/Statistical/Variances.php | 186 + .../Calculation/TextData/CaseConvert.php | 90 + .../Calculation/TextData/CharacterConvert.php | 92 + .../Calculation/TextData/Concatenate.php | 194 + .../Calculation/TextData/Extract.php | 282 + .../Calculation/TextData/Format.php | 322 + .../Calculation/TextData/Helpers.php | 92 + .../Calculation/TextData/Replace.php | 116 + .../Calculation/TextData/Search.php | 97 + .../Calculation/TextData/Text.php | 243 + .../Calculation/TextData/Trim.php | 50 + .../Calculation/Token/Stack.php | 119 + .../Calculation/Web/Service.php | 73 + .../Calculation/locale/Translations.xlsx | Bin 0 -> 140431 bytes .../Calculation/locale/bg/config | 24 + .../Calculation/locale/bg/functions | 409 ++ .../Calculation/locale/cs/config | 20 + .../Calculation/locale/cs/functions | 520 ++ .../Calculation/locale/da/config | 20 + .../Calculation/locale/da/functions | 538 ++ .../Calculation/locale/de/config | 20 + .../Calculation/locale/de/functions | 534 ++ .../Calculation/locale/en/uk/config | 24 + .../Calculation/locale/es/config | 20 + .../Calculation/locale/es/functions | 538 ++ .../Calculation/locale/fi/config | 20 + .../Calculation/locale/fi/functions | 538 ++ .../Calculation/locale/fr/config | 20 + .../Calculation/locale/fr/functions | 525 ++ .../Calculation/locale/hu/config | 20 + .../Calculation/locale/hu/functions | 538 ++ .../Calculation/locale/it/config | 20 + .../Calculation/locale/it/functions | 537 ++ .../Calculation/locale/nb/config | 20 + .../Calculation/locale/nb/functions | 539 ++ .../Calculation/locale/nl/config | 20 + .../Calculation/locale/nl/functions | 537 ++ .../Calculation/locale/pl/config | 20 + .../Calculation/locale/pl/functions | 536 ++ .../Calculation/locale/pt/br/config | 20 + .../Calculation/locale/pt/br/functions | 528 ++ .../Calculation/locale/pt/config | 20 + .../Calculation/locale/pt/functions | 538 ++ .../Calculation/locale/ru/config | 20 + .../Calculation/locale/ru/functions | 555 ++ .../Calculation/locale/sv/config | 20 + .../Calculation/locale/sv/functions | 533 ++ .../Calculation/locale/tr/config | 20 + .../Calculation/locale/tr/functions | 537 ++ .../src/PhpSpreadsheet/Cell/AddressHelper.php | 175 + .../src/PhpSpreadsheet/Cell/AddressRange.php | 27 + .../Cell/AdvancedValueBinder.php | 210 + .../src/PhpSpreadsheet/Cell/Cell.php | 998 +++ .../src/PhpSpreadsheet/Cell/CellAddress.php | 148 + .../src/PhpSpreadsheet/Cell/CellRange.php | 134 + .../src/PhpSpreadsheet/Cell/ColumnRange.php | 125 + .../src/PhpSpreadsheet/Cell/Coordinate.php | 715 ++ .../src/PhpSpreadsheet/Cell/DataType.php | 90 + .../PhpSpreadsheet/Cell/DataValidation.php | 421 ++ .../src/PhpSpreadsheet/Cell/DataValidator.php | 117 + .../Cell/DefaultValueBinder.php | 111 + .../src/PhpSpreadsheet/Cell/Hyperlink.php | 96 + .../src/PhpSpreadsheet/Cell/IValueBinder.php | 14 + .../src/PhpSpreadsheet/Cell/IgnoredErrors.php | 62 + .../src/PhpSpreadsheet/Cell/RowRange.php | 93 + .../PhpSpreadsheet/Cell/StringValueBinder.php | 135 + .../PhpSpreadsheet/CellReferenceHelper.php | 119 + .../src/PhpSpreadsheet/Chart/Axis.php | 344 + .../src/PhpSpreadsheet/Chart/AxisText.php | 63 + .../src/PhpSpreadsheet/Chart/Chart.php | 784 +++ .../src/PhpSpreadsheet/Chart/ChartColor.php | 160 + .../src/PhpSpreadsheet/Chart/DataSeries.php | 412 ++ .../PhpSpreadsheet/Chart/DataSeriesValues.php | 571 ++ .../src/PhpSpreadsheet/Chart/Exception.php | 9 + .../src/PhpSpreadsheet/Chart/GridLines.php | 13 + .../src/PhpSpreadsheet/Chart/Layout.php | 531 ++ .../src/PhpSpreadsheet/Chart/Legend.php | 174 + .../src/PhpSpreadsheet/Chart/PlotArea.php | 207 + .../src/PhpSpreadsheet/Chart/Properties.php | 900 +++ .../Chart/Renderer/IRenderer.php | 22 + .../PhpSpreadsheet/Chart/Renderer/JpGraph.php | 40 + .../Chart/Renderer/JpGraphRendererBase.php | 886 +++ .../Chart/Renderer/MtJpGraphRenderer.php | 38 + .../Chart/Renderer/PHP Charting Libraries.txt | 23 + .../src/PhpSpreadsheet/Chart/Title.php | 171 + .../src/PhpSpreadsheet/Chart/TrendLine.php | 217 + .../src/PhpSpreadsheet/Collection/Cells.php | 475 ++ .../Collection/CellsFactory.php | 20 + .../Collection/Memory/SimpleCache1.php | 87 + .../Collection/Memory/SimpleCache3.php | 80 + .../src/PhpSpreadsheet/Comment.php | 358 + .../src/PhpSpreadsheet/DefinedName.php | 269 + .../PhpSpreadsheet/Document/Properties.php | 509 ++ .../src/PhpSpreadsheet/Document/Security.php | 140 + .../src/PhpSpreadsheet/Exception.php | 9 + .../src/PhpSpreadsheet/HashTable.php | 175 + .../src/PhpSpreadsheet/Helper/Dimension.php | 110 + .../src/PhpSpreadsheet/Helper/Downloader.php | 101 + .../src/PhpSpreadsheet/Helper/Handler.php | 45 + .../src/PhpSpreadsheet/Helper/Html.php | 861 +++ .../src/PhpSpreadsheet/Helper/Sample.php | 298 + .../src/PhpSpreadsheet/Helper/Size.php | 45 + .../src/PhpSpreadsheet/Helper/TextGrid.php | 124 + .../src/PhpSpreadsheet/IComparable.php | 13 + .../src/PhpSpreadsheet/IOFactory.php | 236 + .../src/PhpSpreadsheet/NamedFormula.php | 45 + .../src/PhpSpreadsheet/NamedRange.php | 55 + .../src/PhpSpreadsheet/Reader/BaseReader.php | 260 + .../src/PhpSpreadsheet/Reader/Csv.php | 751 +++ .../PhpSpreadsheet/Reader/Csv/Delimiter.php | 144 + .../Reader/DefaultReadFilter.php | 18 + .../src/PhpSpreadsheet/Reader/Exception.php | 9 + .../src/PhpSpreadsheet/Reader/Gnumeric.php | 609 ++ .../Reader/Gnumeric/PageSetup.php | 147 + .../Reader/Gnumeric/Properties.php | 161 + .../PhpSpreadsheet/Reader/Gnumeric/Styles.php | 273 + .../src/PhpSpreadsheet/Reader/Html.php | 1241 ++++ .../src/PhpSpreadsheet/Reader/IReadFilter.php | 15 + .../src/PhpSpreadsheet/Reader/IReader.php | 149 + .../src/PhpSpreadsheet/Reader/Ods.php | 846 +++ .../PhpSpreadsheet/Reader/Ods/AutoFilter.php | 45 + .../PhpSpreadsheet/Reader/Ods/BaseLoader.php | 21 + .../Reader/Ods/DefinedNames.php | 70 + .../Reader/Ods/FormulaTranslator.php | 115 + .../Reader/Ods/PageSettings.php | 171 + .../PhpSpreadsheet/Reader/Ods/Properties.php | 136 + .../Reader/Security/XmlScanner.php | 116 + .../src/PhpSpreadsheet/Reader/Slk.php | 567 ++ .../src/PhpSpreadsheet/Reader/Xls.php | 4770 ++++++++++++++ .../src/PhpSpreadsheet/Reader/Xls/Biff5.php | 69 + .../src/PhpSpreadsheet/Reader/Xls/Biff8.php | 365 ++ .../src/PhpSpreadsheet/Reader/Xls/Color.php | 29 + .../PhpSpreadsheet/Reader/Xls/Color/BIFF5.php | 73 + .../PhpSpreadsheet/Reader/Xls/Color/BIFF8.php | 73 + .../Reader/Xls/Color/BuiltIn.php | 29 + .../Reader/Xls/ConditionalFormatting.php | 333 + .../Reader/Xls/DataValidationHelper.php | 200 + .../PhpSpreadsheet/Reader/Xls/ErrorCode.php | 24 + .../src/PhpSpreadsheet/Reader/Xls/Escher.php | 607 ++ .../Reader/Xls/ListFunctions.php | 156 + .../Reader/Xls/LoadSpreadsheet.php | 671 ++ .../src/PhpSpreadsheet/Reader/Xls/MD5.php | 193 + .../PhpSpreadsheet/Reader/Xls/Mappings.php | 271 + .../src/PhpSpreadsheet/Reader/Xls/RC4.php | 59 + .../Reader/Xls/Style/Border.php | 33 + .../Reader/Xls/Style/CellAlignment.php | 50 + .../Reader/Xls/Style/CellFont.php | 39 + .../Reader/Xls/Style/FillPattern.php | 42 + .../src/PhpSpreadsheet/Reader/XlsBase.php | 397 ++ .../src/PhpSpreadsheet/Reader/Xlsx.php | 2467 +++++++ .../PhpSpreadsheet/Reader/Xlsx/AutoFilter.php | 161 + .../Reader/Xlsx/BaseParserClass.php | 21 + .../src/PhpSpreadsheet/Reader/Xlsx/Chart.php | 1584 +++++ .../Reader/Xlsx/ColumnAndRowAttributes.php | 219 + .../Reader/Xlsx/ConditionalStyles.php | 337 + .../Reader/Xlsx/DataValidations.php | 66 + .../PhpSpreadsheet/Reader/Xlsx/Hyperlinks.php | 64 + .../PhpSpreadsheet/Reader/Xlsx/Namespaces.php | 124 + .../PhpSpreadsheet/Reader/Xlsx/PageSetup.php | 170 + .../PhpSpreadsheet/Reader/Xlsx/Properties.php | 95 + .../Reader/Xlsx/SharedFormula.php | 26 + .../Reader/Xlsx/SheetViewOptions.php | 139 + .../PhpSpreadsheet/Reader/Xlsx/SheetViews.php | 199 + .../src/PhpSpreadsheet/Reader/Xlsx/Styles.php | 458 ++ .../Reader/Xlsx/TableReader.php | 116 + .../src/PhpSpreadsheet/Reader/Xlsx/Theme.php | 64 + .../Reader/Xlsx/WorkbookView.php | 141 + .../src/PhpSpreadsheet/Reader/Xml.php | 723 ++ .../Reader/Xml/DataValidations.php | 177 + .../Reader/Xml/PageSettings.php | 130 + .../PhpSpreadsheet/Reader/Xml/Properties.php | 155 + .../src/PhpSpreadsheet/Reader/Xml/Style.php | 107 + .../Reader/Xml/Style/Alignment.php | 58 + .../Reader/Xml/Style/Border.php | 110 + .../PhpSpreadsheet/Reader/Xml/Style/Fill.php | 63 + .../PhpSpreadsheet/Reader/Xml/Style/Font.php | 79 + .../Reader/Xml/Style/NumberFormat.php | 33 + .../Reader/Xml/Style/StyleBase.php | 30 + .../src/PhpSpreadsheet/ReferenceHelper.php | 1233 ++++ .../PhpSpreadsheet/RichText/ITextElement.php | 34 + .../src/PhpSpreadsheet/RichText/RichText.php | 164 + .../src/PhpSpreadsheet/RichText/Run.php | 71 + .../PhpSpreadsheet/RichText/TextElement.php | 69 + .../src/PhpSpreadsheet/Settings.php | 189 + .../src/PhpSpreadsheet/Shared/CodePage.php | 113 + .../src/PhpSpreadsheet/Shared/Date.php | 552 ++ .../src/PhpSpreadsheet/Shared/Drawing.php | 152 + .../src/PhpSpreadsheet/Shared/Escher.php | 48 + .../Shared/Escher/DgContainer.php | 60 + .../Escher/DgContainer/SpgrContainer.php | 71 + .../DgContainer/SpgrContainer/SpContainer.php | 300 + .../Shared/Escher/DggContainer.php | 140 + .../Escher/DggContainer/BstoreContainer.php | 32 + .../DggContainer/BstoreContainer/BSE.php | 81 + .../DggContainer/BstoreContainer/BSE/Blip.php | 50 + .../src/PhpSpreadsheet/Shared/File.php | 195 + .../src/PhpSpreadsheet/Shared/Font.php | 718 ++ .../src/PhpSpreadsheet/Shared/IntOrFloat.php | 17 + .../src/PhpSpreadsheet/Shared/OLE.php | 552 ++ .../Shared/OLE/ChainedBlockStream.php | 187 + .../src/PhpSpreadsheet/Shared/OLE/PPS.php | 207 + .../PhpSpreadsheet/Shared/OLE/PPS/File.php | 62 + .../PhpSpreadsheet/Shared/OLE/PPS/Root.php | 406 ++ .../src/PhpSpreadsheet/Shared/OLERead.php | 307 + .../PhpSpreadsheet/Shared/PasswordHasher.php | 106 + .../PhpSpreadsheet/Shared/StringHelper.php | 646 ++ .../src/PhpSpreadsheet/Shared/TimeZone.php | 75 + .../PhpSpreadsheet/Shared/Trend/BestFit.php | 425 ++ .../Shared/Trend/ExponentialBestFit.php | 108 + .../Shared/Trend/LinearBestFit.php | 75 + .../Shared/Trend/LogarithmicBestFit.php | 80 + .../Shared/Trend/PolynomialBestFit.php | 205 + .../Shared/Trend/PowerBestFit.php | 98 + .../src/PhpSpreadsheet/Shared/Trend/Trend.php | 122 + .../src/PhpSpreadsheet/Shared/XMLWriter.php | 96 + .../src/PhpSpreadsheet/Shared/Xls.php | 273 + .../src/PhpSpreadsheet/Spreadsheet.php | 1639 +++++ .../src/PhpSpreadsheet/Style/Alignment.php | 501 ++ .../src/PhpSpreadsheet/Style/Border.php | 221 + .../src/PhpSpreadsheet/Style/Borders.php | 374 ++ .../src/PhpSpreadsheet/Style/Color.php | 420 ++ .../src/PhpSpreadsheet/Style/Conditional.php | 337 + .../ConditionalFormatting/CellMatcher.php | 273 + .../CellStyleAssessor.php | 38 + .../ConditionalColorScale.php | 92 + .../ConditionalDataBar.php | 76 + .../ConditionalDataBarExtension.php | 235 + .../ConditionalFormatValueObject.php | 55 + .../ConditionalFormattingRuleExtension.php | 212 + .../ConditionalFormatting/StyleMerger.php | 115 + .../Style/ConditionalFormatting/Wizard.php | 66 + .../ConditionalFormatting/Wizard/Blanks.php | 95 + .../Wizard/CellValue.php | 186 + .../Wizard/DateValue.php | 109 + .../Wizard/Duplicates.php | 74 + .../ConditionalFormatting/Wizard/Errors.php | 91 + .../Wizard/Expression.php | 69 + .../Wizard/TextValue.php | 164 + .../Wizard/WizardAbstract.php | 176 + .../Wizard/WizardInterface.php | 25 + .../src/PhpSpreadsheet/Style/Fill.php | 317 + .../src/PhpSpreadsheet/Style/Font.php | 835 +++ .../src/PhpSpreadsheet/Style/NumberFormat.php | 517 ++ .../Style/NumberFormat/BaseFormatter.php | 25 + .../Style/NumberFormat/DateFormatter.php | 212 + .../Style/NumberFormat/Formatter.php | 209 + .../Style/NumberFormat/FractionFormatter.php | 70 + .../Style/NumberFormat/NumberFormatter.php | 317 + .../NumberFormat/PercentageFormatter.php | 48 + .../Style/NumberFormat/Wizard/Accounting.php | 50 + .../Style/NumberFormat/Wizard/Currency.php | 10 + .../NumberFormat/Wizard/CurrencyBase.php | 236 + .../NumberFormat/Wizard/CurrencyNegative.php | 35 + .../Style/NumberFormat/Wizard/Date.php | 125 + .../Style/NumberFormat/Wizard/DateTime.php | 46 + .../NumberFormat/Wizard/DateTimeWizard.php | 46 + .../Style/NumberFormat/Wizard/Duration.php | 153 + .../Style/NumberFormat/Wizard/Locale.php | 39 + .../Style/NumberFormat/Wizard/Number.php | 57 + .../Style/NumberFormat/Wizard/NumberBase.php | 81 + .../Style/NumberFormat/Wizard/Percentage.php | 40 + .../Style/NumberFormat/Wizard/Scientific.php | 33 + .../Style/NumberFormat/Wizard/Time.php | 105 + .../Style/NumberFormat/Wizard/Wizard.php | 8 + .../src/PhpSpreadsheet/Style/Protection.php | 184 + .../src/PhpSpreadsheet/Style/RgbTint.php | 172 + .../src/PhpSpreadsheet/Style/Style.php | 705 ++ .../src/PhpSpreadsheet/Style/Supervisor.php | 156 + .../src/PhpSpreadsheet/Theme.php | 259 + .../PhpSpreadsheet/Worksheet/AutoFilter.php | 1092 ++++ .../Worksheet/AutoFilter/Column.php | 381 ++ .../Worksheet/AutoFilter/Column/Rule.php | 406 ++ .../src/PhpSpreadsheet/Worksheet/AutoFit.php | 51 + .../PhpSpreadsheet/Worksheet/BaseDrawing.php | 575 ++ .../PhpSpreadsheet/Worksheet/CellIterator.php | 85 + .../src/PhpSpreadsheet/Worksheet/Column.php | 110 + .../Worksheet/ColumnCellIterator.php | 198 + .../Worksheet/ColumnDimension.php | 131 + .../Worksheet/ColumnIterator.php | 165 + .../PhpSpreadsheet/Worksheet/Dimension.php | 124 + .../src/PhpSpreadsheet/Worksheet/Drawing.php | 260 + .../Worksheet/Drawing/Shadow.php | 247 + .../PhpSpreadsheet/Worksheet/HeaderFooter.php | 426 ++ .../Worksheet/HeaderFooterDrawing.php | 24 + .../src/PhpSpreadsheet/Worksheet/Iterator.php | 70 + .../Worksheet/MemoryDrawing.php | 333 + .../PhpSpreadsheet/Worksheet/PageBreak.php | 57 + .../PhpSpreadsheet/Worksheet/PageMargins.php | 193 + .../PhpSpreadsheet/Worksheet/PageSetup.php | 824 +++ .../src/PhpSpreadsheet/Worksheet/Pane.php | 48 + .../Worksheet/ProtectedRange.php | 45 + .../PhpSpreadsheet/Worksheet/Protection.php | 474 ++ .../src/PhpSpreadsheet/Worksheet/Row.php | 110 + .../Worksheet/RowCellIterator.php | 188 + .../PhpSpreadsheet/Worksheet/RowDimension.php | 110 + .../PhpSpreadsheet/Worksheet/RowIterator.php | 155 + .../PhpSpreadsheet/Worksheet/SheetView.php | 199 + .../src/PhpSpreadsheet/Worksheet/Table.php | 579 ++ .../PhpSpreadsheet/Worksheet/Table/Column.php | 240 + .../Worksheet/Table/TableStyle.php | 218 + .../PhpSpreadsheet/Worksheet/Validations.php | 118 + .../PhpSpreadsheet/Worksheet/Worksheet.php | 3764 +++++++++++ .../src/PhpSpreadsheet/Writer/BaseWriter.php | 137 + .../src/PhpSpreadsheet/Writer/Csv.php | 372 ++ .../src/PhpSpreadsheet/Writer/Exception.php | 9 + .../src/PhpSpreadsheet/Writer/Html.php | 2014 ++++++ .../src/PhpSpreadsheet/Writer/IWriter.php | 87 + .../src/PhpSpreadsheet/Writer/Ods.php | 159 + .../PhpSpreadsheet/Writer/Ods/AutoFilters.php | 57 + .../Writer/Ods/Cell/Comment.php | 45 + .../PhpSpreadsheet/Writer/Ods/Cell/Style.php | 331 + .../src/PhpSpreadsheet/Writer/Ods/Content.php | 359 + .../src/PhpSpreadsheet/Writer/Ods/Formula.php | 119 + .../src/PhpSpreadsheet/Writer/Ods/Meta.php | 122 + .../src/PhpSpreadsheet/Writer/Ods/MetaInf.php | 60 + .../PhpSpreadsheet/Writer/Ods/Mimetype.php | 16 + .../Writer/Ods/NamedExpressions.php | 138 + .../PhpSpreadsheet/Writer/Ods/Settings.php | 153 + .../src/PhpSpreadsheet/Writer/Ods/Styles.php | 74 + .../PhpSpreadsheet/Writer/Ods/Thumbnails.php | 16 + .../PhpSpreadsheet/Writer/Ods/WriterPart.php | 31 + .../src/PhpSpreadsheet/Writer/Pdf.php | 227 + .../src/PhpSpreadsheet/Writer/Pdf/Dompdf.php | 58 + .../src/PhpSpreadsheet/Writer/Pdf/Mpdf.php | 101 + .../src/PhpSpreadsheet/Writer/Pdf/Tcpdf.php | 84 + .../src/PhpSpreadsheet/Writer/Xls.php | 892 +++ .../PhpSpreadsheet/Writer/Xls/BIFFwriter.php | 212 + .../Writer/Xls/CellDataValidation.php | 78 + .../Writer/Xls/ConditionalHelper.php | 61 + .../PhpSpreadsheet/Writer/Xls/ErrorCode.php | 28 + .../src/PhpSpreadsheet/Writer/Xls/Escher.php | 497 ++ .../src/PhpSpreadsheet/Writer/Xls/Font.php | 133 + .../src/PhpSpreadsheet/Writer/Xls/Parser.php | 1649 +++++ .../Writer/Xls/Style/CellAlignment.php | 59 + .../Writer/Xls/Style/CellBorder.php | 40 + .../Writer/Xls/Style/CellFill.php | 46 + .../PhpSpreadsheet/Writer/Xls/Workbook.php | 1147 ++++ .../PhpSpreadsheet/Writer/Xls/Worksheet.php | 3221 +++++++++ .../src/PhpSpreadsheet/Writer/Xls/Xf.php | 374 ++ .../src/PhpSpreadsheet/Writer/Xlsx.php | 768 +++ .../PhpSpreadsheet/Writer/Xlsx/AutoFilter.php | 125 + .../src/PhpSpreadsheet/Writer/Xlsx/Chart.php | 1939 ++++++ .../PhpSpreadsheet/Writer/Xlsx/Comments.php | 253 + .../Writer/Xlsx/ContentTypes.php | 286 + .../Writer/Xlsx/DefinedNames.php | 243 + .../PhpSpreadsheet/Writer/Xlsx/DocProps.php | 250 + .../PhpSpreadsheet/Writer/Xlsx/Drawing.php | 594 ++ .../Writer/Xlsx/FunctionPrefix.php | 221 + .../PhpSpreadsheet/Writer/Xlsx/Metadata.php | 129 + .../src/PhpSpreadsheet/Writer/Xlsx/Rels.php | 522 ++ .../PhpSpreadsheet/Writer/Xlsx/RelsRibbon.php | 46 + .../PhpSpreadsheet/Writer/Xlsx/RelsVBA.php | 40 + .../Writer/Xlsx/StringTable.php | 344 + .../src/PhpSpreadsheet/Writer/Xlsx/Style.php | 682 ++ .../src/PhpSpreadsheet/Writer/Xlsx/Table.php | 115 + .../src/PhpSpreadsheet/Writer/Xlsx/Theme.php | 744 +++ .../PhpSpreadsheet/Writer/Xlsx/Workbook.php | 219 + .../PhpSpreadsheet/Writer/Xlsx/Worksheet.php | 1734 +++++ .../PhpSpreadsheet/Writer/Xlsx/WriterPart.php | 29 + .../src/PhpSpreadsheet/Writer/ZipStream0.php | 17 + .../src/PhpSpreadsheet/Writer/ZipStream2.php | 27 + .../src/PhpSpreadsheet/Writer/ZipStream3.php | 21 + vendor/psr/http-client/CHANGELOG.md | 31 + vendor/psr/http-client/LICENSE | 19 + vendor/psr/http-client/README.md | 12 + vendor/psr/http-client/composer.json | 30 + .../src/ClientExceptionInterface.php | 10 + .../psr/http-client/src/ClientInterface.php | 20 + .../src/NetworkExceptionInterface.php | 24 + .../src/RequestExceptionInterface.php | 24 + vendor/psr/http-factory/LICENSE | 21 + vendor/psr/http-factory/README.md | 12 + vendor/psr/http-factory/composer.json | 38 + .../src/RequestFactoryInterface.php | 18 + .../src/ResponseFactoryInterface.php | 18 + .../src/ServerRequestFactoryInterface.php | 24 + .../src/StreamFactoryInterface.php | 45 + .../src/UploadedFileFactoryInterface.php | 34 + .../http-factory/src/UriFactoryInterface.php | 17 + vendor/psr/http-message/CHANGELOG.md | 36 + vendor/psr/http-message/LICENSE | 19 + vendor/psr/http-message/README.md | 16 + vendor/psr/http-message/composer.json | 26 + .../psr/http-message/docs/PSR7-Interfaces.md | 130 + vendor/psr/http-message/docs/PSR7-Usage.md | 159 + .../psr/http-message/src/MessageInterface.php | 187 + .../psr/http-message/src/RequestInterface.php | 130 + .../http-message/src/ResponseInterface.php | 68 + .../src/ServerRequestInterface.php | 261 + .../psr/http-message/src/StreamInterface.php | 158 + .../src/UploadedFileInterface.php | 123 + vendor/psr/http-message/src/UriInterface.php | 324 + vendor/psr/simple-cache/.editorconfig | 12 + vendor/psr/simple-cache/LICENSE.md | 21 + vendor/psr/simple-cache/README.md | 8 + vendor/psr/simple-cache/composer.json | 25 + .../psr/simple-cache/src/CacheException.php | 10 + .../psr/simple-cache/src/CacheInterface.php | 114 + .../src/InvalidArgumentException.php | 13 + 748 files changed, 151175 insertions(+) create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 vendor/autoload.php create mode 100644 vendor/composer/ClassLoader.php create mode 100644 vendor/composer/InstalledVersions.php create mode 100644 vendor/composer/LICENSE create mode 100644 vendor/composer/autoload_classmap.php create mode 100644 vendor/composer/autoload_namespaces.php create mode 100644 vendor/composer/autoload_psr4.php create mode 100644 vendor/composer/autoload_real.php create mode 100644 vendor/composer/autoload_static.php create mode 100644 vendor/composer/installed.json create mode 100644 vendor/composer/installed.php create mode 100644 vendor/composer/pcre/LICENSE create mode 100644 vendor/composer/pcre/README.md create mode 100644 vendor/composer/pcre/composer.json create mode 100644 vendor/composer/pcre/extension.neon create mode 100644 vendor/composer/pcre/src/MatchAllResult.php create mode 100644 vendor/composer/pcre/src/MatchAllStrictGroupsResult.php create mode 100644 vendor/composer/pcre/src/MatchAllWithOffsetsResult.php create mode 100644 vendor/composer/pcre/src/MatchResult.php create mode 100644 vendor/composer/pcre/src/MatchStrictGroupsResult.php create mode 100644 vendor/composer/pcre/src/MatchWithOffsetsResult.php create mode 100644 vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php create mode 100644 vendor/composer/pcre/src/PHPStan/PregMatchFlags.php create mode 100644 vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php create mode 100644 vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php create mode 100644 vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php create mode 100644 vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php create mode 100644 vendor/composer/pcre/src/PcreException.php create mode 100644 vendor/composer/pcre/src/Preg.php create mode 100644 vendor/composer/pcre/src/Regex.php create mode 100644 vendor/composer/pcre/src/ReplaceResult.php create mode 100644 vendor/composer/pcre/src/UnexpectedNullMatchException.php create mode 100644 vendor/composer/platform_check.php create mode 100644 vendor/maennchen/zipstream-php/.editorconfig create mode 100644 vendor/maennchen/zipstream-php/.gitattributes create mode 100644 vendor/maennchen/zipstream-php/.github/CODE_OF_CONDUCT.md create mode 100644 vendor/maennchen/zipstream-php/.github/CONTRIBUTING.md create mode 100644 vendor/maennchen/zipstream-php/.github/FUNDING.yml create mode 100644 vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/BUG.yml create mode 100644 vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/FEATURE.yml create mode 100644 vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FAILING_TEST.md create mode 100644 vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FIX.md create mode 100644 vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/IMPROVEMENT.md create mode 100644 vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/NEW_FEATURE.md create mode 100644 vendor/maennchen/zipstream-php/.github/SECURITY.md create mode 100644 vendor/maennchen/zipstream-php/.github/dependabot.yml create mode 100644 vendor/maennchen/zipstream-php/.github/scorecard.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/branch_main.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/part_dependabot.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/part_docs.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/part_release.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/part_test.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/pr.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/scorecard.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/tag-beta.yml create mode 100644 vendor/maennchen/zipstream-php/.github/workflows/tag-stable.yml create mode 100644 vendor/maennchen/zipstream-php/.gitignore create mode 100644 vendor/maennchen/zipstream-php/.phive/phars.xml create mode 100644 vendor/maennchen/zipstream-php/.php-cs-fixer.dist.php create mode 100644 vendor/maennchen/zipstream-php/.phpdoc/template/base.html.twig create mode 100644 vendor/maennchen/zipstream-php/.tool-versions create mode 100644 vendor/maennchen/zipstream-php/LICENSE create mode 100644 vendor/maennchen/zipstream-php/README.md create mode 100644 vendor/maennchen/zipstream-php/composer.json create mode 100644 vendor/maennchen/zipstream-php/guides/ContentLength.rst create mode 100644 vendor/maennchen/zipstream-php/guides/FlySystem.rst create mode 100644 vendor/maennchen/zipstream-php/guides/Nginx.rst create mode 100644 vendor/maennchen/zipstream-php/guides/Options.rst create mode 100644 vendor/maennchen/zipstream-php/guides/PSR7Streams.rst create mode 100644 vendor/maennchen/zipstream-php/guides/StreamOutput.rst create mode 100644 vendor/maennchen/zipstream-php/guides/Symfony.rst create mode 100644 vendor/maennchen/zipstream-php/guides/Varnish.rst create mode 100644 vendor/maennchen/zipstream-php/guides/index.rst create mode 100644 vendor/maennchen/zipstream-php/phpdoc.dist.xml create mode 100644 vendor/maennchen/zipstream-php/phpunit.xml.dist create mode 100644 vendor/maennchen/zipstream-php/psalm.xml create mode 100644 vendor/maennchen/zipstream-php/results.sarif create mode 100644 vendor/maennchen/zipstream-php/src/CentralDirectoryFileHeader.php create mode 100644 vendor/maennchen/zipstream-php/src/CompressionMethod.php create mode 100644 vendor/maennchen/zipstream-php/src/DataDescriptor.php create mode 100644 vendor/maennchen/zipstream-php/src/EndOfCentralDirectory.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/DosTimeOverflowException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/FileNotFoundException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/FileSizeIncorrectException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/OverflowException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/SimulationFileUnknownException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php create mode 100644 vendor/maennchen/zipstream-php/src/Exception/StreamNotSeekableException.php create mode 100644 vendor/maennchen/zipstream-php/src/File.php create mode 100644 vendor/maennchen/zipstream-php/src/GeneralPurposeBitFlag.php create mode 100644 vendor/maennchen/zipstream-php/src/LocalFileHeader.php create mode 100644 vendor/maennchen/zipstream-php/src/OperationMode.php create mode 100644 vendor/maennchen/zipstream-php/src/PackField.php create mode 100644 vendor/maennchen/zipstream-php/src/Time.php create mode 100644 vendor/maennchen/zipstream-php/src/Version.php create mode 100644 vendor/maennchen/zipstream-php/src/Zip64/DataDescriptor.php create mode 100644 vendor/maennchen/zipstream-php/src/Zip64/EndOfCentralDirectory.php create mode 100644 vendor/maennchen/zipstream-php/src/Zip64/EndOfCentralDirectoryLocator.php create mode 100644 vendor/maennchen/zipstream-php/src/Zip64/ExtendedInformationExtraField.php create mode 100644 vendor/maennchen/zipstream-php/src/ZipStream.php create mode 100644 vendor/maennchen/zipstream-php/src/Zs/ExtendedInformationExtraField.php create mode 100644 vendor/maennchen/zipstream-php/test/Assertions.php create mode 100644 vendor/maennchen/zipstream-php/test/CentralDirectoryFileHeaderTest.php create mode 100644 vendor/maennchen/zipstream-php/test/DataDescriptorTest.php create mode 100644 vendor/maennchen/zipstream-php/test/EndOfCentralDirectoryTest.php create mode 100644 vendor/maennchen/zipstream-php/test/EndlessCycleStream.php create mode 100644 vendor/maennchen/zipstream-php/test/FaultInjectionResource.php create mode 100644 vendor/maennchen/zipstream-php/test/LocalFileHeaderTest.php create mode 100644 vendor/maennchen/zipstream-php/test/PackFieldTest.php create mode 100644 vendor/maennchen/zipstream-php/test/ResourceStream.php create mode 100644 vendor/maennchen/zipstream-php/test/Tempfile.php create mode 100644 vendor/maennchen/zipstream-php/test/TimeTest.php create mode 100644 vendor/maennchen/zipstream-php/test/Util.php create mode 100644 vendor/maennchen/zipstream-php/test/Zip64/DataDescriptorTest.php create mode 100644 vendor/maennchen/zipstream-php/test/Zip64/EndOfCentralDirectoryLocatorTest.php create mode 100644 vendor/maennchen/zipstream-php/test/Zip64/EndOfCentralDirectoryTest.php create mode 100644 vendor/maennchen/zipstream-php/test/Zip64/ExtendedInformationExtraFieldTest.php create mode 100644 vendor/maennchen/zipstream-php/test/ZipStreamTest.php create mode 100644 vendor/maennchen/zipstream-php/test/Zs/ExtendedInformationExtraFieldTest.php create mode 100644 vendor/maennchen/zipstream-php/test/bootstrap.php create mode 100644 vendor/markbaker/complex/.github/workflows/main.yml create mode 100644 vendor/markbaker/complex/README.md create mode 100644 vendor/markbaker/complex/classes/src/Complex.php create mode 100644 vendor/markbaker/complex/classes/src/Exception.php create mode 100644 vendor/markbaker/complex/classes/src/Functions.php create mode 100644 vendor/markbaker/complex/classes/src/Operations.php create mode 100644 vendor/markbaker/complex/composer.json create mode 100644 vendor/markbaker/complex/examples/complexTest.php create mode 100644 vendor/markbaker/complex/examples/testFunctions.php create mode 100644 vendor/markbaker/complex/examples/testOperations.php create mode 100644 vendor/markbaker/complex/license.md create mode 100644 vendor/markbaker/matrix/.github/workflows/main.yaml create mode 100644 vendor/markbaker/matrix/README.md create mode 100644 vendor/markbaker/matrix/buildPhar.php create mode 100644 vendor/markbaker/matrix/classes/src/Builder.php create mode 100644 vendor/markbaker/matrix/classes/src/Decomposition/Decomposition.php create mode 100644 vendor/markbaker/matrix/classes/src/Decomposition/LU.php create mode 100644 vendor/markbaker/matrix/classes/src/Decomposition/QR.php create mode 100644 vendor/markbaker/matrix/classes/src/Div0Exception.php create mode 100644 vendor/markbaker/matrix/classes/src/Exception.php create mode 100644 vendor/markbaker/matrix/classes/src/Functions.php create mode 100644 vendor/markbaker/matrix/classes/src/Matrix.php create mode 100644 vendor/markbaker/matrix/classes/src/Operations.php create mode 100644 vendor/markbaker/matrix/classes/src/Operators/Addition.php create mode 100644 vendor/markbaker/matrix/classes/src/Operators/DirectSum.php create mode 100644 vendor/markbaker/matrix/classes/src/Operators/Division.php create mode 100644 vendor/markbaker/matrix/classes/src/Operators/Multiplication.php create mode 100644 vendor/markbaker/matrix/classes/src/Operators/Operator.php create mode 100644 vendor/markbaker/matrix/classes/src/Operators/Subtraction.php create mode 100644 vendor/markbaker/matrix/composer.json create mode 100644 vendor/markbaker/matrix/examples/test.php create mode 100644 vendor/markbaker/matrix/infection.json.dist create mode 100644 vendor/markbaker/matrix/license.md create mode 100644 vendor/markbaker/matrix/phpstan.neon create mode 100644 vendor/phpoffice/phpspreadsheet/CHANGELOG.md create mode 100644 vendor/phpoffice/phpspreadsheet/CONTRIBUTING.md create mode 100644 vendor/phpoffice/phpspreadsheet/LICENSE create mode 100644 vendor/phpoffice/phpspreadsheet/README.md create mode 100644 vendor/phpoffice/phpspreadsheet/composer.json create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/ArrayEnabled.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/BinaryComparison.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Category.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DAverage.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCount.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCountA.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DGet.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMax.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMin.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DProduct.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DStDev.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DStDevP.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DSum.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DVar.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DVarP.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DatabaseAbstract.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Constants.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Current.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Date.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/DateParts.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/DateValue.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Days.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Days360.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Difference.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Helpers.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Month.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/NetworkDays.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Time.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeParts.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeValue.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Week.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/WorkDay.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/YearFrac.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/ArrayArgumentHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/ArrayArgumentProcessor.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/BranchPruner.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/CyclicReferenceStack.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/FormattedNumber.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/Logger.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/Operands/Operand.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/Operands/StructuredReference.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselI.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselJ.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselK.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselY.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BitWise.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Compare.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Complex.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ComplexFunctions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ComplexOperations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Constants.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBinary.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertDecimal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertHex.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertOctal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertUOM.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/EngineeringValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Erf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ErfC.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/ExceptionHandler.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Amortization.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/CashFlowValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic/Cumulative.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic/Interest.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic/InterestAndPrincipal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic/Payments.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Single.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Variable/NonPeriodic.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/CashFlow/Variable/Periodic.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Constants.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Coupons.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Depreciation.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Dollar.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/FinancialValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Helpers.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/InterestRate.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Securities/AccruedInterest.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Securities/Price.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Securities/Rates.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Securities/SecurityValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Securities/Yields.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/TreasuryBill.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/FormulaParser.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/FormulaToken.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Functions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Information/ErrorValue.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Information/ExcelError.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Information/Value.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/ExcelArrayPseudoFunctions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/MakeMatrix.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/WildcardMatch.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Boolean.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Conditional.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Operations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Address.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/ChooseRowsEtc.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Filter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Formula.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/HLookup.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Helpers.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Hyperlink.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Indirect.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Lookup.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/LookupBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/LookupRefValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Matrix.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Offset.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Selection.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Sort.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Unique.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/VLookup.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Absolute.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Angle.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Arabic.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Base.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Ceiling.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Combinations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Exp.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Factorial.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Floor.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Gcd.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Helpers.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/IntClass.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Lcm.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Logarithms.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Operations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Random.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Roman.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Round.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/SeriesSum.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Sign.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Sqrt.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Subtotal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Sum.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/SumSquares.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cosecant.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cosine.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cotangent.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Secant.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Sine.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Tangent.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trunc.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/AggregateBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Averages.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Averages/Mean.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Conditional.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Confidence.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Counts.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Deviations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Beta.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Binomial.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/ChiSquared.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/DistributionValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Exponential.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/F.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Fisher.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Gamma.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/GammaBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/HyperGeometric.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/LogNormal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/NewtonRaphson.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Normal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Poisson.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/StandardNormal.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/StudentT.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Weibull.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/MaxMinBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Maximum.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Minimum.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Percentiles.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Permutations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Size.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/StandardDeviations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Standardize.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/StatisticalValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Trends.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/VarianceBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Variances.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/CaseConvert.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/CharacterConvert.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Concatenate.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Extract.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Format.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Helpers.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Replace.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Search.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Text.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Trim.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Token/Stack.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Web/Service.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/Translations.xlsx create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/bg/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/bg/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/cs/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/cs/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/da/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/da/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/de/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/de/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/en/uk/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/es/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/es/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/fi/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/fi/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/fr/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/fr/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/hu/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/hu/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/it/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/it/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/nb/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/nb/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/nl/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/nl/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/pl/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/pl/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/pt/br/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/pt/br/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/pt/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/pt/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/ru/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/ru/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/sv/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/sv/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/tr/config create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/locale/tr/functions create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AddressHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AddressRange.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AdvancedValueBinder.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Cell.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/CellAddress.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/CellRange.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/ColumnRange.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Coordinate.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataType.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataValidation.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataValidator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DefaultValueBinder.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Hyperlink.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/IValueBinder.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/IgnoredErrors.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/RowRange.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/StringValueBinder.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/CellReferenceHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Axis.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/AxisText.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Chart.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/ChartColor.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeries.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeriesValues.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Exception.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/GridLines.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Layout.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Legend.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/PlotArea.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Properties.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/IRenderer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/MtJpGraphRenderer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/PHP Charting Libraries.txt create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/TrendLine.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Cells.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/CellsFactory.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Comment.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/DefinedName.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/Properties.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/Security.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Exception.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/HashTable.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Dimension.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Downloader.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Handler.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Html.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Sample.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Size.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/TextGrid.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IComparable.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedFormula.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedRange.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/BaseReader.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv/Delimiter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/DefaultReadFilter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Exception.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric/PageSetup.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric/Properties.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric/Styles.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Html.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/IReadFilter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/IReader.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/AutoFilter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/BaseLoader.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/DefinedNames.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/FormulaTranslator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/PageSettings.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/Properties.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Security/XmlScanner.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Slk.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Biff5.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Biff8.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BIFF5.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BIFF8.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BuiltIn.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/ConditionalFormatting.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/DataValidationHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/ErrorCode.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Escher.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/ListFunctions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/LoadSpreadsheet.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/MD5.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Mappings.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/RC4.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/Border.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/CellAlignment.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/CellFont.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/FillPattern.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/XlsBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/AutoFilter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/BaseParserClass.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Chart.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ConditionalStyles.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/DataValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Hyperlinks.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Namespaces.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/PageSetup.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Properties.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SharedFormula.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViewOptions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViews.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Styles.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/TableReader.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Theme.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/WorkbookView.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/DataValidations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/PageSettings.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Properties.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/Alignment.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/Border.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/Fill.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/Font.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/NumberFormat.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/StyleBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/ReferenceHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/ITextElement.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/RichText.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/TextElement.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Settings.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/CodePage.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Date.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Drawing.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Font.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/IntOrFloat.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/ChainedBlockStream.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/File.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/Root.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/PasswordHasher.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/StringHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/TimeZone.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/BestFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/ExponentialBestFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LogarithmicBestFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PowerBestFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/Trend.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/XMLWriter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Xls.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Alignment.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Border.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Borders.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Color.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Conditional.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/CellMatcher.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/CellStyleAssessor.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalColorScale.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalDataBar.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalDataBarExtension.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormatValueObject.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormattingRuleExtension.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/StyleMerger.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/Blanks.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/CellValue.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/DateValue.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/Duplicates.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/Errors.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/Expression.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/TextValue.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/WizardAbstract.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/WizardInterface.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Fill.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Font.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/BaseFormatter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/DateFormatter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Formatter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/FractionFormatter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/NumberFormatter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/PercentageFormatter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Accounting.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Currency.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/CurrencyBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/CurrencyNegative.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Date.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/DateTime.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/DateTimeWizard.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Duration.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Locale.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Number.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/NumberBase.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Percentage.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Scientific.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Time.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/Wizard.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Protection.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/RgbTint.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Supervisor.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Theme.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter/Column.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter/Column/Rule.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFit.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/BaseDrawing.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/CellIterator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnCellIterator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnDimension.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnIterator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Dimension.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing/Shadow.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooterDrawing.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Iterator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageBreak.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageMargins.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageSetup.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Pane.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ProtectedRange.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Protection.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Row.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowCellIterator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowIterator.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/SheetView.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Table.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Table/Column.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Table/TableStyle.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Validations.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/BaseWriter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Csv.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Exception.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Html.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/IWriter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/AutoFilters.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Cell/Comment.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Cell/Style.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Content.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Formula.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Meta.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/MetaInf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Mimetype.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/NamedExpressions.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Settings.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Styles.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Thumbnails.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/WriterPart.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Dompdf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Mpdf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Tcpdf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/BIFFwriter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/CellDataValidation.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/ConditionalHelper.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/ErrorCode.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Escher.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Font.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Parser.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Style/CellAlignment.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Style/CellBorder.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Style/CellFill.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Workbook.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Worksheet.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Xf.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/AutoFilter.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Chart.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Comments.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DefinedNames.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DocProps.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/FunctionPrefix.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Metadata.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Rels.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/RelsRibbon.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/RelsVBA.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/StringTable.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Style.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Table.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Theme.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/WriterPart.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream0.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream2.php create mode 100644 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream3.php create mode 100644 vendor/psr/http-client/CHANGELOG.md create mode 100644 vendor/psr/http-client/LICENSE create mode 100644 vendor/psr/http-client/README.md create mode 100644 vendor/psr/http-client/composer.json create mode 100644 vendor/psr/http-client/src/ClientExceptionInterface.php create mode 100644 vendor/psr/http-client/src/ClientInterface.php create mode 100644 vendor/psr/http-client/src/NetworkExceptionInterface.php create mode 100644 vendor/psr/http-client/src/RequestExceptionInterface.php create mode 100644 vendor/psr/http-factory/LICENSE create mode 100644 vendor/psr/http-factory/README.md create mode 100644 vendor/psr/http-factory/composer.json create mode 100644 vendor/psr/http-factory/src/RequestFactoryInterface.php create mode 100644 vendor/psr/http-factory/src/ResponseFactoryInterface.php create mode 100644 vendor/psr/http-factory/src/ServerRequestFactoryInterface.php create mode 100644 vendor/psr/http-factory/src/StreamFactoryInterface.php create mode 100644 vendor/psr/http-factory/src/UploadedFileFactoryInterface.php create mode 100644 vendor/psr/http-factory/src/UriFactoryInterface.php create mode 100644 vendor/psr/http-message/CHANGELOG.md create mode 100644 vendor/psr/http-message/LICENSE create mode 100644 vendor/psr/http-message/README.md create mode 100644 vendor/psr/http-message/composer.json create mode 100644 vendor/psr/http-message/docs/PSR7-Interfaces.md create mode 100644 vendor/psr/http-message/docs/PSR7-Usage.md create mode 100644 vendor/psr/http-message/src/MessageInterface.php create mode 100644 vendor/psr/http-message/src/RequestInterface.php create mode 100644 vendor/psr/http-message/src/ResponseInterface.php create mode 100644 vendor/psr/http-message/src/ServerRequestInterface.php create mode 100644 vendor/psr/http-message/src/StreamInterface.php create mode 100644 vendor/psr/http-message/src/UploadedFileInterface.php create mode 100644 vendor/psr/http-message/src/UriInterface.php create mode 100644 vendor/psr/simple-cache/.editorconfig create mode 100644 vendor/psr/simple-cache/LICENSE.md create mode 100644 vendor/psr/simple-cache/README.md create mode 100644 vendor/psr/simple-cache/composer.json create mode 100644 vendor/psr/simple-cache/src/CacheException.php create mode 100644 vendor/psr/simple-cache/src/CacheInterface.php create mode 100644 vendor/psr/simple-cache/src/InvalidArgumentException.php diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..9ba9d6b --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "phpoffice/phpspreadsheet": "^3.9" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..a54fb31 --- /dev/null +++ b/composer.lock @@ -0,0 +1,598 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "6ca0e11e13366565618a058133359df4", + "packages": [ + { + "name": "composer/pcre", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", + "phpunit/phpunit": "^8 || ^9" + }, + "type": "library", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-11-12T16:29:46+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "6187e9cc4493da94b9b63eb2315821552015fca9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/6187e9cc4493da94b9b63eb2315821552015fca9", + "reference": "6187e9cc4493da94b9b63eb2315821552015fca9", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.1" + }, + "require-dev": { + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.16", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^10.0", + "vimeo/psalm": "^5.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + } + ], + "time": "2024-10-10T12:33:01+00:00" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "time": "2022-12-06T16:21:08+00:00" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "time": "2022-12-02T22:17:43+00:00" + }, + { + "name": "phpoffice/phpspreadsheet", + "version": "3.9.0", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "414f8a2aa1d8b974b39f577c0677d5ebc96fab36" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/414f8a2aa1d8b974b39f577c0677d5ebc96fab36", + "reference": "414f8a2aa1d8b974b39f577c0677d5ebc96fab36", + "shasum": "" + }, + "require": { + "composer/pcre": "^3.3", + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "maennchen/zipstream-php": "^2.1 || ^3.0", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": "^8.1", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "dompdf/dompdf": "^2.0 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.3", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/3.9.0" + }, + "time": "2025-01-26T05:10:24+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} diff --git a/vendor/autoload.php b/vendor/autoload.php new file mode 100644 index 0000000..6b05c2e --- /dev/null +++ b/vendor/autoload.php @@ -0,0 +1,25 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var \Closure(string):void */ + private static $includeFile; + + /** @var string|null */ + private $vendorDir; + + // PSR-4 + /** + * @var array> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array> + */ + private $prefixDirsPsr4 = array(); + /** + * @var list + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * List of PSR-0 prefixes + * + * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) + * + * @var array>> + */ + private $prefixesPsr0 = array(); + /** + * @var list + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var array + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var array + */ + private $missingClasses = array(); + + /** @var string|null */ + private $apcuPrefix; + + /** + * @var array + */ + private static $registeredLoaders = array(); + + /** + * @param string|null $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + self::initializeIncludeClosure(); + } + + /** + * @return array> + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return list + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return list + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return array Array of classname => path + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + $includeFile = self::$includeFile; + $includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders keyed by their corresponding vendor directories. + * + * @return array + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } + + /** + * @return void + */ + private static function initializeIncludeClosure() + { + if (self::$includeFile !== null) { + return; + } + + /** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + */ + self::$includeFile = \Closure::bind(static function($file) { + include $file; + }, null, null); + } +} diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php new file mode 100644 index 0000000..6d29bff --- /dev/null +++ b/vendor/composer/InstalledVersions.php @@ -0,0 +1,378 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer; + +use Composer\Autoload\ClassLoader; +use Composer\Semver\VersionParser; + +/** + * This class is copied in every Composer installed project and available to all + * + * See also https://getcomposer.org/doc/07-runtime.md#installed-versions + * + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final + */ +class InstalledVersions +{ + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null + */ + private static $installed; + + /** + * @var bool + */ + private static $installedIsLocalDir; + + /** + * @var bool|null + */ + private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array}> + */ + private static $installedByVendor = array(); + + /** + * Returns a list of all package names which are present, either by being installed, replaced or provided + * + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackages() + { + $packages = array(); + foreach (self::getInstalled() as $installed) { + $packages[] = array_keys($installed['versions']); + } + + if (1 === \count($packages)) { + return $packages[0]; + } + + return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); + } + + /** + * Returns a list of all package names with a specific type e.g. 'library' + * + * @param string $type + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackagesByType($type) + { + $packagesByType = array(); + + foreach (self::getInstalled() as $installed) { + foreach ($installed['versions'] as $name => $package) { + if (isset($package['type']) && $package['type'] === $type) { + $packagesByType[] = $name; + } + } + } + + return $packagesByType; + } + + /** + * Checks whether the given package is installed + * + * This also returns true if the package name is provided or replaced by another package + * + * @param string $packageName + * @param bool $includeDevRequirements + * @return bool + */ + public static function isInstalled($packageName, $includeDevRequirements = true) + { + foreach (self::getInstalled() as $installed) { + if (isset($installed['versions'][$packageName])) { + return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; + } + } + + return false; + } + + /** + * Checks whether the given package satisfies a version constraint + * + * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: + * + * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') + * + * @param VersionParser $parser Install composer/semver to have access to this class and functionality + * @param string $packageName + * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package + * @return bool + */ + public static function satisfies(VersionParser $parser, $packageName, $constraint) + { + $constraint = $parser->parseConstraints((string) $constraint); + $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + + return $provided->matches($constraint); + } + + /** + * Returns a version constraint representing all the range(s) which are installed for a given package + * + * It is easier to use this via isInstalled() with the $constraint argument if you need to check + * whether a given version of a package is installed, and not just whether it exists + * + * @param string $packageName + * @return string Version constraint usable with composer/semver + */ + public static function getVersionRanges($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + $ranges = array(); + if (isset($installed['versions'][$packageName]['pretty_version'])) { + $ranges[] = $installed['versions'][$packageName]['pretty_version']; + } + if (array_key_exists('aliases', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); + } + if (array_key_exists('replaced', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); + } + if (array_key_exists('provided', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); + } + + return implode(' || ', $ranges); + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['version'])) { + return null; + } + + return $installed['versions'][$packageName]['version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getPrettyVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['pretty_version'])) { + return null; + } + + return $installed['versions'][$packageName]['pretty_version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference + */ + public static function getReference($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['reference'])) { + return null; + } + + return $installed['versions'][$packageName]['reference']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. + */ + public static function getInstallPath($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @return array + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + */ + public static function getRootPackage() + { + $installed = self::getInstalled(); + + return $installed[0]['root']; + } + + /** + * Returns the raw installed.php data for custom implementations + * + * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. + * @return array[] + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} + */ + public static function getRawData() + { + @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = include __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + + return self::$installed; + } + + /** + * Returns the raw data of all installed.php which are currently loaded for custom implementations + * + * @return array[] + * @psalm-return list}> + */ + public static function getAllRawData() + { + return self::getInstalled(); + } + + /** + * Lets you reload the static array from another file + * + * This is only useful for complex integrations in which a project needs to use + * this class but then also needs to execute another project's autoloader in process, + * and wants to ensure both projects have access to their version of installed.php. + * + * A typical case would be PHPUnit, where it would need to make sure it reads all + * the data it needs from this class, then call reload() with + * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure + * the project in which it runs can then also use this class safely, without + * interference between PHPUnit's dependencies and the project's dependencies. + * + * @param array[] $data A vendor/composer/installed.php data set + * @return void + * + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data + */ + public static function reload($data) + { + self::$installed = $data; + self::$installedByVendor = array(); + + // when using reload, we disable the duplicate protection to ensure that self::$installed data is + // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, + // so we have to assume it does not, and that may result in duplicate data being returned when listing + // all installed packages for example + self::$installedIsLocalDir = false; + } + + /** + * @return array[] + * @psalm-return list}> + */ + private static function getInstalled() + { + if (null === self::$canGetVendors) { + self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); + } + + $installed = array(); + $copiedLocalDir = false; + + if (self::$canGetVendors) { + $selfDir = strtr(__DIR__, '\\', '/'); + foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + $vendorDir = strtr($vendorDir, '\\', '/'); + if (isset(self::$installedByVendor[$vendorDir])) { + $installed[] = self::$installedByVendor[$vendorDir]; + } elseif (is_file($vendorDir.'/composer/installed.php')) { + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require $vendorDir.'/composer/installed.php'; + self::$installedByVendor[$vendorDir] = $required; + $installed[] = $required; + if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { + self::$installed = $required; + self::$installedIsLocalDir = true; + } + } + if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { + $copiedLocalDir = true; + } + } + } + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require __DIR__ . '/installed.php'; + self::$installed = $required; + } else { + self::$installed = array(); + } + } + + if (self::$installed !== array() && !$copiedLocalDir) { + $installed[] = self::$installed; + } + + return $installed; + } +} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE new file mode 100644 index 0000000..f27399a --- /dev/null +++ b/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000..0fb0a2c --- /dev/null +++ b/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000..15a2ff3 --- /dev/null +++ b/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($vendorDir . '/maennchen/zipstream-php/src'), + 'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'), + 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), + 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), + 'PhpOffice\\PhpSpreadsheet\\' => array($vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet'), + 'Matrix\\' => array($vendorDir . '/markbaker/matrix/classes/src'), + 'Composer\\Pcre\\' => array($vendorDir . '/composer/pcre/src'), + 'Complex\\' => array($vendorDir . '/markbaker/complex/classes/src'), +); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 0000000..1356510 --- /dev/null +++ b/vendor/composer/autoload_real.php @@ -0,0 +1,38 @@ +register(true); + + return $loader; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php new file mode 100644 index 0000000..a5a71e3 --- /dev/null +++ b/vendor/composer/autoload_static.php @@ -0,0 +1,81 @@ + + array ( + 'ZipStream\\' => 10, + ), + 'P' => + array ( + 'Psr\\SimpleCache\\' => 16, + 'Psr\\Http\\Message\\' => 17, + 'Psr\\Http\\Client\\' => 16, + 'PhpOffice\\PhpSpreadsheet\\' => 25, + ), + 'M' => + array ( + 'Matrix\\' => 7, + ), + 'C' => + array ( + 'Composer\\Pcre\\' => 14, + 'Complex\\' => 8, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'ZipStream\\' => + array ( + 0 => __DIR__ . '/..' . '/maennchen/zipstream-php/src', + ), + 'Psr\\SimpleCache\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/simple-cache/src', + ), + 'Psr\\Http\\Message\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-factory/src', + 1 => __DIR__ . '/..' . '/psr/http-message/src', + ), + 'Psr\\Http\\Client\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-client/src', + ), + 'PhpOffice\\PhpSpreadsheet\\' => + array ( + 0 => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet', + ), + 'Matrix\\' => + array ( + 0 => __DIR__ . '/..' . '/markbaker/matrix/classes/src', + ), + 'Composer\\Pcre\\' => + array ( + 0 => __DIR__ . '/..' . '/composer/pcre/src', + ), + 'Complex\\' => + array ( + 0 => __DIR__ . '/..' . '/markbaker/complex/classes/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInit62e10e6c8df9afc192311b196c75bb33::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit62e10e6c8df9afc192311b196c75bb33::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit62e10e6c8df9afc192311b196c75bb33::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json new file mode 100644 index 0000000..088de8e --- /dev/null +++ b/vendor/composer/installed.json @@ -0,0 +1,612 @@ +{ + "packages": [ + { + "name": "composer/pcre", + "version": "3.3.2", + "version_normalized": "3.3.2.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", + "phpunit/phpunit": "^8 || ^9" + }, + "time": "2024-11-12T16:29:46+00:00", + "type": "library", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "install-path": "./pcre" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.1.1", + "version_normalized": "3.1.1.0", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "6187e9cc4493da94b9b63eb2315821552015fca9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/6187e9cc4493da94b9b63eb2315821552015fca9", + "reference": "6187e9cc4493da94b9b63eb2315821552015fca9", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.1" + }, + "require-dev": { + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.16", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^10.0", + "vimeo/psalm": "^5.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "time": "2024-10-10T12:33:01+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + } + ], + "install-path": "../maennchen/zipstream-php" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "version_normalized": "3.0.2.0", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "time": "2022-12-06T16:21:08+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "install-path": "../markbaker/complex" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "version_normalized": "3.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "time": "2022-12-02T22:17:43+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "install-path": "../markbaker/matrix" + }, + { + "name": "phpoffice/phpspreadsheet", + "version": "3.9.0", + "version_normalized": "3.9.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "414f8a2aa1d8b974b39f577c0677d5ebc96fab36" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/414f8a2aa1d8b974b39f577c0677d5ebc96fab36", + "reference": "414f8a2aa1d8b974b39f577c0677d5ebc96fab36", + "shasum": "" + }, + "require": { + "composer/pcre": "^3.3", + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "maennchen/zipstream-php": "^2.1 || ^3.0", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": "^8.1", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "dompdf/dompdf": "^2.0 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.3", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "time": "2025-01-26T05:10:24+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/3.9.0" + }, + "install-path": "../phpoffice/phpspreadsheet" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "version_normalized": "1.0.3.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2023-09-23T14:17:50+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "install-path": "../psr/http-client" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "version_normalized": "1.1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2024-04-15T12:06:14+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "install-path": "../psr/http-factory" + }, + { + "name": "psr/http-message", + "version": "2.0", + "version_normalized": "2.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "time": "2023-04-04T09:54:51+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "install-path": "../psr/http-message" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "version_normalized": "3.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "time": "2021-10-29T13:26:27+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "install-path": "../psr/simple-cache" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php new file mode 100644 index 0000000..1bb1eba --- /dev/null +++ b/vendor/composer/installed.php @@ -0,0 +1,104 @@ + array( + 'name' => '__root__', + 'pretty_version' => 'dev-main', + 'version' => 'dev-main', + 'reference' => '1b01a49c5e5d9d204d291982810ddf8d07135e4c', + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => true, + ), + 'versions' => array( + '__root__' => array( + 'pretty_version' => 'dev-main', + 'version' => 'dev-main', + 'reference' => '1b01a49c5e5d9d204d291982810ddf8d07135e4c', + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'composer/pcre' => array( + 'pretty_version' => '3.3.2', + 'version' => '3.3.2.0', + 'reference' => 'b2bed4734f0cc156ee1fe9c0da2550420d99a21e', + 'type' => 'library', + 'install_path' => __DIR__ . '/./pcre', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'maennchen/zipstream-php' => array( + 'pretty_version' => '3.1.1', + 'version' => '3.1.1.0', + 'reference' => '6187e9cc4493da94b9b63eb2315821552015fca9', + 'type' => 'library', + 'install_path' => __DIR__ . '/../maennchen/zipstream-php', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'markbaker/complex' => array( + 'pretty_version' => '3.0.2', + 'version' => '3.0.2.0', + 'reference' => '95c56caa1cf5c766ad6d65b6344b807c1e8405b9', + 'type' => 'library', + 'install_path' => __DIR__ . '/../markbaker/complex', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'markbaker/matrix' => array( + 'pretty_version' => '3.0.1', + 'version' => '3.0.1.0', + 'reference' => '728434227fe21be27ff6d86621a1b13107a2562c', + 'type' => 'library', + 'install_path' => __DIR__ . '/../markbaker/matrix', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'phpoffice/phpspreadsheet' => array( + 'pretty_version' => '3.9.0', + 'version' => '3.9.0.0', + 'reference' => '414f8a2aa1d8b974b39f577c0677d5ebc96fab36', + 'type' => 'library', + 'install_path' => __DIR__ . '/../phpoffice/phpspreadsheet', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-client' => array( + 'pretty_version' => '1.0.3', + 'version' => '1.0.3.0', + 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-client', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-factory' => array( + 'pretty_version' => '1.1.0', + 'version' => '1.1.0.0', + 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-factory', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-message' => array( + 'pretty_version' => '2.0', + 'version' => '2.0.0.0', + 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-message', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/simple-cache' => array( + 'pretty_version' => '3.0.0', + 'version' => '3.0.0.0', + 'reference' => '764e0b3939f5ca87cb904f570ef9be2d78a07865', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/simple-cache', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/vendor/composer/pcre/LICENSE b/vendor/composer/pcre/LICENSE new file mode 100644 index 0000000..c5a282f --- /dev/null +++ b/vendor/composer/pcre/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2021 Composer + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/composer/pcre/README.md b/vendor/composer/pcre/README.md new file mode 100644 index 0000000..4906514 --- /dev/null +++ b/vendor/composer/pcre/README.md @@ -0,0 +1,189 @@ +composer/pcre +============= + +PCRE wrapping library that offers type-safe `preg_*` replacements. + +This library gives you a way to ensure `preg_*` functions do not fail silently, returning +unexpected `null`s that may not be handled. + +As of 3.0 this library enforces [`PREG_UNMATCHED_AS_NULL`](#preg_unmatched_as_null) usage +for all matching and replaceCallback functions, [read more below](#preg_unmatched_as_null) +to understand the implications. + +It thus makes it easier to work with static analysis tools like PHPStan or Psalm as it +simplifies and reduces the possible return values from all the `preg_*` functions which +are quite packed with edge cases. As of v2.2.0 / v3.2.0 the library also comes with a +[PHPStan extension](#phpstan-extension) for parsing regular expressions and giving you even better output types. + +This library is a thin wrapper around `preg_*` functions with [some limitations](#restrictions--limitations). +If you are looking for a richer API to handle regular expressions have a look at +[rawr/t-regx](https://packagist.org/packages/rawr/t-regx) instead. + +[![Continuous Integration](https://github.com/composer/pcre/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/composer/pcre/actions) + + +Installation +------------ + +Install the latest version with: + +```bash +$ composer require composer/pcre +``` + + +Requirements +------------ + +* PHP 7.4.0 is required for 3.x versions +* PHP 7.2.0 is required for 2.x versions +* PHP 5.3.2 is required for 1.x versions + + +Basic usage +----------- + +Instead of: + +```php +if (preg_match('{fo+}', $string, $matches)) { ... } +if (preg_match('{fo+}', $string, $matches, PREG_OFFSET_CAPTURE)) { ... } +if (preg_match_all('{fo+}', $string, $matches)) { ... } +$newString = preg_replace('{fo+}', 'bar', $string); +$newString = preg_replace_callback('{fo+}', function ($match) { return strtoupper($match[0]); }, $string); +$newString = preg_replace_callback_array(['{fo+}' => fn ($match) => strtoupper($match[0])], $string); +$filtered = preg_grep('{[a-z]}', $elements); +$array = preg_split('{[a-z]+}', $string); +``` + +You can now call these on the `Preg` class: + +```php +use Composer\Pcre\Preg; + +if (Preg::match('{fo+}', $string, $matches)) { ... } +if (Preg::matchWithOffsets('{fo+}', $string, $matches)) { ... } +if (Preg::matchAll('{fo+}', $string, $matches)) { ... } +$newString = Preg::replace('{fo+}', 'bar', $string); +$newString = Preg::replaceCallback('{fo+}', function ($match) { return strtoupper($match[0]); }, $string); +$newString = Preg::replaceCallbackArray(['{fo+}' => fn ($match) => strtoupper($match[0])], $string); +$filtered = Preg::grep('{[a-z]}', $elements); +$array = Preg::split('{[a-z]+}', $string); +``` + +The main difference is if anything fails to match/replace/.., it will throw a `Composer\Pcre\PcreException` +instead of returning `null` (or false in some cases), so you can now use the return values safely relying on +the fact that they can only be strings (for replace), ints (for match) or arrays (for grep/split). + +Additionally the `Preg` class provides match methods that return `bool` rather than `int`, for stricter type safety +when the number of pattern matches is not useful: + +```php +use Composer\Pcre\Preg; + +if (Preg::isMatch('{fo+}', $string, $matches)) // bool +if (Preg::isMatchAll('{fo+}', $string, $matches)) // bool +``` + +Finally the `Preg` class provides a few `*StrictGroups` method variants that ensure match groups +are always present and thus non-nullable, making it easier to write type-safe code: + +```php +use Composer\Pcre\Preg; + +// $matches is guaranteed to be an array of strings, if a subpattern does not match and produces a null it will throw +if (Preg::matchStrictGroups('{fo+}', $string, $matches)) +if (Preg::matchAllStrictGroups('{fo+}', $string, $matches)) +``` + +**Note:** This is generally safe to use as long as you do not have optional subpatterns (i.e. `(something)?` +or `(something)*` or branches with a `|` that result in some groups not being matched at all). +A subpattern that can match an empty string like `(.*)` is **not** optional, it will be present as an +empty string in the matches. A non-matching subpattern, even if optional like `(?:foo)?` will anyway not be present in +matches so it is also not a problem to use these with `*StrictGroups` methods. + +If you would prefer a slightly more verbose usage, replacing by-ref arguments by result objects, you can use the `Regex` class: + +```php +use Composer\Pcre\Regex; + +// this is useful when you are just interested in knowing if something matched +// as it returns a bool instead of int(1/0) for match +$bool = Regex::isMatch('{fo+}', $string); + +$result = Regex::match('{fo+}', $string); +if ($result->matched) { something($result->matches); } + +$result = Regex::matchWithOffsets('{fo+}', $string); +if ($result->matched) { something($result->matches); } + +$result = Regex::matchAll('{fo+}', $string); +if ($result->matched && $result->count > 3) { something($result->matches); } + +$newString = Regex::replace('{fo+}', 'bar', $string)->result; +$newString = Regex::replaceCallback('{fo+}', function ($match) { return strtoupper($match[0]); }, $string)->result; +$newString = Regex::replaceCallbackArray(['{fo+}' => fn ($match) => strtoupper($match[0])], $string)->result; +``` + +Note that `preg_grep` and `preg_split` are only callable via the `Preg` class as they do not have +complex return types warranting a specific result object. + +See the [MatchResult](src/MatchResult.php), [MatchWithOffsetsResult](src/MatchWithOffsetsResult.php), [MatchAllResult](src/MatchAllResult.php), +[MatchAllWithOffsetsResult](src/MatchAllWithOffsetsResult.php), and [ReplaceResult](src/ReplaceResult.php) class sources for more details. + +Restrictions / Limitations +-------------------------- + +Due to type safety requirements a few restrictions are in place. + +- matching using `PREG_OFFSET_CAPTURE` is made available via `matchWithOffsets` and `matchAllWithOffsets`. + You cannot pass the flag to `match`/`matchAll`. +- `Preg::split` will also reject `PREG_SPLIT_OFFSET_CAPTURE` and you should use `splitWithOffsets` + instead. +- `matchAll` rejects `PREG_SET_ORDER` as it also changes the shape of the returned matches. There + is no alternative provided as you can fairly easily code around it. +- `preg_filter` is not supported as it has a rather crazy API, most likely you should rather + use `Preg::grep` in combination with some loop and `Preg::replace`. +- `replace`, `replaceCallback` and `replaceCallbackArray` do not support an array `$subject`, + only simple strings. +- As of 2.0, the library always uses `PREG_UNMATCHED_AS_NULL` for matching, which offers [much + saner/more predictable results](#preg_unmatched_as_null). As of 3.0 the flag is also set for + `replaceCallback` and `replaceCallbackArray`. + +#### PREG_UNMATCHED_AS_NULL + +As of 2.0, this library always uses PREG_UNMATCHED_AS_NULL for all `match*` and `isMatch*` +functions. As of 3.0 it is also done for `replaceCallback` and `replaceCallbackArray`. + +This means your matches will always contain all matching groups, either as null if unmatched +or as string if it matched. + +The advantages in clarity and predictability are clearer if you compare the two outputs of +running this with and without PREG_UNMATCHED_AS_NULL in $flags: + +```php +preg_match('/(a)(b)*(c)(d)*/', 'ac', $matches, $flags); +``` + +| no flag | PREG_UNMATCHED_AS_NULL | +| --- | --- | +| array (size=4) | array (size=5) | +| 0 => string 'ac' (length=2) | 0 => string 'ac' (length=2) | +| 1 => string 'a' (length=1) | 1 => string 'a' (length=1) | +| 2 => string '' (length=0) | 2 => null | +| 3 => string 'c' (length=1) | 3 => string 'c' (length=1) | +| | 4 => null | +| group 2 (any unmatched group preceding one that matched) is set to `''`. You cannot tell if it matched an empty string or did not match at all | group 2 is `null` when unmatched and a string if it matched, easy to check for | +| group 4 (any optional group without a matching one following) is missing altogether. So you have to check with `isset()`, but really you want `isset($m[4]) && $m[4] !== ''` for safety unless you are very careful to check that a non-optional group follows it | group 4 is always set, and null in this case as there was no match, easy to check for with `$m[4] !== null` | + +PHPStan Extension +----------------- + +To use the PHPStan extension if you do not use `phpstan/extension-installer` you can include `vendor/composer/pcre/extension.neon` in your PHPStan config. + +The extension provides much better type information for $matches as well as regex validation where possible. + +License +------- + +composer/pcre is licensed under the MIT License, see the LICENSE file for details. diff --git a/vendor/composer/pcre/composer.json b/vendor/composer/pcre/composer.json new file mode 100644 index 0000000..d3a7e67 --- /dev/null +++ b/vendor/composer/pcre/composer.json @@ -0,0 +1,54 @@ +{ + "name": "composer/pcre", + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "type": "library", + "license": "MIT", + "keywords": [ + "pcre", + "regex", + "preg", + "regular expression" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8 || ^9", + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Composer\\Pcre\\": "tests" + } + }, + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "scripts": { + "test": "@php vendor/bin/phpunit", + "phpstan": "@php phpstan analyse" + } +} diff --git a/vendor/composer/pcre/extension.neon b/vendor/composer/pcre/extension.neon new file mode 100644 index 0000000..b9cea11 --- /dev/null +++ b/vendor/composer/pcre/extension.neon @@ -0,0 +1,22 @@ +# composer/pcre PHPStan extensions +# +# These can be reused by third party packages by including 'vendor/composer/pcre/extension.neon' +# in your phpstan config + +services: + - + class: Composer\Pcre\PHPStan\PregMatchParameterOutTypeExtension + tags: + - phpstan.staticMethodParameterOutTypeExtension + - + class: Composer\Pcre\PHPStan\PregMatchTypeSpecifyingExtension + tags: + - phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension + - + class: Composer\Pcre\PHPStan\PregReplaceCallbackClosureTypeExtension + tags: + - phpstan.staticMethodParameterClosureTypeExtension + +rules: + - Composer\Pcre\PHPStan\UnsafeStrictGroupsCallRule + - Composer\Pcre\PHPStan\InvalidRegexPatternRule diff --git a/vendor/composer/pcre/src/MatchAllResult.php b/vendor/composer/pcre/src/MatchAllResult.php new file mode 100644 index 0000000..b22b52d --- /dev/null +++ b/vendor/composer/pcre/src/MatchAllResult.php @@ -0,0 +1,46 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class MatchAllResult +{ + /** + * An array of match group => list of matched strings + * + * @readonly + * @var array> + */ + public $matches; + + /** + * @readonly + * @var 0|positive-int + */ + public $count; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + * @param array> $matches + */ + public function __construct(int $count, array $matches) + { + $this->matches = $matches; + $this->matched = (bool) $count; + $this->count = $count; + } +} diff --git a/vendor/composer/pcre/src/MatchAllStrictGroupsResult.php b/vendor/composer/pcre/src/MatchAllStrictGroupsResult.php new file mode 100644 index 0000000..b7ec397 --- /dev/null +++ b/vendor/composer/pcre/src/MatchAllStrictGroupsResult.php @@ -0,0 +1,46 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class MatchAllStrictGroupsResult +{ + /** + * An array of match group => list of matched strings + * + * @readonly + * @var array> + */ + public $matches; + + /** + * @readonly + * @var 0|positive-int + */ + public $count; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + * @param array> $matches + */ + public function __construct(int $count, array $matches) + { + $this->matches = $matches; + $this->matched = (bool) $count; + $this->count = $count; + } +} diff --git a/vendor/composer/pcre/src/MatchAllWithOffsetsResult.php b/vendor/composer/pcre/src/MatchAllWithOffsetsResult.php new file mode 100644 index 0000000..032a02c --- /dev/null +++ b/vendor/composer/pcre/src/MatchAllWithOffsetsResult.php @@ -0,0 +1,48 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class MatchAllWithOffsetsResult +{ + /** + * An array of match group => list of matches, every match being a pair of string matched + offset in bytes (or -1 if no match) + * + * @readonly + * @var array> + * @phpstan-var array}>> + */ + public $matches; + + /** + * @readonly + * @var 0|positive-int + */ + public $count; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + * @param array> $matches + * @phpstan-param array}>> $matches + */ + public function __construct(int $count, array $matches) + { + $this->matches = $matches; + $this->matched = (bool) $count; + $this->count = $count; + } +} diff --git a/vendor/composer/pcre/src/MatchResult.php b/vendor/composer/pcre/src/MatchResult.php new file mode 100644 index 0000000..e951a5e --- /dev/null +++ b/vendor/composer/pcre/src/MatchResult.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class MatchResult +{ + /** + * An array of match group => string matched + * + * @readonly + * @var array + */ + public $matches; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + * @param array $matches + */ + public function __construct(int $count, array $matches) + { + $this->matches = $matches; + $this->matched = (bool) $count; + } +} diff --git a/vendor/composer/pcre/src/MatchStrictGroupsResult.php b/vendor/composer/pcre/src/MatchStrictGroupsResult.php new file mode 100644 index 0000000..126ee62 --- /dev/null +++ b/vendor/composer/pcre/src/MatchStrictGroupsResult.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class MatchStrictGroupsResult +{ + /** + * An array of match group => string matched + * + * @readonly + * @var array + */ + public $matches; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + * @param array $matches + */ + public function __construct(int $count, array $matches) + { + $this->matches = $matches; + $this->matched = (bool) $count; + } +} diff --git a/vendor/composer/pcre/src/MatchWithOffsetsResult.php b/vendor/composer/pcre/src/MatchWithOffsetsResult.php new file mode 100644 index 0000000..ba4d4bc --- /dev/null +++ b/vendor/composer/pcre/src/MatchWithOffsetsResult.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class MatchWithOffsetsResult +{ + /** + * An array of match group => pair of string matched + offset in bytes (or -1 if no match) + * + * @readonly + * @var array + * @phpstan-var array}> + */ + public $matches; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + * @param array $matches + * @phpstan-param array}> $matches + */ + public function __construct(int $count, array $matches) + { + $this->matches = $matches; + $this->matched = (bool) $count; + } +} diff --git a/vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php b/vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php new file mode 100644 index 0000000..8a05fb2 --- /dev/null +++ b/vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php @@ -0,0 +1,142 @@ + + */ +class InvalidRegexPatternRule implements Rule +{ + public function getNodeType(): string + { + return StaticCall::class; + } + + public function processNode(Node $node, Scope $scope): array + { + $patterns = $this->extractPatterns($node, $scope); + + $errors = []; + foreach ($patterns as $pattern) { + $errorMessage = $this->validatePattern($pattern); + if ($errorMessage === null) { + continue; + } + + $errors[] = RuleErrorBuilder::message(sprintf('Regex pattern is invalid: %s', $errorMessage))->identifier('regexp.pattern')->build(); + } + + return $errors; + } + + /** + * @return string[] + */ + private function extractPatterns(StaticCall $node, Scope $scope): array + { + if (!$node->class instanceof FullyQualified) { + return []; + } + $isRegex = $node->class->toString() === Regex::class; + $isPreg = $node->class->toString() === Preg::class; + if (!$isRegex && !$isPreg) { + return []; + } + if (!$node->name instanceof Node\Identifier || !Preg::isMatch('{^(match|isMatch|grep|replace|split)}', $node->name->name)) { + return []; + } + + $functionName = $node->name->name; + if (!isset($node->getArgs()[0])) { + return []; + } + + $patternNode = $node->getArgs()[0]->value; + $patternType = $scope->getType($patternNode); + + $patternStrings = []; + + foreach ($patternType->getConstantStrings() as $constantStringType) { + if ($functionName === 'replaceCallbackArray') { + continue; + } + + $patternStrings[] = $constantStringType->getValue(); + } + + foreach ($patternType->getConstantArrays() as $constantArrayType) { + if ( + in_array($functionName, [ + 'replace', + 'replaceCallback', + ], true) + ) { + foreach ($constantArrayType->getValueTypes() as $arrayKeyType) { + foreach ($arrayKeyType->getConstantStrings() as $constantString) { + $patternStrings[] = $constantString->getValue(); + } + } + } + + if ($functionName !== 'replaceCallbackArray') { + continue; + } + + foreach ($constantArrayType->getKeyTypes() as $arrayKeyType) { + foreach ($arrayKeyType->getConstantStrings() as $constantString) { + $patternStrings[] = $constantString->getValue(); + } + } + } + + return $patternStrings; + } + + private function validatePattern(string $pattern): ?string + { + try { + $msg = null; + $prev = set_error_handler(function (int $severity, string $message, string $file) use (&$msg): bool { + $msg = preg_replace("#^preg_match(_all)?\\(.*?\\): #", '', $message); + + return true; + }); + + if ($pattern === '') { + return 'Empty string is not a valid regular expression'; + } + + Preg::match($pattern, ''); + if ($msg !== null) { + return $msg; + } + } catch (PcreException $e) { + if ($e->getCode() === PREG_INTERNAL_ERROR && $msg !== null) { + return $msg; + } + + return preg_replace('{.*? failed executing ".*": }', '', $e->getMessage()); + } finally { + restore_error_handler(); + } + + return null; + } + +} diff --git a/vendor/composer/pcre/src/PHPStan/PregMatchFlags.php b/vendor/composer/pcre/src/PHPStan/PregMatchFlags.php new file mode 100644 index 0000000..aa30ab3 --- /dev/null +++ b/vendor/composer/pcre/src/PHPStan/PregMatchFlags.php @@ -0,0 +1,70 @@ +getType($flagsArg->value); + + $constantScalars = $flagsType->getConstantScalarValues(); + if ($constantScalars === []) { + return null; + } + + $internalFlagsTypes = []; + foreach ($flagsType->getConstantScalarValues() as $constantScalarValue) { + if (!is_int($constantScalarValue)) { + return null; + } + + $internalFlagsTypes[] = new ConstantIntegerType($constantScalarValue | PREG_UNMATCHED_AS_NULL); + } + return TypeCombinator::union(...$internalFlagsTypes); + } + + static public function removeNullFromMatches(Type $matchesType): Type + { + return TypeTraverser::map($matchesType, static function (Type $type, callable $traverse): Type { + if ($type instanceof UnionType || $type instanceof IntersectionType) { + return $traverse($type); + } + + if ($type instanceof ConstantArrayType) { + return new ConstantArrayType( + $type->getKeyTypes(), + array_map(static function (Type $valueType) use ($traverse): Type { + return $traverse($valueType); + }, $type->getValueTypes()), + $type->getNextAutoIndexes(), + [], + $type->isList() + ); + } + + if ($type instanceof ArrayType) { + return new ArrayType($type->getKeyType(), $traverse($type->getItemType())); + } + + return TypeCombinator::removeNull($type); + }); + } + +} diff --git a/vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php b/vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php new file mode 100644 index 0000000..e0d6020 --- /dev/null +++ b/vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php @@ -0,0 +1,65 @@ +regexShapeMatcher = $regexShapeMatcher; + } + + public function isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter): bool + { + return + $methodReflection->getDeclaringClass()->getName() === Preg::class + && in_array($methodReflection->getName(), [ + 'match', 'isMatch', 'matchStrictGroups', 'isMatchStrictGroups', + 'matchAll', 'isMatchAll', 'matchAllStrictGroups', 'isMatchAllStrictGroups' + ], true) + && $parameter->getName() === 'matches'; + } + + public function getParameterOutTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope): ?Type + { + $args = $methodCall->getArgs(); + $patternArg = $args[0] ?? null; + $matchesArg = $args[2] ?? null; + $flagsArg = $args[3] ?? null; + + if ( + $patternArg === null || $matchesArg === null + ) { + return null; + } + + $flagsType = PregMatchFlags::getType($flagsArg, $scope); + if ($flagsType === null) { + return null; + } + + if (stripos($methodReflection->getName(), 'matchAll') !== false) { + return $this->regexShapeMatcher->matchAllExpr($patternArg->value, $flagsType, TrinaryLogic::createMaybe(), $scope); + } + + return $this->regexShapeMatcher->matchExpr($patternArg->value, $flagsType, TrinaryLogic::createMaybe(), $scope); + } + +} diff --git a/vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php b/vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php new file mode 100644 index 0000000..3db0ce0 --- /dev/null +++ b/vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php @@ -0,0 +1,119 @@ +regexShapeMatcher = $regexShapeMatcher; + } + + public function setTypeSpecifier(TypeSpecifier $typeSpecifier): void + { + $this->typeSpecifier = $typeSpecifier; + } + + public function getClass(): string + { + return Preg::class; + } + + public function isStaticMethodSupported(MethodReflection $methodReflection, StaticCall $node, TypeSpecifierContext $context): bool + { + return in_array($methodReflection->getName(), [ + 'match', 'isMatch', 'matchStrictGroups', 'isMatchStrictGroups', + 'matchAll', 'isMatchAll', 'matchAllStrictGroups', 'isMatchAllStrictGroups' + ], true) + && !$context->null(); + } + + public function specifyTypes(MethodReflection $methodReflection, StaticCall $node, Scope $scope, TypeSpecifierContext $context): SpecifiedTypes + { + $args = $node->getArgs(); + $patternArg = $args[0] ?? null; + $matchesArg = $args[2] ?? null; + $flagsArg = $args[3] ?? null; + + if ( + $patternArg === null || $matchesArg === null + ) { + return new SpecifiedTypes(); + } + + $flagsType = PregMatchFlags::getType($flagsArg, $scope); + if ($flagsType === null) { + return new SpecifiedTypes(); + } + + if (stripos($methodReflection->getName(), 'matchAll') !== false) { + $matchedType = $this->regexShapeMatcher->matchAllExpr($patternArg->value, $flagsType, TrinaryLogic::createFromBoolean($context->true()), $scope); + } else { + $matchedType = $this->regexShapeMatcher->matchExpr($patternArg->value, $flagsType, TrinaryLogic::createFromBoolean($context->true()), $scope); + } + + if ($matchedType === null) { + return new SpecifiedTypes(); + } + + if ( + in_array($methodReflection->getName(), ['matchStrictGroups', 'isMatchStrictGroups', 'matchAllStrictGroups', 'isMatchAllStrictGroups'], true) + ) { + $matchedType = PregMatchFlags::removeNullFromMatches($matchedType); + } + + $overwrite = false; + if ($context->false()) { + $overwrite = true; + $context = $context->negate(); + } + + // @phpstan-ignore function.alreadyNarrowedType + if (method_exists('PHPStan\Analyser\SpecifiedTypes', 'setRootExpr')) { + $typeSpecifier = $this->typeSpecifier->create( + $matchesArg->value, + $matchedType, + $context, + $scope + )->setRootExpr($node); + + return $overwrite ? $typeSpecifier->setAlwaysOverwriteTypes() : $typeSpecifier; + } + + // @phpstan-ignore arguments.count + return $this->typeSpecifier->create( + $matchesArg->value, + $matchedType, + $context, + // @phpstan-ignore argument.type + $overwrite, + $scope, + $node + ); + } +} diff --git a/vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php b/vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php new file mode 100644 index 0000000..7b95367 --- /dev/null +++ b/vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php @@ -0,0 +1,91 @@ +regexShapeMatcher = $regexShapeMatcher; + } + + public function isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter): bool + { + return in_array($methodReflection->getDeclaringClass()->getName(), [Preg::class, Regex::class], true) + && in_array($methodReflection->getName(), ['replaceCallback', 'replaceCallbackStrictGroups'], true) + && $parameter->getName() === 'replacement'; + } + + public function getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope): ?Type + { + $args = $methodCall->getArgs(); + $patternArg = $args[0] ?? null; + $flagsArg = $args[5] ?? null; + + if ( + $patternArg === null + ) { + return null; + } + + $flagsType = PregMatchFlags::getType($flagsArg, $scope); + + $matchesType = $this->regexShapeMatcher->matchExpr($patternArg->value, $flagsType, TrinaryLogic::createYes(), $scope); + if ($matchesType === null) { + return null; + } + + if ($methodReflection->getName() === 'replaceCallbackStrictGroups' && count($matchesType->getConstantArrays()) === 1) { + $matchesType = $matchesType->getConstantArrays()[0]; + $matchesType = new ConstantArrayType( + $matchesType->getKeyTypes(), + array_map(static function (Type $valueType): Type { + if (count($valueType->getConstantArrays()) === 1) { + $valueTypeArray = $valueType->getConstantArrays()[0]; + return new ConstantArrayType( + $valueTypeArray->getKeyTypes(), + array_map(static function (Type $valueType): Type { + return TypeCombinator::removeNull($valueType); + }, $valueTypeArray->getValueTypes()), + $valueTypeArray->getNextAutoIndexes(), + [], + $valueTypeArray->isList() + ); + } + return TypeCombinator::removeNull($valueType); + }, $matchesType->getValueTypes()), + $matchesType->getNextAutoIndexes(), + [], + $matchesType->isList() + ); + } + + return new ClosureType( + [ + new NativeParameterReflection($parameter->getName(), $parameter->isOptional(), $matchesType, $parameter->passedByReference(), $parameter->isVariadic(), $parameter->getDefaultValue()), + ], + new StringType() + ); + } +} diff --git a/vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php b/vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php new file mode 100644 index 0000000..5bced50 --- /dev/null +++ b/vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php @@ -0,0 +1,112 @@ + + */ +final class UnsafeStrictGroupsCallRule implements Rule +{ + /** + * @var RegexArrayShapeMatcher + */ + private $regexShapeMatcher; + + public function __construct(RegexArrayShapeMatcher $regexShapeMatcher) + { + $this->regexShapeMatcher = $regexShapeMatcher; + } + + public function getNodeType(): string + { + return StaticCall::class; + } + + public function processNode(Node $node, Scope $scope): array + { + if (!$node->class instanceof FullyQualified) { + return []; + } + $isRegex = $node->class->toString() === Regex::class; + $isPreg = $node->class->toString() === Preg::class; + if (!$isRegex && !$isPreg) { + return []; + } + if (!$node->name instanceof Node\Identifier || !in_array($node->name->name, ['matchStrictGroups', 'isMatchStrictGroups', 'matchAllStrictGroups', 'isMatchAllStrictGroups'], true)) { + return []; + } + + $args = $node->getArgs(); + if (!isset($args[0])) { + return []; + } + + $patternArg = $args[0] ?? null; + if ($isPreg) { + if (!isset($args[2])) { // no matches set, skip as the matches won't be used anyway + return []; + } + $flagsArg = $args[3] ?? null; + } else { + $flagsArg = $args[2] ?? null; + } + + if ($patternArg === null) { + return []; + } + + $flagsType = PregMatchFlags::getType($flagsArg, $scope); + if ($flagsType === null) { + return []; + } + + $matchedType = $this->regexShapeMatcher->matchExpr($patternArg->value, $flagsType, TrinaryLogic::createYes(), $scope); + if ($matchedType === null) { + return [ + RuleErrorBuilder::message(sprintf('The %s call is potentially unsafe as $matches\' type could not be inferred.', $node->name->name)) + ->identifier('composerPcre.maybeUnsafeStrictGroups') + ->build(), + ]; + } + + if (count($matchedType->getConstantArrays()) === 1) { + $matchedType = $matchedType->getConstantArrays()[0]; + $nullableGroups = []; + foreach ($matchedType->getValueTypes() as $index => $type) { + if (TypeCombinator::containsNull($type)) { + $nullableGroups[] = $matchedType->getKeyTypes()[$index]->getValue(); + } + } + + if (\count($nullableGroups) > 0) { + return [ + RuleErrorBuilder::message(sprintf( + 'The %s call is unsafe as match group%s "%s" %s optional and may be null.', + $node->name->name, + \count($nullableGroups) > 1 ? 's' : '', + implode('", "', $nullableGroups), + \count($nullableGroups) > 1 ? 'are' : 'is' + ))->identifier('composerPcre.unsafeStrictGroups')->build(), + ]; + } + } + + return []; + } +} diff --git a/vendor/composer/pcre/src/PcreException.php b/vendor/composer/pcre/src/PcreException.php new file mode 100644 index 0000000..23d9327 --- /dev/null +++ b/vendor/composer/pcre/src/PcreException.php @@ -0,0 +1,55 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +class PcreException extends \RuntimeException +{ + /** + * @param string $function + * @param string|string[] $pattern + * @return self + */ + public static function fromFunction($function, $pattern) + { + $code = preg_last_error(); + + if (is_array($pattern)) { + $pattern = implode(', ', $pattern); + } + + return new PcreException($function.'(): failed executing "'.$pattern.'": '.self::pcreLastErrorMessage($code), $code); + } + + /** + * @param int $code + * @return string + */ + private static function pcreLastErrorMessage($code) + { + if (function_exists('preg_last_error_msg')) { + return preg_last_error_msg(); + } + + $constants = get_defined_constants(true); + if (!isset($constants['pcre']) || !is_array($constants['pcre'])) { + return 'UNDEFINED_ERROR'; + } + + foreach ($constants['pcre'] as $const => $val) { + if ($val === $code && substr($const, -6) === '_ERROR') { + return $const; + } + } + + return 'UNDEFINED_ERROR'; + } +} diff --git a/vendor/composer/pcre/src/Preg.php b/vendor/composer/pcre/src/Preg.php new file mode 100644 index 0000000..400abbf --- /dev/null +++ b/vendor/composer/pcre/src/Preg.php @@ -0,0 +1,430 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +class Preg +{ + /** @internal */ + public const ARRAY_MSG = '$subject as an array is not supported. You can use \'foreach\' instead.'; + /** @internal */ + public const INVALID_TYPE_MSG = '$subject must be a string, %s given.'; + + /** + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @return 0|1 + * + * @param-out array $matches + */ + public static function match(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int + { + self::checkOffsetCapture($flags, 'matchWithOffsets'); + + $result = preg_match($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL, $offset); + if ($result === false) { + throw PcreException::fromFunction('preg_match', $pattern); + } + + return $result; + } + + /** + * Variant of `match()` which outputs non-null matches (or throws) + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @return 0|1 + * @throws UnexpectedNullMatchException + * + * @param-out array $matches + */ + public static function matchStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int + { + $result = self::match($pattern, $subject, $matchesInternal, $flags, $offset); + $matches = self::enforceNonNullMatches($pattern, $matchesInternal, 'match'); + + return $result; + } + + /** + * Runs preg_match with PREG_OFFSET_CAPTURE + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL and PREG_OFFSET_CAPTURE are always set, no other flags are supported + * @return 0|1 + * + * @param-out array}> $matches + */ + public static function matchWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): int + { + $result = preg_match($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL | PREG_OFFSET_CAPTURE, $offset); + if ($result === false) { + throw PcreException::fromFunction('preg_match', $pattern); + } + + return $result; + } + + /** + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @return 0|positive-int + * + * @param-out array> $matches + */ + public static function matchAll(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int + { + self::checkOffsetCapture($flags, 'matchAllWithOffsets'); + self::checkSetOrder($flags); + + $result = preg_match_all($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL, $offset); + if (!is_int($result)) { // PHP < 8 may return null, 8+ returns int|false + throw PcreException::fromFunction('preg_match_all', $pattern); + } + + return $result; + } + + /** + * Variant of `match()` which outputs non-null matches (or throws) + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @return 0|positive-int + * @throws UnexpectedNullMatchException + * + * @param-out array> $matches + */ + public static function matchAllStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int + { + $result = self::matchAll($pattern, $subject, $matchesInternal, $flags, $offset); + $matches = self::enforceNonNullMatchAll($pattern, $matchesInternal, 'matchAll'); + + return $result; + } + + /** + * Runs preg_match_all with PREG_OFFSET_CAPTURE + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL and PREG_MATCH_OFFSET are always set, no other flags are supported + * @return 0|positive-int + * + * @param-out array}>> $matches + */ + public static function matchAllWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): int + { + self::checkSetOrder($flags); + + $result = preg_match_all($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL | PREG_OFFSET_CAPTURE, $offset); + if (!is_int($result)) { // PHP < 8 may return null, 8+ returns int|false + throw PcreException::fromFunction('preg_match_all', $pattern); + } + + return $result; + } + + /** + * @param string|string[] $pattern + * @param string|string[] $replacement + * @param string $subject + * @param int $count Set by method + * + * @param-out int<0, max> $count + */ + public static function replace($pattern, $replacement, $subject, int $limit = -1, ?int &$count = null): string + { + if (!is_scalar($subject)) { + if (is_array($subject)) { + throw new \InvalidArgumentException(static::ARRAY_MSG); + } + + throw new \TypeError(sprintf(static::INVALID_TYPE_MSG, gettype($subject))); + } + + $result = preg_replace($pattern, $replacement, $subject, $limit, $count); + if ($result === null) { + throw PcreException::fromFunction('preg_replace', $pattern); + } + + return $result; + } + + /** + * @param string|string[] $pattern + * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array}>): string) : callable(array): string) $replacement + * @param string $subject + * @param int $count Set by method + * @param int-mask $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set + * + * @param-out int<0, max> $count + */ + public static function replaceCallback($pattern, callable $replacement, $subject, int $limit = -1, ?int &$count = null, int $flags = 0): string + { + if (!is_scalar($subject)) { + if (is_array($subject)) { + throw new \InvalidArgumentException(static::ARRAY_MSG); + } + + throw new \TypeError(sprintf(static::INVALID_TYPE_MSG, gettype($subject))); + } + + $result = preg_replace_callback($pattern, $replacement, $subject, $limit, $count, $flags | PREG_UNMATCHED_AS_NULL); + if ($result === null) { + throw PcreException::fromFunction('preg_replace_callback', $pattern); + } + + return $result; + } + + /** + * Variant of `replaceCallback()` which outputs non-null matches (or throws) + * + * @param string $pattern + * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array}>): string) : callable(array): string) $replacement + * @param string $subject + * @param int $count Set by method + * @param int-mask $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set + * + * @param-out int<0, max> $count + */ + public static function replaceCallbackStrictGroups(string $pattern, callable $replacement, $subject, int $limit = -1, ?int &$count = null, int $flags = 0): string + { + return self::replaceCallback($pattern, function (array $matches) use ($pattern, $replacement) { + return $replacement(self::enforceNonNullMatches($pattern, $matches, 'replaceCallback')); + }, $subject, $limit, $count, $flags); + } + + /** + * @param ($flags is PREG_OFFSET_CAPTURE ? (array}>): string>) : array): string>) $pattern + * @param string $subject + * @param int $count Set by method + * @param int-mask $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set + * + * @param-out int<0, max> $count + */ + public static function replaceCallbackArray(array $pattern, $subject, int $limit = -1, ?int &$count = null, int $flags = 0): string + { + if (!is_scalar($subject)) { + if (is_array($subject)) { + throw new \InvalidArgumentException(static::ARRAY_MSG); + } + + throw new \TypeError(sprintf(static::INVALID_TYPE_MSG, gettype($subject))); + } + + $result = preg_replace_callback_array($pattern, $subject, $limit, $count, $flags | PREG_UNMATCHED_AS_NULL); + if ($result === null) { + $pattern = array_keys($pattern); + throw PcreException::fromFunction('preg_replace_callback_array', $pattern); + } + + return $result; + } + + /** + * @param int-mask $flags PREG_SPLIT_NO_EMPTY or PREG_SPLIT_DELIM_CAPTURE + * @return list + */ + public static function split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array + { + if (($flags & PREG_SPLIT_OFFSET_CAPTURE) !== 0) { + throw new \InvalidArgumentException('PREG_SPLIT_OFFSET_CAPTURE is not supported as it changes the type of $matches, use splitWithOffsets() instead'); + } + + $result = preg_split($pattern, $subject, $limit, $flags); + if ($result === false) { + throw PcreException::fromFunction('preg_split', $pattern); + } + + return $result; + } + + /** + * @param int-mask $flags PREG_SPLIT_NO_EMPTY or PREG_SPLIT_DELIM_CAPTURE, PREG_SPLIT_OFFSET_CAPTURE is always set + * @return list + * @phpstan-return list}> + */ + public static function splitWithOffsets(string $pattern, string $subject, int $limit = -1, int $flags = 0): array + { + $result = preg_split($pattern, $subject, $limit, $flags | PREG_SPLIT_OFFSET_CAPTURE); + if ($result === false) { + throw PcreException::fromFunction('preg_split', $pattern); + } + + return $result; + } + + /** + * @template T of string|\Stringable + * @param string $pattern + * @param array $array + * @param int-mask $flags PREG_GREP_INVERT + * @return array + */ + public static function grep(string $pattern, array $array, int $flags = 0): array + { + $result = preg_grep($pattern, $array, $flags); + if ($result === false) { + throw PcreException::fromFunction('preg_grep', $pattern); + } + + return $result; + } + + /** + * Variant of match() which returns a bool instead of int + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * + * @param-out array $matches + */ + public static function isMatch(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool + { + return (bool) static::match($pattern, $subject, $matches, $flags, $offset); + } + + /** + * Variant of `isMatch()` which outputs non-null matches (or throws) + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @throws UnexpectedNullMatchException + * + * @param-out array $matches + */ + public static function isMatchStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool + { + return (bool) self::matchStrictGroups($pattern, $subject, $matches, $flags, $offset); + } + + /** + * Variant of matchAll() which returns a bool instead of int + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * + * @param-out array> $matches + */ + public static function isMatchAll(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool + { + return (bool) static::matchAll($pattern, $subject, $matches, $flags, $offset); + } + + /** + * Variant of `isMatchAll()` which outputs non-null matches (or throws) + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * + * @param-out array> $matches + */ + public static function isMatchAllStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool + { + return (bool) self::matchAllStrictGroups($pattern, $subject, $matches, $flags, $offset); + } + + /** + * Variant of matchWithOffsets() which returns a bool instead of int + * + * Runs preg_match with PREG_OFFSET_CAPTURE + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * + * @param-out array}> $matches + */ + public static function isMatchWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): bool + { + return (bool) static::matchWithOffsets($pattern, $subject, $matches, $flags, $offset); + } + + /** + * Variant of matchAllWithOffsets() which returns a bool instead of int + * + * Runs preg_match_all with PREG_OFFSET_CAPTURE + * + * @param non-empty-string $pattern + * @param array $matches Set by method + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * + * @param-out array}>> $matches + */ + public static function isMatchAllWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): bool + { + return (bool) static::matchAllWithOffsets($pattern, $subject, $matches, $flags, $offset); + } + + private static function checkOffsetCapture(int $flags, string $useFunctionName): void + { + if (($flags & PREG_OFFSET_CAPTURE) !== 0) { + throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the type of $matches, use ' . $useFunctionName . '() instead'); + } + } + + private static function checkSetOrder(int $flags): void + { + if (($flags & PREG_SET_ORDER) !== 0) { + throw new \InvalidArgumentException('PREG_SET_ORDER is not supported as it changes the type of $matches'); + } + } + + /** + * @param array $matches + * @return array + * @throws UnexpectedNullMatchException + */ + private static function enforceNonNullMatches(string $pattern, array $matches, string $variantMethod) + { + foreach ($matches as $group => $match) { + if (is_string($match) || (is_array($match) && is_string($match[0]))) { + continue; + } + + throw new UnexpectedNullMatchException('Pattern "'.$pattern.'" had an unexpected unmatched group "'.$group.'", make sure the pattern always matches or use '.$variantMethod.'() instead.'); + } + + /** @var array */ + return $matches; + } + + /** + * @param array> $matches + * @return array> + * @throws UnexpectedNullMatchException + */ + private static function enforceNonNullMatchAll(string $pattern, array $matches, string $variantMethod) + { + foreach ($matches as $group => $groupMatches) { + foreach ($groupMatches as $match) { + if (null === $match) { + throw new UnexpectedNullMatchException('Pattern "'.$pattern.'" had an unexpected unmatched group "'.$group.'", make sure the pattern always matches or use '.$variantMethod.'() instead.'); + } + } + } + + /** @var array> */ + return $matches; + } +} diff --git a/vendor/composer/pcre/src/Regex.php b/vendor/composer/pcre/src/Regex.php new file mode 100644 index 0000000..038cf06 --- /dev/null +++ b/vendor/composer/pcre/src/Regex.php @@ -0,0 +1,176 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +class Regex +{ + /** + * @param non-empty-string $pattern + */ + public static function isMatch(string $pattern, string $subject, int $offset = 0): bool + { + return (bool) Preg::match($pattern, $subject, $matches, 0, $offset); + } + + /** + * @param non-empty-string $pattern + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + */ + public static function match(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchResult + { + self::checkOffsetCapture($flags, 'matchWithOffsets'); + + $count = Preg::match($pattern, $subject, $matches, $flags, $offset); + + return new MatchResult($count, $matches); + } + + /** + * Variant of `match()` which returns non-null matches (or throws) + * + * @param non-empty-string $pattern + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @throws UnexpectedNullMatchException + */ + public static function matchStrictGroups(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchStrictGroupsResult + { + // @phpstan-ignore composerPcre.maybeUnsafeStrictGroups + $count = Preg::matchStrictGroups($pattern, $subject, $matches, $flags, $offset); + + return new MatchStrictGroupsResult($count, $matches); + } + + /** + * Runs preg_match with PREG_OFFSET_CAPTURE + * + * @param non-empty-string $pattern + * @param int-mask $flags PREG_UNMATCHED_AS_NULL and PREG_MATCH_OFFSET are always set, no other flags are supported + */ + public static function matchWithOffsets(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchWithOffsetsResult + { + $count = Preg::matchWithOffsets($pattern, $subject, $matches, $flags, $offset); + + return new MatchWithOffsetsResult($count, $matches); + } + + /** + * @param non-empty-string $pattern + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + */ + public static function matchAll(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchAllResult + { + self::checkOffsetCapture($flags, 'matchAllWithOffsets'); + self::checkSetOrder($flags); + + $count = Preg::matchAll($pattern, $subject, $matches, $flags, $offset); + + return new MatchAllResult($count, $matches); + } + + /** + * Variant of `matchAll()` which returns non-null matches (or throws) + * + * @param non-empty-string $pattern + * @param int-mask $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported + * @throws UnexpectedNullMatchException + */ + public static function matchAllStrictGroups(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchAllStrictGroupsResult + { + self::checkOffsetCapture($flags, 'matchAllWithOffsets'); + self::checkSetOrder($flags); + + // @phpstan-ignore composerPcre.maybeUnsafeStrictGroups + $count = Preg::matchAllStrictGroups($pattern, $subject, $matches, $flags, $offset); + + return new MatchAllStrictGroupsResult($count, $matches); + } + + /** + * Runs preg_match_all with PREG_OFFSET_CAPTURE + * + * @param non-empty-string $pattern + * @param int-mask $flags PREG_UNMATCHED_AS_NULL and PREG_MATCH_OFFSET are always set, no other flags are supported + */ + public static function matchAllWithOffsets(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchAllWithOffsetsResult + { + self::checkSetOrder($flags); + + $count = Preg::matchAllWithOffsets($pattern, $subject, $matches, $flags, $offset); + + return new MatchAllWithOffsetsResult($count, $matches); + } + /** + * @param string|string[] $pattern + * @param string|string[] $replacement + * @param string $subject + */ + public static function replace($pattern, $replacement, $subject, int $limit = -1): ReplaceResult + { + $result = Preg::replace($pattern, $replacement, $subject, $limit, $count); + + return new ReplaceResult($count, $result); + } + + /** + * @param string|string[] $pattern + * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array}>): string) : callable(array): string) $replacement + * @param string $subject + * @param int-mask $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set + */ + public static function replaceCallback($pattern, callable $replacement, $subject, int $limit = -1, int $flags = 0): ReplaceResult + { + $result = Preg::replaceCallback($pattern, $replacement, $subject, $limit, $count, $flags); + + return new ReplaceResult($count, $result); + } + + /** + * Variant of `replaceCallback()` which outputs non-null matches (or throws) + * + * @param string $pattern + * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array}>): string) : callable(array): string) $replacement + * @param string $subject + * @param int-mask $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set + */ + public static function replaceCallbackStrictGroups($pattern, callable $replacement, $subject, int $limit = -1, int $flags = 0): ReplaceResult + { + $result = Preg::replaceCallbackStrictGroups($pattern, $replacement, $subject, $limit, $count, $flags); + + return new ReplaceResult($count, $result); + } + + /** + * @param ($flags is PREG_OFFSET_CAPTURE ? (array}>): string>) : array): string>) $pattern + * @param string $subject + * @param int-mask $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set + */ + public static function replaceCallbackArray(array $pattern, $subject, int $limit = -1, int $flags = 0): ReplaceResult + { + $result = Preg::replaceCallbackArray($pattern, $subject, $limit, $count, $flags); + + return new ReplaceResult($count, $result); + } + + private static function checkOffsetCapture(int $flags, string $useFunctionName): void + { + if (($flags & PREG_OFFSET_CAPTURE) !== 0) { + throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the return type, use '.$useFunctionName.'() instead'); + } + } + + private static function checkSetOrder(int $flags): void + { + if (($flags & PREG_SET_ORDER) !== 0) { + throw new \InvalidArgumentException('PREG_SET_ORDER is not supported as it changes the return type'); + } + } +} diff --git a/vendor/composer/pcre/src/ReplaceResult.php b/vendor/composer/pcre/src/ReplaceResult.php new file mode 100644 index 0000000..3384771 --- /dev/null +++ b/vendor/composer/pcre/src/ReplaceResult.php @@ -0,0 +1,43 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +final class ReplaceResult +{ + /** + * @readonly + * @var string + */ + public $result; + + /** + * @readonly + * @var 0|positive-int + */ + public $count; + + /** + * @readonly + * @var bool + */ + public $matched; + + /** + * @param 0|positive-int $count + */ + public function __construct(int $count, string $result) + { + $this->count = $count; + $this->matched = (bool) $count; + $this->result = $result; + } +} diff --git a/vendor/composer/pcre/src/UnexpectedNullMatchException.php b/vendor/composer/pcre/src/UnexpectedNullMatchException.php new file mode 100644 index 0000000..f123828 --- /dev/null +++ b/vendor/composer/pcre/src/UnexpectedNullMatchException.php @@ -0,0 +1,20 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\Pcre; + +class UnexpectedNullMatchException extends PcreException +{ + public static function fromFunction($function, $pattern) + { + throw new \LogicException('fromFunction should not be called on '.self::class.', use '.PcreException::class); + } +} diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php new file mode 100644 index 0000000..f71b2f8 --- /dev/null +++ b/vendor/composer/platform_check.php @@ -0,0 +1,30 @@ += 80100)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; +} + +if (PHP_INT_SIZE !== 8) { + $issues[] = 'Your Composer dependencies require a 64-bit build of PHP.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + 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; + } + } + trigger_error( + 'Composer detected issues in your platform: ' . implode(' ', $issues), + E_USER_ERROR + ); +} diff --git a/vendor/maennchen/zipstream-php/.editorconfig b/vendor/maennchen/zipstream-php/.editorconfig new file mode 100644 index 0000000..f7cd914 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.editorconfig @@ -0,0 +1,22 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[*.{yml,md,xml}] +indent_style = space +indent_size = 2 + +[*.{rst,php}] +indent_style = space +indent_size = 4 + +[composer.json] +indent_style = space +indent_size = 2 + +[composer.lock] +indent_style = space +indent_size = 4 diff --git a/vendor/maennchen/zipstream-php/.gitattributes b/vendor/maennchen/zipstream-php/.gitattributes new file mode 100644 index 0000000..e058ebd --- /dev/null +++ b/vendor/maennchen/zipstream-php/.gitattributes @@ -0,0 +1,6 @@ +.gitignore text eol=lf +.gitattributes text eol=lf +*.md text eol=lf +*.php text eol=lf +*.yml text eol=lf +*.xml text eol=lf diff --git a/vendor/maennchen/zipstream-php/.github/CODE_OF_CONDUCT.md b/vendor/maennchen/zipstream-php/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..9d75b87 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,132 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, caste, color, religion, or sexual +identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +- Focusing on what is best not just for us as individuals, but for the overall + community + +Examples of unacceptable behavior include: + +- The use of sexualized language or imagery, and sexual attention or advances of + any kind +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, + without their explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +jonatan@maennchen.ch. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of +actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or permanent +ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the +community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.1, available at +[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. + +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder][mozilla coc]. + +For answers to common questions about this code of conduct, see the FAQ at +[https://www.contributor-covenant.org/faq][faq]. Translations are available at +[https://www.contributor-covenant.org/translations][translations]. + +[homepage]: https://www.contributor-covenant.org +[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html +[mozilla coc]: https://github.com/mozilla/diversity +[faq]: https://www.contributor-covenant.org/faq +[translations]: https://www.contributor-covenant.org/translations diff --git a/vendor/maennchen/zipstream-php/.github/CONTRIBUTING.md b/vendor/maennchen/zipstream-php/.github/CONTRIBUTING.md new file mode 100644 index 0000000..d8caee0 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/CONTRIBUTING.md @@ -0,0 +1,139 @@ +# Contributing to ZipStream-PHP + +## Welcome! + +We look forward to your contributions! Here are some examples how you can +contribute: + +- [Report a bug](https://github.com/maennchen/ZipStream-PHP/issues/new?labels=bug&template=BUG.md) +- [Propose a new feature](https://github.com/maennchen/ZipStream-PHP/issues/new?labels=enhancement&template=FEATURE.md) +- [Send a pull request](https://github.com/maennchen/ZipStream-PHP/pulls) + +## We have a Code of Conduct + +Please note that this project is released with a +[Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this +project you agree to abide by its terms. + +## Any contributions you make will be under the MIT License + +When you submit code changes, your submissions are understood to be under the +same [MIT License](https://github.com/maennchen/ZipStream-PHP/blob/main/LICENSE) +that covers the project. By contributing to this project, you agree that your +contributions will be licensed under its MIT License. + +## Write bug reports with detail, background, and sample code + +In your bug report, please provide the following: + +- A quick summary and/or background +- Steps to reproduce + - Be specific! + - Give sample code if you can. +- What you expected would happen +- What actually happens +- Notes (possibly including why you think this might be happening, or stuff you +- tried that didn't work) + +Please do not report a bug for a version of ZIPStream-PHP that is no longer +supported (`< 3.0.0`). Please do not report a bug if you are using a version of +PHP that is not supported by the version of ZipStream-PHP you are using. + +Please post code and output as text +([using proper markup](https://guides.github.com/features/mastering-markdown/)). +Do not post screenshots of code or output. + +Please include the output of `composer info | sort`. + +## Workflow for Pull Requests + +1. Fork the repository. +2. Create your branch from `main` if you plan to implement new functionality or + change existing code significantly; create your branch from the oldest branch + that is affected by the bug if you plan to fix a bug. +3. Implement your change and add tests for it. +4. Ensure the test suite passes. +5. Ensure the code complies with our coding guidelines (see below). +6. Send that pull request! + +Please make sure you have +[set up your user name and email address](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) +for use with Git. Strings such as `silly nick name ` look really +stupid in the commit history of a project. + +We encourage you to +[sign your Git commits with your GPG key](https://docs.github.com/en/github/authenticating-to-github/signing-commits). + +Pull requests for new features must be based on the `main` branch. + +We are trying to keep backwards compatibility breaks in ZipStream-PHP to a +minimum. Please take this into account when proposing changes. + +Due to time constraints, we are not always able to respond as quickly as we +would like. Please do not take delays personal and feel free to remind us if you +feel that we forgot to respond. + +## Coding Guidelines + +This project comes with a configuration file (located at `/psalm.yml` in the +repository) that you can use to perform static analysis (with a focus on type +checking): + +```bash +$ .composer run test:lint +``` + +This project comes with a configuration file (located at +`/.php-cs-fixer.dist.php` in the repository) that you can use to (re)format your +source code for compliance with this project's coding guidelines: + +```bash +$ composer run format +``` + +Please understand that we will not accept a pull request when its changes +violate this project's coding guidelines. + +## Using ZipStream-PHP from a Git checkout + +The following commands can be used to perform the initial checkout of +ZipStream-PHP: + +```bash +$ git clone git@github.com:maennchen/ZipStream-PHP.git + +$ cd ZipStream-PHP +``` + +Install ZipStream-PHP's dependencies using [Composer](https://getcomposer.org/): + +```bash +$ composer install +$ composer run install:tools # Install phpDocumentor using phive +``` + +## Running ZipStream-PHP's test suite + +After following the steps shown above, ZipStream-PHP's test suite is run like +this: + +```bash +$ composer run test:unit +``` + +There's some slow tests in the test suite that test the handling of big files in +the archives. To skip them use the following command instead: + +```bash +$ composer run test:unit:fast +``` + +## Generating ZipStream-PHP Documentation + +To generate the documentation for the library, run: + +```bash +$ composer run docs:generate +``` + +The guide documentation pages can be found in the `/guides/` directory. diff --git a/vendor/maennchen/zipstream-php/.github/FUNDING.yml b/vendor/maennchen/zipstream-php/.github/FUNDING.yml new file mode 100644 index 0000000..5a46127 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/FUNDING.yml @@ -0,0 +1 @@ +github: maennchen diff --git a/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/BUG.yml b/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/BUG.yml new file mode 100644 index 0000000..0eb8cc7 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/BUG.yml @@ -0,0 +1,71 @@ +name: 🐞 Bug Report +description: Something is broken? +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + - Create a discussion instead if you are looking for support: + https://github.com/maennchen/ZipStream-PHP/discussions + - type: input + id: version + attributes: + label: ZipStream-PHP version + placeholder: x.y.z + validations: + required: true + - type: input + id: php-version + attributes: + label: PHP version + placeholder: x.y.z + validations: + required: true + - type: checkboxes + id: constraints + attributes: + label: Constraints for Bug Report + options: + - label: | + I'm using a version of ZipStream that is currently supported: + https://github.com/maennchen/ZipStream-PHP#version-support + required: true + - label: | + I'm using a version of PHP that has active support: + https://www.php.net/supported-versions.php + required: true + - label: | + I'm using a version of PHP that is compatible with your used + ZipStream version. + required: true + - label: | + I'm using the latest release of the used ZipStream major version. + required: true + - type: textarea + id: summary + attributes: + label: Summary + description: Provide a summary describing the problem you are experiencing. + validations: + required: true + - type: textarea + id: current-behaviour + attributes: + label: Current behavior + description: What is the current (buggy) behavior? + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: How to reproduce + description: Provide steps to reproduce the bug. + validations: + required: true + - type: textarea + id: expected-behaviour + attributes: + label: Expected behavior + description: What was the expected (correct) behavior? + validations: + required: true diff --git a/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/FEATURE.yml b/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/FEATURE.yml new file mode 100644 index 0000000..e5dec63 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE/FEATURE.yml @@ -0,0 +1,11 @@ +name: 🎉 Feature Request +description: You have a neat idea that should be implemented? +labels: ["enhancement"] +body: + - type: textarea + id: description + attributes: + label: Description + description: Provide a summary of the feature you would like to see implemented. + validations: + required: true diff --git a/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE.md b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..6892c57 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,6 @@ +Please go the the `Preview` tab and select the appropriate sub-template: + +* [🐞 Failing Test](?expand=1&template=FAILING_TEST.md) +* [🐞 Bug Fix](?expand=1&template=FIX.md) +* [⚙ Improvement](?expand=1&template=IMPROVEMENT.md) +* [🎉 New Feature](?expand=1&template=NEW_FEATURE.md) diff --git a/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FAILING_TEST.md b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FAILING_TEST.md new file mode 100644 index 0000000..24603cb --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FAILING_TEST.md @@ -0,0 +1,13 @@ + + + diff --git a/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FIX.md b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FIX.md new file mode 100644 index 0000000..77f65a0 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/FIX.md @@ -0,0 +1,13 @@ + + + diff --git a/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/IMPROVEMENT.md b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/IMPROVEMENT.md new file mode 100644 index 0000000..3ac8e31 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/IMPROVEMENT.md @@ -0,0 +1,9 @@ + + + diff --git a/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/NEW_FEATURE.md b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/NEW_FEATURE.md new file mode 100644 index 0000000..ca53939 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/PULL_REQUEST_TEMPLATE/NEW_FEATURE.md @@ -0,0 +1,9 @@ + + + diff --git a/vendor/maennchen/zipstream-php/.github/SECURITY.md b/vendor/maennchen/zipstream-php/.github/SECURITY.md new file mode 100644 index 0000000..3046c31 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/SECURITY.md @@ -0,0 +1,22 @@ +# Security Policy + +[![OpenSSF Vulnerability Disclosure](https://img.shields.io/badge/OpenSSF-Vulnerability_Disclosure-green)](https://github.com/ossf/oss-vulnerability-guide/blob/main/finder-guide.md) +[![GitHub Report](https://img.shields.io/badge/GitHub-Security_Advisories-blue)](https://github.com/maennchen/ZipStream-PHP/security/advisories/new) +[![Email Report](https://img.shields.io/badge/Email-jonatan%40maennchen.ch-blue)](mailto:jonatan@maennchen.ch) + +This repository follows the +[OpenSSF Vulnerability Disclosure guide](https://github.com/ossf/oss-vulnerability-guide/tree/main). +You can learn more about it in the +[Finders Guide](https://github.com/ossf/oss-vulnerability-guide/blob/main/finder-guide.md). + +Please report vulnerabilities via the +[GitHub Security Vulnerability Reporting](https://github.com/maennchen/ZipStream-PHP/security/advisories/new) +or via email to [`jonatan@maennchen.ch`](mailto:jonatan@maennchen.ch) if this does +not work for you. + +Our vulnerability management team will respond within 3 working days of your +report. If the issue is confirmed as a vulnerability, we will open a Security +Advisory. This project follows a 90 day disclosure timeline. + +If you have questions about reporting security issues, email the vulnerability +management team: [`jonatan@maennchen.ch`](mailto:jonatan@maennchen.ch) diff --git a/vendor/maennchen/zipstream-php/.github/dependabot.yml b/vendor/maennchen/zipstream-php/.github/dependabot.yml new file mode 100644 index 0000000..6056437 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/dependabot.yml @@ -0,0 +1,13 @@ +version: 2 +updates: + - package-ecosystem: "composer" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + github-actions: + applies-to: version-updates \ No newline at end of file diff --git a/vendor/maennchen/zipstream-php/.github/scorecard.yml b/vendor/maennchen/zipstream-php/.github/scorecard.yml new file mode 100644 index 0000000..219fc0b --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/scorecard.yml @@ -0,0 +1,14 @@ +annotations: + - checks: + - fuzzing + reasons: + - reason: not-applicable # PHP is memory safe + - checks: + - packaging + reasons: + - reason: not-supported # Using Composer + - checks: + - signed-releases + reasons: + - reason: not-applicable # Releases are distributed via Composer + diff --git a/vendor/maennchen/zipstream-php/.github/workflows/branch_main.yml b/vendor/maennchen/zipstream-php/.github/workflows/branch_main.yml new file mode 100644 index 0000000..15ff278 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/branch_main.yml @@ -0,0 +1,24 @@ +on: + push: + branches: + - "main" + +name: "Main Branch" + +permissions: + contents: read + +jobs: + test: + name: "Test" + + permissions: + contents: read + security-events: write + + uses: ./.github/workflows/part_test.yml + + docs: + name: "Docs" + + uses: ./.github/workflows/part_docs.yml diff --git a/vendor/maennchen/zipstream-php/.github/workflows/part_dependabot.yml b/vendor/maennchen/zipstream-php/.github/workflows/part_dependabot.yml new file mode 100644 index 0000000..77e466b --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/part_dependabot.yml @@ -0,0 +1,30 @@ +on: + workflow_call: {} + +name: "Dependabot" + +permissions: + contents: read + +jobs: + automerge_dependabot: + name: "Automerge PRs" + + runs-on: ubuntu-latest + + permissions: + pull-requests: write + contents: write + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - uses: fastify/github-action-merge-dependabot@3892334d1c649bb8119af3d22a3f3766bd5e593f # v3.10.2 + with: + github-token: ${{ github.token }} + use-github-auto-merge: true + # Major Updates need to be merged manually + target: minor diff --git a/vendor/maennchen/zipstream-php/.github/workflows/part_docs.yml b/vendor/maennchen/zipstream-php/.github/workflows/part_docs.yml new file mode 100644 index 0000000..7af16f3 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/part_docs.yml @@ -0,0 +1,51 @@ +on: + workflow_call: {} + +name: "Documentation" + +permissions: + contents: read + +jobs: + generate: + name: "Generate" + + runs-on: ubuntu-latest + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Checkout Code + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - name: SetUp PHP + id: setup-php + uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2 + with: + php-version: "8.3" + tools: phive + - name: Cache Tools + uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + id: cache + with: + path: ~/.phive + key: tools-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('**/phars.xml') }} + restore-keys: | + tools-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}- + tools-${{ steps.setup-php.outputs.php-version }}- + tools- + - name: Install Tools + run: composer run install:tools + - name: Generate Docs + run: composer run docs:generate + - uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1 + with: + name: docs + path: docs + - name: Package for GitHub Pages + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 + with: + path: docs + diff --git a/vendor/maennchen/zipstream-php/.github/workflows/part_release.yml b/vendor/maennchen/zipstream-php/.github/workflows/part_release.yml new file mode 100644 index 0000000..c0f3867 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/part_release.yml @@ -0,0 +1,94 @@ +on: + workflow_call: + inputs: + releaseName: + required: true + type: string + stable: + required: false + type: boolean + default: false + +name: "Release" + +permissions: + contents: read + +jobs: + create: + name: Create Release + + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Create prerelease + if: ${{ !inputs.stable }} + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + gh release create \ + --repo ${{ github.repository }} \ + --title ${{ inputs.releaseName }} \ + --prerelease \ + --generate-notes \ + ${{ inputs.releaseName }} + + - name: Create release + if: ${{ inputs.stable }} + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + gh release create \ + --repo ${{ github.repository }} \ + --title ${{ inputs.releaseName }} \ + --generate-notes \ + ${{ inputs.releaseName }} + + upload_release: + name: "Upload" + + needs: ["create"] + + runs-on: ubuntu-latest + + permissions: + id-token: write + contents: write + attestations: write + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + with: + name: docs + path: docs + - run: | + tar -czvf docs.tar.gz docs + - name: "Attest Documentation" + id: attestation + uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3 + with: + subject-path: "docs.tar.gz" + - name: Copy Attestation + run: cp "$ATTESTATION" docs.tar.gz.sigstore + env: + ATTESTATION: "${{ steps.attestation.outputs.bundle-path }}" + - name: Upload + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + gh release upload --clobber "${{ github.ref_name }}" \ + docs.tar.gz docs.tar.gz.sigstore diff --git a/vendor/maennchen/zipstream-php/.github/workflows/part_test.yml b/vendor/maennchen/zipstream-php/.github/workflows/part_test.yml new file mode 100644 index 0000000..ccf4d66 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/part_test.yml @@ -0,0 +1,183 @@ +on: + workflow_call: + +name: "Test" + +permissions: + contents: read + +jobs: + phpunit: + name: PHPUnit (PHP ${{ matrix.php }} on ${{ matrix.os }}) + + runs-on: ${{ matrix.os }} + + continue-on-error: ${{ matrix.experimental }} + + strategy: + fail-fast: false + matrix: + php: ["8.1", "8.2", "8.3"] + os: [ubuntu-latest] + experimental: [false] + include: + - php: nightly + os: ubuntu-latest + experimental: true + - php: "8.3" + os: windows-latest + experimental: false + - php: "8.3" + os: macos-latest + experimental: false + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Checkout Code + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - name: SetUp PHP + id: setup-php + uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2 + with: + php-version: "${{ matrix.php }}" + tools: phpunit + coverage: xdebug + extensions: xdebug,zip + - name: Get composer cache directory + id: composer-cache-common + if: "${{ runner.os != 'Windows' }}" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Get composer cache directory + id: composer-cache-windows + if: "${{ runner.os == 'Windows' }}" + run: echo "dir=$(composer config cache-files-dir)" >> $env:GITHUB_OUTPUT + - name: Cache Deps + uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + id: cache + with: + path: ${{ steps.composer-cache-common.outputs.dir }}${{ steps.composer-cache-windows.outputs.dir }} + key: deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-composer- + deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}- + deps-${{ steps.setup-php.outputs.php-version }}- + deps- + - name: Install Deps + if: matrix.php != 'nightly' + run: composer install --prefer-dist + - name: Install Deps (ignore PHP requirement) + if: matrix.php == 'nightly' + run: composer install --prefer-dist --ignore-platform-req=php+ + - name: Run PHPUnit + run: composer run test:unit + env: + XDEBUG_MODE: coverage + - name: Upload coverage results to Coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_PARALLEL: true + COVERALLS_FLAG_NAME: ${{ runner.os }}-${{ steps.setup-php.outputs.php-version }} + run: composer run coverage:report + continue-on-error: ${{ matrix.experimental }} + + mark_coverage_done: + needs: ["phpunit"] + + runs-on: ubuntu-latest + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Coveralls Finished + uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0 + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true + + psalm: + name: Run Psalm + + runs-on: "ubuntu-latest" + + permissions: + security-events: write + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Checkout Code + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - name: SetUp PHP + id: setup-php + uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2 + with: + php-version: "8.3" + - name: Get composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache Deps + uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + id: cache + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-composer- + deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}- + deps-${{ steps.setup-php.outputs.php-version }}- + deps- + - name: Install Deps + run: composer install --prefer-dist + - name: Run Psalm + run: composer run test:lint -- --report=results.sarif + - name: "Upload SARIF" + uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3 + with: + sarif_file: results.sarif + + php-cs: + name: Run PHP-CS + + runs-on: "ubuntu-latest" + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Checkout Code + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - name: SetUp PHP + id: setup-php + uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2 + with: + php-version: "8.3" + - name: Get composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache Deps + uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + id: cache + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-composer- + deps-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}- + deps-${{ steps.setup-php.outputs.php-version }}- + deps- + - name: Install Deps + run: composer install --prefer-dist + - name: Run PHP-CS + run: composer run test:formatted diff --git a/vendor/maennchen/zipstream-php/.github/workflows/pr.yml b/vendor/maennchen/zipstream-php/.github/workflows/pr.yml new file mode 100644 index 0000000..05259d4 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/pr.yml @@ -0,0 +1,50 @@ +on: + pull_request: + branches: + - "*" + workflow_dispatch: {} + +name: "Pull Request" + +permissions: + contents: read + +jobs: + test: + name: "Test" + + permissions: + contents: read + security-events: write + + uses: ./.github/workflows/part_test.yml + + docs: + name: "Docs" + + uses: ./.github/workflows/part_docs.yml + + dependabot: + name: "Dependabot" + + if: ${{ github.actor == 'dependabot[bot]'}} + + permissions: + pull-requests: write + contents: write + + uses: ./.github/workflows/part_dependabot.yml + + dependency-review: + name: Dependency Review + runs-on: ubuntu-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: 'Checkout Repository' + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - name: 'Dependency Review' + uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4 diff --git a/vendor/maennchen/zipstream-php/.github/workflows/scorecard.yml b/vendor/maennchen/zipstream-php/.github/workflows/scorecard.yml new file mode 100644 index 0000000..7bb8dbb --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/scorecard.yml @@ -0,0 +1,78 @@ +# This workflow uses actions that are not certified by GitHub. They are provided +# by a third-party and are governed by separate terms of service, privacy +# policy, and support documentation. + +name: Scorecard supply-chain security +on: + # For Branch-Protection check. Only the default branch is supported. See + # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection + branch_protection_rule: + # To guarantee Maintained check is occasionally updated. See + # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained + schedule: + - cron: '28 11 * * 3' + push: + branches: [ "main" ] + +# Declare default permissions as read only. +permissions: read-all + +jobs: + analysis: + name: Scorecard analysis + runs-on: ubuntu-latest + permissions: + # Needed to upload the results to code-scanning dashboard. + security-events: write + # Needed to publish results and get a badge (see publish_results below). + id-token: write + # Uncomment the permissions below if installing in a private repository. + # contents: read + # actions: read + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: "Checkout code" + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + with: + persist-credentials: false + + - name: "Run analysis" + uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 + with: + results_file: results.sarif + results_format: sarif + # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: + # - you want to enable the Branch-Protection check on a *public* repository, or + # - you are installing Scorecard on a *private* repository + # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. + # repo_token: ${{ secrets.SCORECARD_TOKEN }} + + # Public repositories: + # - Publish results to OpenSSF REST API for easy access by consumers + # - Allows the repository to include the Scorecard badge. + # - See https://github.com/ossf/scorecard-action#publishing-results. + # For private repositories: + # - `publish_results` will always be set to `false`, regardless + # of the value entered here. + publish_results: true + + # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF + # format to the repository Actions tab. + - name: "Upload artifact" + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + # Upload the results to GitHub's code scanning dashboard (optional). + # Commenting out will disable upload of results to your repo's Code Scanning dashboard + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 + with: + sarif_file: results.sarif diff --git a/vendor/maennchen/zipstream-php/.github/workflows/tag-beta.yml b/vendor/maennchen/zipstream-php/.github/workflows/tag-beta.yml new file mode 100644 index 0000000..b339945 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/tag-beta.yml @@ -0,0 +1,29 @@ +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+" + +name: "Beta Tag" + +permissions: + contents: read + +jobs: + docs: + name: "Docs" + + uses: ./.github/workflows/part_docs.yml + + release: + name: "Release" + + needs: ["docs"] + + permissions: + id-token: write + contents: write + attestations: write + + uses: ./.github/workflows/part_release.yml + with: + releaseName: "${{ github.ref_name }}" diff --git a/vendor/maennchen/zipstream-php/.github/workflows/tag-stable.yml b/vendor/maennchen/zipstream-php/.github/workflows/tag-stable.yml new file mode 100644 index 0000000..0e91cf0 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.github/workflows/tag-stable.yml @@ -0,0 +1,55 @@ +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+" + +name: "Stable Tag" + +permissions: + contents: read + +jobs: + docs: + name: "Docs" + + uses: ./.github/workflows/part_docs.yml + + release: + name: "Release" + + needs: ["docs"] + + permissions: + id-token: write + contents: write + attestations: write + + uses: ./.github/workflows/part_release.yml + with: + releaseName: "${{ github.ref_name }}" + stable: true + + deploy_pages: + name: "Deploy to GitHub Pages" + + needs: ["release", "docs"] + + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + egress-policy: audit + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 diff --git a/vendor/maennchen/zipstream-php/.gitignore b/vendor/maennchen/zipstream-php/.gitignore new file mode 100644 index 0000000..e52a498 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.gitignore @@ -0,0 +1,12 @@ +/composer.lock +/cov +/coverage.clover.xml +/docs +.idea +/.php-cs-fixer.cache +/.phpdoc/cache +/.phpunit.result.cache +/phpunit.xml +/.phpunit.cache +/tools +/vendor diff --git a/vendor/maennchen/zipstream-php/.phive/phars.xml b/vendor/maennchen/zipstream-php/.phive/phars.xml new file mode 100644 index 0000000..183927b --- /dev/null +++ b/vendor/maennchen/zipstream-php/.phive/phars.xml @@ -0,0 +1,4 @@ + + + + diff --git a/vendor/maennchen/zipstream-php/.php-cs-fixer.dist.php b/vendor/maennchen/zipstream-php/.php-cs-fixer.dist.php new file mode 100644 index 0000000..38d6a76 --- /dev/null +++ b/vendor/maennchen/zipstream-php/.php-cs-fixer.dist.php @@ -0,0 +1,70 @@ + + * @copyright 2022 Nicolas CARPi + * @see https://github.com/maennchen/ZipStream-PHP + * @license MIT + * @package maennchen/ZipStream-PHP + */ + +use PhpCsFixer\Config; +use PhpCsFixer\Finder; + +$finder = Finder::create() + ->exclude('.github') + ->exclude('.phpdoc') + ->exclude('docs') + ->exclude('tools') + ->exclude('vendor') + ->in(__DIR__); + +$config = new Config(); +return $config->setRules([ + '@PER' => true, + '@PER:risky' => true, + '@PHP82Migration' => true, + '@PHPUnit84Migration:risky' => true, + 'array_syntax' => ['syntax' => 'short'], + 'class_attributes_separation' => true, + 'declare_strict_types' => true, + 'dir_constant' => true, + 'is_null' => true, + 'no_homoglyph_names' => true, + 'no_null_property_initialization' => true, + 'no_php4_constructor' => true, + 'no_unused_imports' => true, + 'no_useless_else' => true, + 'non_printable_character' => true, + 'ordered_imports' => true, + 'ordered_class_elements' => true, + 'php_unit_construct' => true, + 'pow_to_exponentiation' => true, + 'psr_autoloading' => true, + 'random_api_migration' => true, + 'return_assignment' => true, + 'self_accessor' => true, + 'semicolon_after_instruction' => true, + 'short_scalar_cast' => true, + 'simplified_null_return' => true, + 'single_class_element_per_statement' => true, + 'single_line_comment_style' => true, + 'single_quote' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'strict_param' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline' => true, + 'trim_array_spaces' => true, + 'unary_operator_spaces' => true, + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_functions' => true, + 'import_constants' => true, + ], + ]) + ->setFinder($finder) + ->setRiskyAllowed(true); diff --git a/vendor/maennchen/zipstream-php/.phpdoc/template/base.html.twig b/vendor/maennchen/zipstream-php/.phpdoc/template/base.html.twig new file mode 100644 index 0000000..b7507fb --- /dev/null +++ b/vendor/maennchen/zipstream-php/.phpdoc/template/base.html.twig @@ -0,0 +1,15 @@ +{% extends 'layout.html.twig' %} + +{% set topMenu = { + "menu": [ + { "name": "Guides", "url": "https://maennchen.dev/ZipStream-PHP/guide/index.html"}, + { "name": "API", "url": "https://maennchen.dev/ZipStream-PHP/classes/ZipStream-ZipStream.html"}, + { "name": "Issues", "url": "https://github.com/maennchen/ZipStream-PHP/issues"}, + ], + "social": [ + { "iconClass": "fab fa-github", "url": "https://github.com/maennchen/ZipStream-PHP"}, + { "iconClass": "fas fa-envelope-open-text", "url": "https://github.com/maennchen/ZipStream-PHP/discussions"}, + { "iconClass": "fas fa-money-bill", "url": "https://opencollective.com/zipstream"}, + ] +} +%} \ No newline at end of file diff --git a/vendor/maennchen/zipstream-php/.tool-versions b/vendor/maennchen/zipstream-php/.tool-versions new file mode 100644 index 0000000..4a3dc9d --- /dev/null +++ b/vendor/maennchen/zipstream-php/.tool-versions @@ -0,0 +1 @@ +php 8.3.1 diff --git a/vendor/maennchen/zipstream-php/LICENSE b/vendor/maennchen/zipstream-php/LICENSE new file mode 100644 index 0000000..ebe7fe2 --- /dev/null +++ b/vendor/maennchen/zipstream-php/LICENSE @@ -0,0 +1,24 @@ +MIT License + +Copyright (C) 2007-2009 Paul Duncan +Copyright (C) 2014 Jonatan Männchen +Copyright (C) 2014 Jesse G. Donat +Copyright (C) 2018 Nicolas CARPi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/maennchen/zipstream-php/README.md b/vendor/maennchen/zipstream-php/README.md new file mode 100644 index 0000000..858add0 --- /dev/null +++ b/vendor/maennchen/zipstream-php/README.md @@ -0,0 +1,154 @@ +# ZipStream-PHP + +[![Main Branch](https://github.com/maennchen/ZipStream-PHP/actions/workflows/branch_main.yml/badge.svg)](https://github.com/maennchen/ZipStream-PHP/actions/workflows/branch_main.yml) +[![Coverage Status](https://coveralls.io/repos/github/maennchen/ZipStream-PHP/badge.svg?branch=main)](https://coveralls.io/github/maennchen/ZipStream-PHP?branch=main) +[![Latest Stable Version](https://poser.pugx.org/maennchen/zipstream-php/v/stable)](https://packagist.org/packages/maennchen/zipstream-php) +[![Total Downloads](https://poser.pugx.org/maennchen/zipstream-php/downloads)](https://packagist.org/packages/maennchen/zipstream-php) +[![Financial Contributors on Open Collective](https://opencollective.com/zipstream/all/badge.svg?label=financial+contributors)](https://opencollective.com/zipstream) [![License](https://img.shields.io/github/license/maennchen/zipstream-php.svg)](LICENSE) +[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9524/badge)](https://www.bestpractices.dev/projects/9524) +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/maennchen/ZipStream-PHP/badge)](https://scorecard.dev/viewer/?uri=github.com/maennchen/ZipStream-PHP) + +## Unstable Branch + +The `main` branch is not stable. Please see the +[releases](https://github.com/maennchen/ZipStream-PHP/releases) for a stable +version. + +## Overview + +A fast and simple streaming zip file downloader for PHP. Using this library will +save you from having to write the Zip to disk. You can directly send it to the +user, which is much faster. It can work with S3 buckets or any PSR7 Stream. + +Please see the [LICENSE](LICENSE) file for licensing and warranty information. + +## Installation + +Simply add a dependency on maennchen/zipstream-php to your project's +`composer.json` file if you use Composer to manage the dependencies of your +project. Use following command to add the package to your project's dependencies: + +```bash +composer require maennchen/zipstream-php +``` + +## Usage + +For detailed instructions, please check the +[Documentation](https://maennchen.github.io/ZipStream-PHP/). + +```php +// Autoload the dependencies +require 'vendor/autoload.php'; + +// create a new zipstream object +$zip = new ZipStream\ZipStream( + outputName: 'example.zip', + + // enable output of HTTP headers + sendHttpHeaders: true, +); + +// create a file named 'hello.txt' +$zip->addFile( + fileName: 'hello.txt', + data: 'This is the contents of hello.txt', +); + +// add a file named 'some_image.jpg' from a local file 'path/to/image.jpg' +$zip->addFileFromPath( + fileName: 'some_image.jpg', + path: 'path/to/image.jpg', +); + +// finish the zip stream +$zip->finish(); +``` + +## Upgrade to version 3.0.0 + +### General + +- Minimum PHP Version: `8.1` +- Only 64bit Architecture is supported. +- The class `ZipStream\Option\Method` has been replaced with the enum + `ZipStream\CompressionMethod`. +- Most clases have been flagged as `@internal` and should not be used from the + outside. + If you're using internal resources to extend this library, please open an + issue so that a clean interface can be added & published. + The externally available classes & enums are: + - `ZipStream\CompressionMethod` + - `ZipStream\Exception*` + - `ZipStream\ZipStream` + +### Archive Options + +- The class `ZipStream\Option\Archive` has been replaced in favor of named + arguments in the `ZipStream\ZipStream` constuctor. +- The archive options `largeFileSize` & `largeFileMethod` has been removed. If + you want different `compressionMethods` based on the file size, you'll have to + implement this yourself. +- The archive option `httpHeaderCallback` changed the type from `callable` to + `Closure`. +- The archive option `zeroHeader` has been replaced with the option + `defaultEnableZeroHeader` and can be overridden for every file. Its default + value changed from `false` to `true`. +- The archive option `statFiles` was removed since the library no longer checks + filesizes this way. +- The archive option `deflateLevel` has been replaced with the option + `defaultDeflateLevel` and can be overridden for every file. +- The first argument (`name`) of the `ZipStream\ZipStream` constuctor has been + replaced with the named argument `outputName`. +- Headers are now also sent if the `outputName` is empty. If you do not want to + automatically send http headers, set `sendHttpHeaders` to `false`. + +### File Options + +- The class `ZipStream\Option\File` has been replaced in favor of named + arguments in the `ZipStream\ZipStream->addFile*` functions. +- The file option `method` has been renamed to `compressionMethod`. +- The file option `time` has been renamed to `lastModificationDateTime`. +- The file option `size` has been renamed to `maxSize`. + +## Upgrade to version 2.0.0 + +https://github.com/maennchen/ZipStream-PHP/tree/2.0.0#upgrade-to-version-200 + +## Upgrade to version 1.0.0 + +https://github.com/maennchen/ZipStream-PHP/tree/2.0.0#upgrade-to-version-100 + +## Contributing + +ZipStream-PHP is a collaborative project. Please take a look at the +[.github/CONTRIBUTING.md](.github/CONTRIBUTING.md) file. + +## Version Support + +Versions are supported according to the table below. + +Please do not open any pull requests contradicting the current version support +status. + +Careful: Always check the `README` on `main` for up-to-date information. + +| Version | New Features | Bugfixes | Security | +|---------|--------------|----------|----------| +| *3* | ✓ | ✓ | ✓ | +| *2* | ✗ | ✗ | ✓ | +| *1* | ✗ | ✗ | ✗ | +| *0* | ✗ | ✗ | ✗ | + +This library aligns itself with the PHP core support. New features and bugfixes +will only target PHP versions according to their current status. + +See: https://www.php.net/supported-versions.php + +## About the Authors + +- Paul Duncan - https://pablotron.org/ +- Jonatan Männchen - https://maennchen.dev +- Jesse G. Donat - https://donatstudios.com +- Nicolas CARPi - https://www.deltablot.com +- Nik Barham - https://www.brokencube.co.uk diff --git a/vendor/maennchen/zipstream-php/composer.json b/vendor/maennchen/zipstream-php/composer.json new file mode 100644 index 0000000..de5e624 --- /dev/null +++ b/vendor/maennchen/zipstream-php/composer.json @@ -0,0 +1,88 @@ +{ + "name": "maennchen/zipstream-php", + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": ["zip", "stream"], + "type": "library", + "license": "MIT", + "authors": [{ + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "require": { + "php-64bit": "^8.1", + "ext-mbstring": "*", + "ext-zlib": "*" + }, + "require-dev": { + "phpunit/phpunit": "^10.0", + "guzzlehttp/guzzle": "^7.5", + "ext-zip": "*", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "friendsofphp/php-cs-fixer": "^3.16", + "vimeo/psalm": "^5.0" + }, + "suggest": { + "psr/http-message": "^2.0", + "guzzlehttp/psr7": "^2.4" + }, + "scripts": { + "format": "php-cs-fixer fix", + "test": [ + "@test:unit", + "@test:formatted", + "@test:lint" + ], + "test:unit": "phpunit --coverage-clover=coverage.clover.xml --coverage-html cov", + "test:unit:slow": "@test:unit --group slow", + "test:unit:fast": "@test:unit --exclude-group slow", + "test:formatted": "@format --dry-run --stop-on-violation --using-cache=no", + "test:lint": "psalm --stats --show-info=true --find-unused-psalm-suppress", + "coverage:report": "php-coveralls --coverage_clover=coverage.clover.xml --json_path=coveralls-upload.json --insecure", + "install:tools": "phive install --trust-gpg-keys 0x67F861C3D889C656 --trust-gpg-keys 0x8AC0BAA79732DD42", + "docs:generate": "tools/phpdocumentor --sourcecode" + }, + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { "ZipStream\\Test\\": "test/" } + }, + "archive": { + "exclude": [ + "/composer.lock", + "/docs", + "/.gitattributes", + "/.github", + "/.gitignore", + "/guides", + "/.phive", + "/.php-cs-fixer.cache", + "/.php-cs-fixer.dist.php", + "/.phpdoc", + "/phpdoc.dist.xml", + "/.phpunit.result.cache", + "/phpunit.xml.dist", + "/psalm.xml", + "/test", + "/tools", + "/.tool-versions", + "/vendor" + ] + } +} diff --git a/vendor/maennchen/zipstream-php/guides/ContentLength.rst b/vendor/maennchen/zipstream-php/guides/ContentLength.rst new file mode 100644 index 0000000..21fea34 --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/ContentLength.rst @@ -0,0 +1,47 @@ +Adding Content-Length header +============= + +Adding a ``Content-Length`` header for ``ZipStream`` can be achieved by +using the options ``SIMULATION_STRICT`` or ``SIMULATION_LAX`` in the +``operationMode`` parameter. + +In the ``SIMULATION_STRICT`` mode, ``ZipStream`` will not allow to calculate the +size based on reading the whole file. ``SIMULATION_LAX`` will read the whole +file if neccessary. + +``SIMULATION_STRICT`` is therefore useful to make sure that the size can be +calculated efficiently. + +.. code-block:: php + use ZipStream\OperationMode; + use ZipStream\ZipStream; + + $zip = new ZipStream( + operationMode: OperationMode::SIMULATE_STRICT, // or SIMULATE_LAX + defaultEnableZeroHeader: false, + sendHttpHeaders: true, + outputStream: $stream, + ); + + // Normally add files + $zip->addFile('sample.txt', 'Sample String Data'); + + // Use addFileFromCallback and exactSize if you want to defer opening of + // the file resource + $zip->addFileFromCallback( + 'sample.txt', + exactSize: 18, + callback: function () { + return fopen('...'); + } + ); + + // Read resulting file size + $size = $zip->finish(); + + // Tell it to the browser + header('Content-Length: '. $size); + + // Execute the Simulation and stream the actual zip to the client + $zip->executeSimulation(); + diff --git a/vendor/maennchen/zipstream-php/guides/FlySystem.rst b/vendor/maennchen/zipstream-php/guides/FlySystem.rst new file mode 100644 index 0000000..4e6c6fb --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/FlySystem.rst @@ -0,0 +1,34 @@ +Usage with FlySystem +=============== + +For saving or uploading the generated zip, you can use the +`Flysystem `_ package, and its many +adapters. + +For that you will need to provide another stream than the ``php://output`` +default one, and pass it to Flysystem ``putStream`` method. + +.. code-block:: php + + // Open Stream only once for read and write since it's a memory stream and + // the content is lost when closing the stream / opening another one + $tempStream = fopen('php://memory', 'w+'); + + // Create Zip Archive + $zipStream = new ZipStream( + outputStream: $tempStream, + outputName: 'test.zip', + ); + $zipStream->addFile('test.txt', 'text'); + $zipStream->finish(); + + // Store File + // (see Flysystem documentation, and all its framework integration) + // Can be any adapter (AWS, Google, Ftp, etc.) + $adapter = new Local(__DIR__.'/path/to/folder'); + $filesystem = new Filesystem($adapter); + + $filesystem->writeStream('test.zip', $tempStream) + + // Close Stream + fclose($tempStream); diff --git a/vendor/maennchen/zipstream-php/guides/Nginx.rst b/vendor/maennchen/zipstream-php/guides/Nginx.rst new file mode 100644 index 0000000..c53d300 --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/Nginx.rst @@ -0,0 +1,16 @@ +Usage with nginx +============= + +If you are using nginx as a webserver, it will try to buffer the response. +So you'll want to disable this with a custom header: + +.. code-block:: php + header('X-Accel-Buffering: no'); + # or with the Response class from Symfony + $response->headers->set('X-Accel-Buffering', 'no'); + +Alternatively, you can tweak the +`fastcgi cache parameters `_ +within nginx config. + +See `original issue `_. \ No newline at end of file diff --git a/vendor/maennchen/zipstream-php/guides/Options.rst b/vendor/maennchen/zipstream-php/guides/Options.rst new file mode 100644 index 0000000..5e92e94 --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/Options.rst @@ -0,0 +1,66 @@ +Available options +=============== + +Here is the full list of options available to you. You can also have a look at +``src/ZipStream.php`` file. + +.. code-block:: php + + use ZipStream\ZipStream; + + require_once 'vendor/autoload.php'; + + $zip = new ZipStream( + // Define output stream + // (argument is eiter a resource or implementing + // `Psr\Http\Message\StreamInterface`) + // + // Setup with `psr/http-message` & `guzzlehttp/psr7` dependencies + // required when using `Psr\Http\Message\StreamInterface`. + outputStream: $filePointer, + + // Set the deflate level (default is 6; use -1 to disable it) + defaultDeflateLevel: 6, + + // Add a comment to the zip file + comment: 'This is a comment.', + + // Send http headers (default is true) + sendHttpHeaders: false, + + // HTTP Content-Disposition. + // Defaults to 'attachment', where FILENAME is the specified filename. + // Note that this does nothing if you are not sending HTTP headers. + contentDisposition: 'attachment', + + // Output Name for HTTP Content-Disposition + // Defaults to no name + outputName: "example.zip", + + // HTTP Content-Type. + // Defaults to 'application/x-zip'. + // Note that this does nothing if you are not sending HTTP headers. + contentType: 'application/x-zip', + + // Set the function called for setting headers. + // Default is the `header()` of PHP + httpHeaderCallback: header(...), + + // Enable streaming files with single read where general purpose bit 3 + // indicates local file header contain zero values in crc and size + // fields, these appear only after file contents in data descriptor + // block. + // Set to true if your input stream is remote + // (used with addFileFromStream()). + // Default is false. + defaultEnableZeroHeader: false, + + // Enable zip64 extension, allowing very large archives + // (> 4Gb or file count > 64k) + // Default is true + enableZip64: true, + + // Flush output buffer after every write + // Default is false + flushOutput: true, + ); diff --git a/vendor/maennchen/zipstream-php/guides/PSR7Streams.rst b/vendor/maennchen/zipstream-php/guides/PSR7Streams.rst new file mode 100644 index 0000000..22af71d --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/PSR7Streams.rst @@ -0,0 +1,21 @@ +Usage with PSR 7 Streams +=============== + +PSR-7 streams are `standardized streams `_. + +ZipStream-PHP supports working with these streams with the function +``addFileFromPsr7Stream``. + +For all parameters of the function see the API documentation. + +Example +--------------- + +.. code-block:: php + + $stream = $response->getBody(); + // add a file named 'streamfile.txt' from the content of the stream + $zip->addFileFromPsr7Stream( + fileName: 'streamfile.txt', + stream: $stream, + ); diff --git a/vendor/maennchen/zipstream-php/guides/StreamOutput.rst b/vendor/maennchen/zipstream-php/guides/StreamOutput.rst new file mode 100644 index 0000000..9f3165b --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/StreamOutput.rst @@ -0,0 +1,39 @@ +Stream Output +=============== + +Stream to S3 Bucket +--------------- + +.. code-block:: php + + use Aws\S3\S3Client; + use Aws\Credentials\CredentialProvider; + use ZipStream\ZipStream; + + $bucket = 'your bucket name'; + $client = new S3Client([ + 'region' => 'your region', + 'version' => 'latest', + 'bucketName' => $bucket, + 'credentials' => CredentialProvider::defaultProvider(), + ]); + $client->registerStreamWrapper(); + + $zipFile = fopen("s3://$bucket/example.zip", 'w'); + + $zip = new ZipStream( + enableZip64: false, + outputStream: $zipFile, + ); + + $zip->addFile( + fileName: 'file1.txt', + data: 'File1 data', + ); + $zip->addFile( + fileName: 'file2.txt', + data: 'File2 data', + ); + $zip->finish(); + + fclose($zipFile); diff --git a/vendor/maennchen/zipstream-php/guides/Symfony.rst b/vendor/maennchen/zipstream-php/guides/Symfony.rst new file mode 100644 index 0000000..902552c --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/Symfony.rst @@ -0,0 +1,130 @@ +Usage with Symfony +=============== + +Overview for using ZipStream in Symfony +-------- + +Using ZipStream in Symfony requires use of Symfony's ``StreamedResponse`` when +used in controller actions. + +Wrap your call to the relevant ``ZipStream`` stream method (i.e. ``addFile``, +``addFileFromPath``, ``addFileFromStream``) in Symfony's ``StreamedResponse`` +function passing in any required arguments for your use case. + +Using Symfony's ``StreamedResponse`` will allow Symfony to stream output from +ZipStream correctly to users' browsers and avoid a corrupted final zip landing +on the users' end. + +Example for using ``ZipStream`` in a controller action to zip stream files +stored in an AWS S3 bucket by key: + +.. code-block:: php + + use Symfony\Component\HttpFoundation\StreamedResponse; + use Aws\S3\S3Client; + use ZipStream; + + //... + + /** + * @Route("/zipstream", name="zipstream") + */ + public function zipStreamAction() + { + // sample test file on s3 + $s3keys = array( + "ziptestfolder/file1.txt" + ); + + $s3Client = $this->get('app.amazon.s3'); //s3client service + $s3Client->registerStreamWrapper(); //required + + // using StreamedResponse to wrap ZipStream functionality + // for files on AWS s3. + $response = new StreamedResponse(function() use($s3keys, $s3Client) + { + // Define suitable options for ZipStream Archive. + // this is needed to prevent issues with truncated zip files + //initialise zipstream with output zip filename and options. + $zip = new ZipStream\ZipStream( + outputName: 'test.zip', + defaultEnableZeroHeader: true, + contentType: 'application/octet-stream', + ); + + //loop keys - useful for multiple files + foreach ($s3keys as $key) { + // Get the file name in S3 key so we can save it to the zip + //file using the same name. + $fileName = basename($key); + + // concatenate s3path. + // replace with your bucket name or get from parameters file. + $bucket = 'bucketname'; + $s3path = "s3://" . $bucket . "/" . $key; + + //addFileFromStream + if ($streamRead = fopen($s3path, 'r')) { + $zip->addFileFromStream( + fileName: $fileName, + stream: $streamRead, + ); + } else { + die('Could not open stream for reading'); + } + } + + $zip->finish(); + + }); + + return $response; + } + +In the above example, files on AWS S3 are being streamed from S3 to the Symfon +application via ``fopen`` call when the s3Client has ``registerStreamWrapper`` +applied. This stream is then passed to ``ZipStream`` via the +``addFileFromStream`` function, which ZipStream then streams as a zip to the +client browser via Symfony's ``StreamedResponse``. No Zip is created server +side, which makes this approach a more efficient solution for streaming zips to +the client browser especially for larger files. + +For the above use case you will need to have installed +`aws/aws-sdk-php-symfony `_ to +support accessing S3 objects in your Symfony web application. This is not +required for locally stored files on you server you intend to stream via +``ZipStream``. + +See official Symfony documentation for details on +`Symfony's StreamedResponse `_ +``Symfony\Component\HttpFoundation\StreamedResponse``. + +Note from `S3 documentation `_: + + Streams opened in "r" mode only allow data to be read from the stream, and + are not seekable by default. This is so that data can be downloaded from + Amazon S3 in a truly streaming manner, where previously read bytes do not + need to be buffered into memory. If you need a stream to be seekable, you + can pass seekable into the stream context options of a function. + +Make sure to configure your S3 context correctly! + +Uploading a file +-------- + +You need to add correct permissions +(see `#120 `_) + +**example code** + + +.. code-block:: php + + $path = "s3://{$adapter->getBucket()}/{$this->getArchivePath()}"; + + // the important bit + $outputContext = stream_context_create([ + 's3' => ['ACL' => 'public-read'], + ]); + + fopen($path, 'w', null, $outputContext); diff --git a/vendor/maennchen/zipstream-php/guides/Varnish.rst b/vendor/maennchen/zipstream-php/guides/Varnish.rst new file mode 100644 index 0000000..952d287 --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/Varnish.rst @@ -0,0 +1,22 @@ +Usage with Varnish +============= + +Serving a big zip with varnish in between can cause random stream close. +This can be solved by adding attached code to the vcl file. + +To avoid the problem, add the following to your varnish config file: + +.. code-block:: + sub vcl_recv { + # Varnish can’t intercept the discussion anymore + # helps for streaming big zips + if (req.url ~ "\.(tar|gz|zip|7z|exe)$") { + return (pipe); + } + } + # Varnish can’t intercept the discussion anymore + # helps for streaming big zips + sub vcl_pipe { + set bereq.http.connection = "close"; + return (pipe); + } diff --git a/vendor/maennchen/zipstream-php/guides/index.rst b/vendor/maennchen/zipstream-php/guides/index.rst new file mode 100644 index 0000000..48f465a --- /dev/null +++ b/vendor/maennchen/zipstream-php/guides/index.rst @@ -0,0 +1,126 @@ +ZipStream PHP +============= + +A fast and simple streaming zip file downloader for PHP. Using this library will +save you from having to write the Zip to disk. You can directly send it to the +user, which is much faster. It can work with S3 buckets or any PSR7 Stream. + +.. toctree:: + + index + Symfony + Options + StreamOutput + FlySystem + PSR7Streams + Nginx + Varnish + ContentLength + +Installation +--------------- + +Simply add a dependency on ``maennchen/zipstream-php`` to your project's +``composer.json`` file if you use Composer to manage the dependencies of your +project. Use following command to add the package to your project's +dependencies: + +.. code-block:: sh + composer require maennchen/zipstream-php + +If you want to use``addFileFromPsr7Stream``` +(``Psr\Http\Message\StreamInterface``) or use a stream instead of a +``resource`` as ``outputStream``, the following dependencies must be installed +as well: + +.. code-block:: sh + composer require psr/http-message guzzlehttp/psr7 + +If ``composer install`` yields the following error, your installation is missing +the `mbstring extension `_, +either `install it `_ +or run the follwoing command: + +.. code-block:: + Your requirements could not be resolved to an installable set of packages. + + Problem 1 + - Root composer.json requires PHP extension ext-mbstring * but it is + missing from your system. Install or enable PHP's mbstrings extension. + +.. code-block:: sh + composer require symfony/polyfill-mbstring + +Usage Intro +--------------- + +Here's a simple example: + +.. code-block:: php + + // Autoload the dependencies + require 'vendor/autoload.php'; + + // create a new zipstream object + $zip = new ZipStream\ZipStream( + outputName: 'example.zip', + + // enable output of HTTP headers + sendHttpHeaders: true, + ); + + // create a file named 'hello.txt' + $zip->addFile( + fileName: 'hello.txt', + data: 'This is the contents of hello.txt', + ); + + // add a file named 'some_image.jpg' from a local file 'path/to/image.jpg' + $zip->addFileFromPath( + fileName: 'some_image.jpg', + path: 'path/to/image.jpg', + ); + + // add a file named 'goodbye.txt' from an open stream resource + $filePointer = tmpfile(); + fwrite($filePointer, 'The quick brown fox jumped over the lazy dog.'); + rewind($filePointer); + $zip->addFileFromStream( + fileName: 'goodbye.txt', + stream: $filePointer, + ); + fclose($filePointer); + + // add a file named 'streamfile.txt' from the body of a `guzzle` response + // Setup with `psr/http-message` & `guzzlehttp/psr7` dependencies required. + $zip->addFileFromPsr7Stream( + fileName: 'streamfile.txt', + stream: $response->getBody(), + ); + + // finish the zip stream + $zip->finish(); + +You can also add comments, modify file timestamps, and customize (or +disable) the HTTP headers. It is also possible to specify the storage method +when adding files, the current default storage method is ``DEFLATE`` +i.e files are stored with Compression mode 0x08. + +Known Issues +--------------- + +The native Mac OS archive extraction tool prior to macOS 10.15 might not open +archives in some conditions. A workaround is to disable the Zip64 feature with +the option ``enableZip64: false``. This limits the archive to 4 Gb and 64k files +but will allow users on macOS 10.14 and below to open them without issue. +See `#116 `_. + +The linux ``unzip`` utility might not handle properly unicode characters. +It is recommended to extract with another tool like +`7-zip `_. +See `#146 `_. + +It is the responsability of the client code to make sure that files are not +saved with the same path, as it is not possible for the library to figure it out +while streaming a zip. +See `#154 `_. diff --git a/vendor/maennchen/zipstream-php/phpdoc.dist.xml b/vendor/maennchen/zipstream-php/phpdoc.dist.xml new file mode 100644 index 0000000..b98fe1c --- /dev/null +++ b/vendor/maennchen/zipstream-php/phpdoc.dist.xml @@ -0,0 +1,39 @@ + + + 💾 ZipStream-PHP + + docs + + + latest + + + src + + api + + + php + + public + ZipStream + true + + + + guides + + guide + + + +