commit 0451bbf721219c19b0df2942320584c2359d730f Author: iblfzi Date: Tue Jul 28 13:00:53 2026 +0700 commit pertama diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8f0de65 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..478972c --- /dev/null +++ b/.env.example @@ -0,0 +1,58 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailpit +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7dbbf41 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f0d10af --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..50eeeed --- /dev/null +++ b/.htaccess @@ -0,0 +1,11 @@ +DirectoryIndex public/index.php + + + RewriteEngine On + + # Arahkan request ke folder public agar Laravel bisa berjalan dari root hosting. + RewriteCond %{REQUEST_URI} !^/public/ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ public/$1 [L] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..3ed385a --- /dev/null +++ b/README.md @@ -0,0 +1,66 @@ +

Laravel Logo

+ +

+Build Status +Total Downloads +Latest Stable Version +License +

+ +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. + +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +## Laravel Sponsors + +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). + +### Premium Partners + +- **[Vehikl](https://vehikl.com/)** +- **[Tighten Co.](https://tighten.co)** +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** +- **[64 Robots](https://64robots.com)** +- **[Cubet Techno Labs](https://cubettech.com)** +- **[Cyber-Duck](https://cyber-duck.co.uk)** +- **[Many](https://www.many.co.uk)** +- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** +- **[DevSquad](https://devsquad.com)** +- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** +- **[OP.GG](https://op.gg)** +- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)** +- **[Lendio](https://lendio.com)** + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 0000000..d8bc1d2 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,32 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 0000000..82a37e4 --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,50 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var array> + */ + protected $dontReport = [ + // + ]; + + /** + * A list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation', + ]; + + /** + * Register the exception handling callbacks for the application. + * + * @return void + */ + public function register() + { + $this->reportable(function (Throwable $e) { + // + }); + } +} diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php new file mode 100644 index 0000000..9fee376 --- /dev/null +++ b/app/Http/Controllers/AccountController.php @@ -0,0 +1,98 @@ +pluck('branch')->toArray(); + + return view('manajemen_akun', compact('accounts', 'allBranches', 'usedBranchNames')); + } + + public function store(Request $request) + { + $request->validate([ + 'name' => ['required', 'string', 'max:255', 'regex:/^[a-zA-Z0-9\s]+$/'], + 'email' => ['required', 'string', 'email', 'max:255', 'unique:users', 'regex:/^[a-z0-9._%+-]+@gmail\.com$/'], + 'password' => 'required|string|min:8|max:12', + 'branch' => 'required|string|unique:users,branch', + ], [ + 'name.regex' => 'Nama lengkap hanya boleh berisi huruf, angka, dan spasi.', + 'email.regex' => 'Email harus menggunakan huruf kecil dan diakhiri dengan @gmail.com', + 'password.min' => 'Password minimal 8 karakter.', + 'password.max' => 'Password maksimal 12 karakter.', + 'branch.unique' => 'Cabang ini sudah memiliki akun terdaftar.', + ]); + + User::create([ + 'name' => $request->name, + 'email' => $request->email, + 'password' => Hash::make($request->password), + 'role' => 'karyawan', + 'branch' => $request->branch, + ]); + + return back()->with('success', 'Akun karyawan berhasil ditambahkan!'); + } + + public function update(Request $request, $id) + { + $user = User::findOrFail($id); + + $request->validate([ + 'name' => ['required', 'string', 'max:255', 'regex:/^[a-zA-Z0-9\s]+$/'], + 'email' => ['required', 'string', 'email', 'max:255', 'unique:users,email,'.$id, 'regex:/^[a-z0-9._%+-]+@gmail\.com$/'], + 'branch' => 'required|string|unique:users,branch,'.$id, + ], [ + 'name.regex' => 'Nama lengkap hanya boleh berisi huruf, angka, dan spasi.', + 'email.regex' => 'Email harus menggunakan huruf kecil dan diakhiri dengan @gmail.com', + 'branch.unique' => 'Cabang ini sudah memiliki akun terdaftar.', + ]); + + $data = [ + 'name' => $request->name, + 'email' => strtolower($request->email), + 'branch' => $request->branch, + ]; + + if ($request->filled('password')) { + $request->validate([ + 'password' => 'string|min:8|max:12' + ], [ + 'password.min' => 'Password minimal 8 karakter.', + 'password.max' => 'Password maksimal 12 karakter.', + ]); + $data['password'] = Hash::make($request->password); + } + + $user->update($data); + + return back()->with('success', 'Akun karyawan berhasil diperbarui!'); + } + + public function destroy($id) + { + $user = User::findOrFail($id); + + // Prevent deleting the main admin if accidentally reached + if ($user->role === 'admin') { + return back()->with('error', 'Tidak dapat menghapus akun admin!'); + } + + $user->delete(); + return back()->with('success', 'Akun karyawan berhasil dihapus!'); + } +} diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php new file mode 100644 index 0000000..e69de29 diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php new file mode 100644 index 0000000..4c1e58d --- /dev/null +++ b/app/Http/Controllers/AuthController.php @@ -0,0 +1,48 @@ +validate([ + 'email' => ['required', 'email'], + 'password' => ['required'], + ]); + + if (Auth::attempt($credentials)) { + $user = Auth::user(); + + // Store in session for UI logic (matching previous behavior) + session(['role' => $user->role]); + session(['branch' => $user->branch]); + + $request->session()->regenerate(); + + return redirect()->intended('/dashboard'); + } + + return back()->withErrors([ + 'email' => 'Email atau password salah.', + ]); + } + + public function logout(Request $request) + { + Auth::logout(); + + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + return redirect('/'); + } +} diff --git a/app/Http/Controllers/BranchController.php b/app/Http/Controllers/BranchController.php new file mode 100644 index 0000000..03bf954 --- /dev/null +++ b/app/Http/Controllers/BranchController.php @@ -0,0 +1,39 @@ +get(); + return view('branches', compact('branches')); + } + + public function store(Request $request) + { + $request->validate([ + 'name' => 'required|string|regex:/^[a-zA-Z0-9\s]+$/|unique:branches|max:255', + ], [ + 'name.regex' => 'Nama cabang hanya boleh berisi huruf, angka, dan spasi.', + 'name.unique' => 'Nama cabang ini sudah terdaftar.', + ]); + + Branch::create([ + 'name' => $request->name, + ]); + + return back()->with('success', 'Cabang baru berhasil ditambahkan!'); + } + + public function destroy($id) + { + $branch = Branch::findOrFail($id); + $branch->delete(); + + return back()->with('success', 'Cabang berhasil dihapus!'); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..a0a2a8a --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,13 @@ +role === 'admin') { + return redirect('/admin/dashboard'); + } + + $branch = Auth::user()->branch ?? 'Cabang 1'; + $today = Carbon::today()->toDateString(); + + // 1. Total Penjualan Hari Ini (IDR) + $totalSalesToday = Sale::where('branch', $branch) + ->whereDate('date', $today) + ->sum('total_price'); + + // 2. Total Transaksi Hari Ini (Count) + $transactionCountToday = Sale::where('branch', $branch) + ->whereDate('date', $today) + ->count(); + + // 3. Total Pengeluaran Hari Ini (IDR) - From Purchases + $totalPurchasesToday = Purchase::where('branch', $branch) + ->whereDate('date', $today) + ->sum('total_price'); + + // 4. Aktivitas Terbaru + $recentSales = Sale::where('branch', $branch) + ->latest() + ->take(5) + ->get() + ->map(function ($item) { + $item->type = 'Penjualan'; + $item->badge = 'badge-success'; + return $item; + }); + + $recentPurchases = Purchase::where('branch', $branch) + ->latest() + ->take(5) + ->get() + ->map(function ($item) { + $item->type = 'Pembelian'; // Fixed from 'Pengeluaran' for consistency + $item->badge = 'badge-danger'; + return $item; + }); + + $activities = $recentSales->concat($recentPurchases) + ->sortByDesc('created_at') + ->take(5); + + return view('dashboard', compact( + 'totalSalesToday', + 'transactionCountToday', + 'totalPurchasesToday', + 'activities' + )); + } + + public function adminIndex() + { + if (Auth::user()->role !== 'admin') { + return redirect('/dashboard'); + } + + $today = Carbon::today()->toDateString(); + + // 1. Total Omzet Semua Cabang + $totalOmzetAll = Sale::whereDate('date', $today)->sum('total_price'); + + // 2. Total Pengeluaran Semua Cabang + $totalExpensesAll = Purchase::whereDate('date', $today)->sum('total_price'); + + // 3. Laba Bersih + $netProfit = $totalOmzetAll - $totalExpensesAll; + + // 4. Cabang Aktif + $branchCount = 3; // Static as per current design or count unique branches + + // 5. Rata-rata per Cabang + $averageSales = $branchCount > 0 ? $totalOmzetAll / $branchCount : 0; + + // 6. Data Grafik Mingguan (7 hari terakhir) + $weeklyLabels = []; + $branch1Data = []; + $branch2Data = []; + $branch3Data = []; + + for ($i = 6; $i >= 0; $i--) { + $date = Carbon::today()->subDays($i); + $weeklyLabels[] = $date->translatedFormat('D'); + + $branch1Data[] = Sale::where('branch', 'Cabang 1')->whereDate('date', $date->toDateString())->sum('total_price'); + $branch2Data[] = Sale::where('branch', 'Cabang 2')->whereDate('date', $date->toDateString())->sum('total_price'); + $branch3Data[] = Sale::where('branch', 'Cabang 3')->whereDate('date', $date->toDateString())->sum('total_price'); + } + + // 7. Omzet per Cabang (Untuk Bar Chart) + $branchOmzet = [ + Sale::where('branch', 'Cabang 1')->sum('total_price'), + Sale::where('branch', 'Cabang 2')->sum('total_price'), + Sale::where('branch', 'Cabang 3')->sum('total_price'), + ]; + + $branchProfit = [ + $branchOmzet[0] - Purchase::where('branch', 'Cabang 1')->sum('total_price'), + $branchOmzet[1] - Purchase::where('branch', 'Cabang 2')->sum('total_price'), + $branchOmzet[2] - Purchase::where('branch', 'Cabang 3')->sum('total_price'), + ]; + + return view('admin.dashboard', compact( + 'totalOmzetAll', + 'totalExpensesAll', + 'netProfit', + 'branchCount', + 'averageSales', + 'weeklyLabels', + 'branch1Data', + 'branch2Data', + 'branch3Data', + 'branchOmzet', + 'branchProfit' + )); + } +} diff --git a/app/Http/Controllers/FinancialReportController.php b/app/Http/Controllers/FinancialReportController.php new file mode 100644 index 0000000..cae1939 --- /dev/null +++ b/app/Http/Controllers/FinancialReportController.php @@ -0,0 +1,429 @@ +toArray(); + if (empty($branches)) { + $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; // Fallback + } + + $month = $request->get('month'); + $year = $request->get('year'); + + // 1. Data Gabungan + $jQuery = JournalDetail::with('journalEntry', 'account') + ->whereHas('journalEntry', function($q) use ($month, $year) { + if ($month) $q->whereMonth('date', $month); + if ($year) $q->whereYear('date', $year); + }); + + $penjualan = (clone $jQuery)->whereHas('account', function($q) { $q->where('code', '401'); })->sum('credit'); + $hpp = (clone $jQuery)->whereHas('account', function($q) { $q->where('code', '501'); })->sum('debit'); + $labaKotor = $penjualan - $hpp; + + $opCostsDetails = (clone $jQuery)->whereHas('account', function($q) { $q->where('code', '502'); })->get(); + // Format to match existing view + $opCostsTotal = $opCostsDetails->map(function($d) { + $desc = str_replace('Biaya Operasional: ', '', $d->journalEntry->description); + return (object)[ + 'label' => $desc, + 'branch' => $d->journalEntry->branch, + 'amount' => $d->debit + ]; + }); + $totalOpAmount = $opCostsTotal->sum('amount'); + $labaBersih = $labaKotor - $totalOpAmount; + + $dataTotal = [ + 'penjualan' => $penjualan, + 'pembelian' => $hpp, + 'laba_kotor' => $labaKotor, + 'operational' => $opCostsTotal, + 'total_operational' => $totalOpAmount, + 'laba_bersih' => $labaBersih + ]; + + // 2. Per Branch Data + $branchData = []; + foreach ($branches as $branch) { + $bJQuery = JournalDetail::with('journalEntry', 'account') + ->whereHas('journalEntry', function($q) use ($month, $year, $branch) { + $q->where('branch', $branch); + if ($month) $q->whereMonth('date', $month); + if ($year) $q->whereYear('date', $year); + }); + + $bPenjualan = (clone $bJQuery)->whereHas('account', function($q) { $q->where('code', '401'); })->sum('credit'); + $bHpp = (clone $bJQuery)->whereHas('account', function($q) { $q->where('code', '501'); })->sum('debit'); + $bLabaKotor = $bPenjualan - $bHpp; + + $bOpCostsDetails = (clone $bJQuery)->whereHas('account', function($q) { $q->where('code', '502'); })->get(); + $bOpCostsTotal = $bOpCostsDetails->map(function($d) { + $desc = str_replace('Biaya Operasional: ', '', $d->journalEntry->description); + return (object)[ + 'label' => $desc, + 'branch' => $d->journalEntry->branch, + 'amount' => $d->debit + ]; + }); + $bTotalOpAmount = $bOpCostsTotal->sum('amount'); + $bLabaBersih = $bLabaKotor - $bTotalOpAmount; + + $branchData[$branch] = [ + 'penjualan' => $bPenjualan, + 'pembelian' => $bHpp, + 'laba_kotor' => $bLabaKotor, + 'operational' => $bOpCostsTotal, + 'total_operational' => $bTotalOpAmount, + 'laba_bersih' => $bLabaBersih + ]; + } + + return view('neraca_laba_rugi', compact('dataTotal', 'branchData', 'branches')); + } + + public function exportProfitAndLossPdf(Request $request) + { + $branches = Branch::pluck('name')->toArray(); + if (empty($branches)) { + $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; // Fallback + } + + $month = $request->get('month'); + $year = $request->get('year'); + $branchFilter = $request->get('branch'); + + // Target branch calculation + $targetBranch = $branchFilter ?: 'Total Gabungan'; + + $jQuery = JournalDetail::with('journalEntry', 'account') + ->whereHas('journalEntry', function($q) use ($month, $year, $branchFilter) { + if ($branchFilter && $branchFilter !== 'Total Gabungan') { + $q->where('branch', $branchFilter); + } + if ($month) $q->whereMonth('date', $month); + if ($year) $q->whereYear('date', $year); + }); + + $penjualan = (clone $jQuery)->whereHas('account', function($q) { $q->where('code', '401'); })->sum('credit'); + $hpp = (clone $jQuery)->whereHas('account', function($q) { $q->where('code', '501'); })->sum('debit'); + $labaKotor = $penjualan - $hpp; + + $opCostsDetails = (clone $jQuery)->whereHas('account', function($q) { $q->where('code', '502'); })->get(); + // Format to match existing view expectation + $opCostsTotalData = $opCostsDetails->map(function($d) { + $desc = str_replace('Biaya Operasional: ', '', $d->journalEntry->description); + return (object)[ + 'label' => $desc, + 'branch' => $d->journalEntry->branch, + 'amount' => $d->debit + ]; + }); + + $totalOpAmount = $opCostsTotalData->sum('amount'); + $labaBersih = $labaKotor - $totalOpAmount; + + $data = [ + 'penjualan' => $penjualan, + 'pembelian' => $hpp, + 'laba_kotor' => $labaKotor, + 'operational' => $opCostsTotalData, + 'total_operational' => $totalOpAmount, + 'laba_bersih' => $labaBersih, + 'branch' => $targetBranch, + 'month' => $month, + 'year' => $year + ]; + + $pdf = \Barryvdh\DomPDF\Facade\Pdf::loadView('reports.neraca_laba_rugi_pdf', $data); + return $pdf->download('laporan_neraca_laba_rugi_' . date('Y-m-d') . '.pdf'); + } + + public function generalLedger() + { + $branches = Branch::pluck('name')->toArray(); + if (empty($branches)) { + $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; // Fallback + } + + // 1. Total Gabungan + // Filter only 'Kas' account (101) to match existing simplified Ledger layout + $kasDetails = JournalDetail::whereHas('account', function($q) { + $q->where('code', '101'); + })->with('journalEntry')->get(); + + $transactionsTotal = $kasDetails->map(function($d) { + return [ + 'date' => $d->journalEntry->date, + 'account' => 'Kas', + 'desc' => $d->journalEntry->description, + 'debit' => $d->debit, + 'credit' => $d->credit + ]; + }); + + // Initial Balance dari nilai stok saat ini + $initialBalance = $this->calculateModalFromStock(); + $ledgerTotal = $this->processLedger($transactionsTotal, $initialBalance, 'Modal dari Stok'); + + // 2. Per Branch + $branchLedgers = []; + foreach ($branches as $branch) { + $initialBranchBalance = $this->calculateModalFromStock($branch); + $bKasDetails = JournalDetail::whereHas('account', function($q) { + $q->where('code', '101'); + })->whereHas('journalEntry', function($q) use ($branch) { + $q->where('branch', $branch); + })->with('journalEntry')->get(); + + $bTransactions = $bKasDetails->map(function($d) { + return [ + 'date' => $d->journalEntry->date, + 'account' => 'Kas', + 'desc' => $d->journalEntry->description, + 'debit' => $d->debit, + 'credit' => $d->credit + ]; + }); + + $branchLedgers[$branch] = $this->processLedger($bTransactions, $initialBranchBalance, 'Modal dari Stok ' . $branch); + } + + return view('buku_besar', compact('ledgerTotal', 'branchLedgers', 'branches')); + } + + private function processLedger($transactions, $initialBalance, $initialDesc) + { + $ledger = collect(); + + // Add Initial Transaction + $ledger->push([ + 'date' => '2025-09-01', // Example date matching mockup + 'account' => 'Kas', + 'desc' => $initialDesc, + 'debit' => $initialBalance, + 'credit' => 0, + 'balance' => $initialBalance + ]); + + $sortedTrans = $transactions->sortBy('date'); + $currentBalance = $initialBalance; + + foreach ($sortedTrans as $t) { + $currentBalance += $t['debit']; + $currentBalance -= $t['credit']; + + $ledger->push([ + 'date' => $t['date'], + 'account' => $t['account'], + 'desc' => $t['desc'], + 'debit' => $t['debit'], + 'credit' => $t['credit'], + 'balance' => $currentBalance + ]); + } + + return $ledger; + } + + public function generalJournal() + { + $branches = Branch::pluck('name')->toArray(); + if (empty($branches)) { + $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; // Fallback + } + + // 1. Total Gabungan + $journalTotal = collect(); + + $details = JournalDetail::with('journalEntry', 'account') + ->join('journal_entries', 'journal_details.journal_entry_id', '=', 'journal_entries.id') + ->orderBy('journal_entries.date') + ->orderBy('journal_entries.id') + ->orderBy('journal_details.credit') // debit first + ->select('journal_details.*') + ->get(); + + foreach($details as $d) { + $journalTotal->push([ + 'date' => $d->journalEntry->date, + 'desc' => $d->credit > 0 ? ' ' . $d->account->name : $d->account->name, + 'reff' => $d->account->code, + 'debit' => $d->debit, + 'credit' => $d->credit + ]); + } + + // 2. Per Branch Data + $branchJournals = []; + foreach ($branches as $branch) { + $journal = collect(); + + $bDetails = JournalDetail::with('journalEntry', 'account') + ->join('journal_entries', 'journal_details.journal_entry_id', '=', 'journal_entries.id') + ->where('journal_entries.branch', $branch) + ->orderBy('journal_entries.date') + ->orderBy('journal_entries.id') + ->orderBy('journal_details.credit') // debit first + ->select('journal_details.*') + ->get(); + + foreach($bDetails as $d) { + $journal->push([ + 'date' => $d->journalEntry->date, + 'desc' => $d->credit > 0 ? ' ' . $d->account->name : $d->account->name, + 'reff' => $d->account->code, + 'debit' => $d->debit, + 'credit' => $d->credit + ]); + } + + $branchJournals[$branch] = $journal; + } + + return view('jurnal_umum', compact('journalTotal', 'branchJournals', 'branches')); + } + + public function equityStatement(Request $request) + { + $branches = Branch::pluck('name')->toArray(); + if (empty($branches)) $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; + + // Laba Bersih = Penjualan (401) - HPP (501) - Biaya (502) + $penjualan = JournalDetail::whereHas('account', function($q) { $q->where('code', '401'); })->sum('credit'); + $hpp = JournalDetail::whereHas('account', function($q) { $q->where('code', '501'); })->sum('debit'); + $biaya = JournalDetail::whereHas('account', function($q) { $q->where('code', '502'); })->sum('debit'); + $labaBersih = $penjualan - $hpp - $biaya; + + // Modal berasal dari nilai stok saat ini berdasarkan biaya perolehan (harga beli), + // karena sistem belum punya akun modal nyata. + $modalAwal = $this->calculateModalFromStock(); + + $modalAkhir = $modalAwal + $labaBersih; + + $data = [ + 'modal_awal' => $modalAwal, + 'laba_bersih' => $labaBersih, + 'prive' => 0, + 'modal_akhir' => $modalAkhir + ]; + + return view('perubahan_modal', compact('data', 'branches')); + } + + public function balanceSheet(Request $request) + { + $branches = Branch::pluck('name')->toArray(); + if (empty($branches)) $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; + + // Assets + $kas = JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); })->sum('debit') - JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); })->sum('credit'); + + // Persediaan dari journal (Debit = Awal Persediaan, Credit = Penjualan HPP) + $persediaan = JournalDetail::whereHas('account', function($q) { $q->where('code', '102'); })->sum('debit') - JournalDetail::whereHas('account', function($q) { $q->where('code', '102'); })->sum('credit'); + + $totalAset = $kas + $persediaan; + + // Liabilities + $hutang = 0; // We don't have liability accounts seeded yet + + // Equity + $penjualan = JournalDetail::whereHas('account', function($q) { $q->where('code', '401'); })->sum('credit'); + $hpp = JournalDetail::whereHas('account', function($q) { $q->where('code', '501'); })->sum('debit'); + $biaya = JournalDetail::whereHas('account', function($q) { $q->where('code', '502'); })->sum('debit'); + $labaBersih = $penjualan - $hpp - $biaya; + + // Modal berasal dari nilai stok saat ini berdasarkan biaya perolehan (harga beli), + // karena sistem belum punya akun modal nyata. + $modalAwal = $this->calculateModalFromStock(); + $modalAkhir = $modalAwal + $labaBersih; + + $totalPasiva = $hutang + $modalAkhir; + + $data = [ + 'kas' => $kas, + 'persediaan' => $persediaan, + 'total_aset' => $totalAset, + 'hutang' => $hutang, + 'modal_akhir' => $modalAkhir, + 'total_pasiva' => $totalPasiva + ]; + + return view('neraca_keuangan', compact('data', 'branches')); + } + + private function calculateModalFromStock($branch = null) + { + $query = Stock::query()->with('product'); + + if ($branch) { + $query->where('branch', $branch); + } + + return (float) $query->get()->sum(function ($stock) { + $product = $stock->product; + if (!$product) { + return 0; + } + + $quantity = (float) $stock->quantity; + $purchasePrice = (float) $product->purchase_price; + + return $quantity > 0 ? $quantity * $purchasePrice : 0; + }); + } + + public function cashFlow(Request $request) + { + $branches = Branch::pluck('name')->toArray(); + if (empty($branches)) $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; + + // Penerimaan dari Penjualan (Debit Kas dari Jurnal Penjualan) + $penerimaanPenjualan = JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); }) + ->whereHas('journalEntry', function($q) { $q->where('reference_type', 'Sale'); })->sum('debit'); + + // Pengeluaran Pembelian (Kredit Kas dari Pembelian) + $pengeluaranPembelian = JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); }) + ->whereHas('journalEntry', function($q) { $q->where('reference_type', 'Purchase'); })->sum('credit'); + + // Pengeluaran Biaya Operasional (Kredit Kas dari Biaya Operasional) + $pengeluaranOperasional = JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); }) + ->whereHas('journalEntry', function($q) { $q->where('reference_type', 'OperationalCost'); })->sum('credit'); + + // Modal berasal dari stok, sehingga tidak ada setoran modal terpisah dalam arus kas + $setoranModal = 0; + + $arusKasOperasi = $penerimaanPenjualan - $pengeluaranPembelian - $pengeluaranOperasional; + $arusKasPendanaan = $setoranModal; + $kenaikanKas = $arusKasOperasi + $arusKasPendanaan; + + // Saldo Kas Akhir + $saldoKas = JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); })->sum('debit') - JournalDetail::whereHas('account', function($q) { $q->where('code', '101'); })->sum('credit'); + + $data = [ + 'penerimaan_penjualan' => $penerimaanPenjualan, + 'pengeluaran_pembelian' => $pengeluaranPembelian, + 'pengeluaran_operasional' => $pengeluaranOperasional, + 'arus_kas_operasi' => $arusKasOperasi, + 'setoran_modal' => $setoranModal, + 'arus_kas_pendanaan' => $arusKasPendanaan, + 'kenaikan_kas' => $kenaikanKas, + 'saldo_kas' => $saldoKas + ]; + + return view('arus_kas', compact('data', 'branches')); + } +} diff --git a/app/Http/Controllers/OperationalCostController.php b/app/Http/Controllers/OperationalCostController.php new file mode 100644 index 0000000..7156501 --- /dev/null +++ b/app/Http/Controllers/OperationalCostController.php @@ -0,0 +1,123 @@ +filled('month')) { + $query->whereMonth('date', $request->month); + } + if ($request->filled('year')) { + $query->whereYear('date', $request->year); + } + if ($request->filled('branch') && $request->branch != 'Semua Cabang') { + $query->where('branch', $request->branch); + } + + $costs = $query->get(); + $branches = Branch::all(); + $labels = OperationalCost::select('label')->distinct()->pluck('label'); + + return view('biaya_operasional', compact('costs', 'branches', 'labels')); + } + + public function store(Request $request) + { + $request->validate([ + 'date' => 'required|date', + 'branch' => 'required|string|max:255', + 'label' => 'required|string|max:255', + 'amount' => 'required|numeric|min:0', + ]); + + $cleanAmount = str_replace('.', '', $request->amount); + + \Illuminate\Support\Facades\DB::transaction(function () use ($request, $cleanAmount) { + $cost = OperationalCost::create([ + 'date' => $request->date, + 'branch' => $request->branch, + 'label' => $request->label, + 'amount' => (int) $cleanAmount, + ]); + + $kasAccount = Account::where('code', '101')->first(); + $bebanAccount = Account::where('code', '502')->first(); + + if ($kasAccount && $bebanAccount) { + $journal = JournalEntry::create([ + 'date' => $cost->date, + 'description' => 'Biaya Operasional: ' . $cost->label, + 'reference_type' => 'OperationalCost', + 'reference_id' => $cost->id, + 'branch' => $cost->branch, + ]); + + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $bebanAccount->id, 'debit' => $cost->amount, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $kasAccount->id, 'debit' => 0, 'credit' => $cost->amount]); + } + }); + + return back()->with('success', 'Biaya operasional berhasil ditambahkan!'); + } + + public function update(Request $request, $id) + { + $request->validate([ + 'date' => 'required|date', + 'branch' => 'required|string|max:255', + 'label' => 'required|string|max:255', + 'amount' => 'required|numeric|min:0', + ]); + + $cleanAmount = str_replace('.', '', $request->amount); + + \Illuminate\Support\Facades\DB::transaction(function () use ($request, $id, $cleanAmount) { + $cost = OperationalCost::findOrFail($id); + $cost->update([ + 'date' => $request->date, + 'branch' => $request->branch, + 'label' => $request->label, + 'amount' => (int) $cleanAmount, + ]); + + JournalEntry::where('reference_type', 'OperationalCost')->where('reference_id', $cost->id)->delete(); + + $kasAccount = Account::where('code', '101')->first(); + $bebanAccount = Account::where('code', '502')->first(); + + if ($kasAccount && $bebanAccount) { + $journal = JournalEntry::create([ + 'date' => $cost->date, + 'description' => 'Biaya Operasional: ' . $cost->label, + 'reference_type' => 'OperationalCost', + 'reference_id' => $cost->id, + 'branch' => $cost->branch, + ]); + + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $bebanAccount->id, 'debit' => $cost->amount, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $kasAccount->id, 'debit' => 0, 'credit' => $cost->amount]); + } + }); + + return back()->with('success', 'Biaya operasional berhasil diperbarui!'); + } + + public function destroy($id) + { + $cost = OperationalCost::findOrFail($id); + JournalEntry::where('reference_type', 'OperationalCost')->where('reference_id', $cost->id)->delete(); + $cost->delete(); + return back()->with('success', 'Biaya operasional berhasil dihapus!'); + } +} diff --git a/app/Http/Controllers/PasswordResetController.php b/app/Http/Controllers/PasswordResetController.php new file mode 100644 index 0000000..abbbb84 --- /dev/null +++ b/app/Http/Controllers/PasswordResetController.php @@ -0,0 +1,94 @@ +validate(['email' => 'required|email']); + + $user = User::where('email', $request->email)->first(); + + // Cek jika akun ada + if (!$user) { + return back()->withErrors(['email' => 'Email tidak ditemukan']); + } + // Syarat utama: HANYA Admin yang boleh melakukan reset + if ($user->role !== 'admin') { + return back()->withErrors(['email' => 'Fitur Lupa Password HANYA tersedia untuk Admin. Karyawan harap menghubungi Admin.']); + } + + // Generate token + $token = Str::random(60); + + // Hapus token lama jika ada, lalu insert yang baru (menyederhanakan karena kita bisa pakai insert) + DB::table('password_resets')->where('email', $user->email)->delete(); + DB::table('password_resets')->insert([ + 'email' => $user->email, + 'token' => Hash::make($token), + 'created_at' => Carbon::now() + ]); + + // Buat link reset + $resetUrl = url('/reset-password/' . $token . '?email=' . urlencode($user->email)); + + // Mengirim Email + // Pastikan driver mail di-set ke 'log' pada .env agar bisa dilihat di storage/logs/laravel.log pada local environment. + Mail::raw("Halo Admin,\n\nSilakan klik tautan di bawah ini untuk mereset kata sandi akun Anda:\n{$resetUrl}\n\nJika Anda tidak merasa mengajukan permintaan ini, mohon abaikan pesan ini.", function ($message) use ($user) { + $message->to($user->email) + ->subject('Reset Password Sistem Akuntansi Cak Imin'); + }); + + return back()->with('status', 'Link reset password telah dikirim ke email Anda. Silakan cek inbox/spam Anda.'); + } + + public function showResetForm($token, Request $request) + { + return view('auth.reset-password', ['token' => $token, 'email' => $request->email]); + } + + public function reset(Request $request) + { + $request->validate([ + 'email' => 'required|email', + 'password' => 'required|min:6|confirmed', + 'token' => 'required' + ]); + + // Verifikasi token + $resetRecord = DB::table('password_resets')->where('email', $request->email)->first(); + + if (!$resetRecord || !Hash::check($request->token, $resetRecord->token)) { + return back()->withErrors(['token' => 'Token reset kadaluarsa atau tidak valid. Harap minta kembali link reset.']); + } + + // Verifikasi User Admin + $user = User::where('email', $request->email)->first(); + if (!$user || $user->role !== 'admin') { + return back()->withErrors(['email' => 'Akses ditolak. Fitur reset hanya dapat diakses oleh Admin.']); + } + + // Update Password + $user->password = Hash::make($request->password); + $user->save(); + + // Hapus Token Reset + DB::table('password_resets')->where('email', $request->email)->delete(); + + return redirect('/login')->with('success', 'Berhasil! Kata sandi telah diubah. Silakan masuk menggunakan kata sandi baru.'); + } +} diff --git a/app/Http/Controllers/ProductController.php b/app/Http/Controllers/ProductController.php new file mode 100644 index 0000000..147ab70 --- /dev/null +++ b/app/Http/Controllers/ProductController.php @@ -0,0 +1,435 @@ +user()->role !== 'admin') { + return $this->karyawanIndex($request); + } + + $branches = \App\Models\Branch::all(); + $selectedBranch = $request->input('branch', 'Total Gabungan'); + + $query = Product::with(['stocks', 'recipes.rawMaterial']); + + if (auth()->user()->role !== 'admin') { + $query->where('branch', auth()->user()->branch ?? 'Cabang 1'); + } elseif ($selectedBranch && $selectedBranch !== 'Total Gabungan') { + $query->where('branch', $selectedBranch); + } + + if ($request->filled('search')) { + $query->where(function($q) use ($request) { + $q->where('name', 'like', '%' . $request->search . '%') + ->orWhere('category', 'like', '%' . $request->search . '%'); + }); + } + + $products = $query->get(); + + $selectedRawMaterialBranch = $request->input('raw_material_branch', 'Total Gabungan'); + $rawMaterialsQuery = \App\Models\RawMaterial::query(); + if ($selectedRawMaterialBranch && $selectedRawMaterialBranch !== 'Total Gabungan') { + $rawMaterialsQuery->where('branch', $selectedRawMaterialBranch); + } + $rawMaterials = $rawMaterialsQuery->get(); + + return view('produk', compact('products', 'branches', 'selectedBranch', 'rawMaterials', 'selectedRawMaterialBranch')); + } + + public function store(Request $request) + { + $request->validate([ + 'name' => 'required|string|max:255', + 'category' => 'required|in:makanan,minuman,snack', + 'purchase_price' => 'required|integer', + 'selling_price' => 'required|integer', + 'image' => 'nullable|image|mimes:jpeg,png,jpg,gif,svg|max:2048', + ]); + + $data = $request->all(); + $branch = auth()->user()->branch ?? 'Cabang 1'; + $data['branch'] = $branch; + + // Unique name check per branch + $exists = Product::whereRaw('LOWER(name) = ?', [strtolower($request->name)]) + ->where('branch', $branch) + ->exists(); + if ($exists) { + return back()->withInput()->withErrors(['duplicate_error' => 'Produk dengan nama "' . $request->name . '" sudah ada di ' . $branch . '.']); + } + + if ($request->hasFile('image')) { + $file = $request->file('image'); + $filename = time() . '_' . preg_replace('/[^a-zA-Z0-9._-]/', '', $file->getClientOriginalName()); + $destination = public_path('images/produk'); + if (!file_exists($destination)) { + mkdir($destination, 0775, true); + } + $file->move($destination, $filename); + $data['image'] = '/images/produk/' . $filename; + } + + $product = Product::create($data); + + // Save Recipes if any + if ($request->has('recipes') && is_array($request->recipes)) { + foreach ($request->recipes as $recipeData) { + if (isset($recipeData['raw_material_id']) && isset($recipeData['quantity_needed']) && $recipeData['quantity_needed'] !== '') { + // Parse quantity string to allow '300 ml', '0.5', '300' + $parsed = $this->parseQuantity($recipeData['quantity_needed']); + $rm = \App\Models\RawMaterial::find($recipeData['raw_material_id']); + $quantityToStore = $parsed['value']; + // If unit provided and differs from raw material unit, try to convert + if ($parsed['unit'] && $rm) { + $quantityToStore = $this->convertRecipeToRawMaterialUnit($parsed['value'], $parsed['unit'], $rm->unit); + } + + \App\Models\ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => $recipeData['raw_material_id'], + 'quantity_needed' => $quantityToStore, + ]); + } + } + + // Recalculate stock based on raw materials + $this->recalculateProductsFromRawMaterials($product->id, $branch); + } + + // Create initial stock for THIS branch only + \App\Models\Stock::create([ + 'product_id' => $product->id, + 'branch' => $branch, + 'quantity' => 0, + 'unit' => 'Pcs', + ]); + + return back()->with('success', 'Produk Master berhasil ditambahkan!'); + } + + public function update(Request $request, $id) + { + $request->validate([ + 'name' => 'required|string|max:255', + 'category' => 'required|in:makanan,minuman,snack', + 'purchase_price' => 'required|integer', + 'selling_price' => 'required|integer', + 'image' => 'nullable|image|mimes:jpeg,png,jpg,gif,svg|max:2048', + ]); + + $product = Product::findOrFail($id); + $branch = auth()->user()->branch ?? 'Cabang 1'; + + // Only allow update if product belongs to user's branch + if ($product->branch !== $branch) { + return back()->with('error', 'Anda tidak memiliki akses untuk mengubah produk dari cabang lain.'); + } + + // Unique name check for update per branch + $exists = Product::whereRaw('LOWER(name) = ?', [strtolower($request->name)]) + ->where('branch', $branch) + ->where('id', '!=', $id) + ->exists(); + if ($exists) { + return back()->withInput()->withErrors(['duplicate_error' => 'Produk dengan nama "' . $request->name . '" sudah ada di ' . $branch . '.']); + } + + $data = $request->only(['name', 'category', 'purchase_price', 'selling_price']); + + if ($request->hasFile('image')) { + // Delete old image if it exists in our public/images/produk directory + if ($product->image && str_contains($product->image, '/images/produk/')) { + $oldFile = public_path($product->image); + if (file_exists($oldFile)) { + unlink($oldFile); + } + } + // Also handle old images stored via storage symlink + if ($product->image && str_contains($product->image, '/storage/produk/')) { + $oldPath = str_replace('/storage/', '', $product->image); + Storage::disk('public')->delete($oldPath); + } + + $file = $request->file('image'); + $filename = time() . '_' . preg_replace('/[^a-zA-Z0-9._-]/', '', $file->getClientOriginalName()); + $destination = public_path('images/produk'); + if (!file_exists($destination)) { + mkdir($destination, 0775, true); + } + $file->move($destination, $filename); + $data['image'] = '/images/produk/' . $filename; + } + + $product->update($data); + + // Update Recipes + \App\Models\ProductRecipe::where('product_id', $product->id)->delete(); + if ($request->has('recipes') && is_array($request->recipes)) { + foreach ($request->recipes as $recipeData) { + if (isset($recipeData['raw_material_id']) && isset($recipeData['quantity_needed']) && $recipeData['quantity_needed'] !== '') { + $parsed = $this->parseQuantity($recipeData['quantity_needed']); + $rm = \App\Models\RawMaterial::find($recipeData['raw_material_id']); + $quantityToStore = $parsed['value']; + if ($parsed['unit'] && $rm) { + $quantityToStore = $this->convertRecipeToRawMaterialUnit($parsed['value'], $parsed['unit'], $rm->unit); + } + + \App\Models\ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => $recipeData['raw_material_id'], + 'quantity_needed' => $quantityToStore, + ]); + } + } + + // Recalculate stock based on raw materials + $this->recalculateProductsFromRawMaterials($product->id, $branch); + } + + return back()->with('success', 'Produk berhasil diperbarui!'); + } + + public function destroy($id) + { + $product = Product::findOrFail($id); + $branch = auth()->user()->branch ?? 'Cabang 1'; + + // Only allow deletion if product belongs to user's branch + if ($product->branch !== $branch) { + return back()->with('error', 'Anda tidak memiliki akses untuk menghapus produk dari cabang lain.'); + } + + $product->delete(); + return back()->with('success', 'Produk berhasil dihapus!'); + } + + // Karyawan: lihat produk dengan stok per cabang dan catat penjualan sederhana + public function karyawanIndex(Request $request) + { + $branch = auth()->user()->branch ?? 'Cabang 1'; + $query = Product::with(['stocks' => function($q) use ($branch) { + $q->where('branch', $branch); + }, 'recipes.rawMaterial'])->where('branch', $branch); + + if ($request->filled('search')) { + $query->where('name', 'like', '%' . $request->search . '%') + ->orWhere('category', 'like', '%' . $request->search . '%'); + } + + $products = $query->get(); + $rawMaterials = \App\Models\RawMaterial::where('branch', $branch)->get(); + + return view('produk_karyawan', compact('products', 'branch', 'rawMaterials')); + } + + public function sell(Request $request, $id) + { + $request->validate([ + 'quantity' => 'required|integer|min:1' + ]); + + $branch = auth()->user()->branch ?? 'Cabang 1'; + $qty = (int) $request->input('quantity'); + + $product = Product::with('recipes.rawMaterial')->findOrFail($id); + + if ($product->recipes->count() > 0) { + // Check raw material stock first + foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if (!$rm) continue; + $needed = $recipe->quantity_needed * $qty; + if ($rm->stock_quantity < $needed) { + return back()->withErrors(['stock' => 'Bahan baku tidak cukup untuk membuat ' . $qty . ' porsi.']); + } + } + + // Deduct raw materials + foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if ($rm) { + $rm->stock_quantity -= ($recipe->quantity_needed * $qty); + $rm->save(); + // Optional: recalculate other products that depend on this raw material + $this->recalculateProductsFromRawMaterial($rm->id, $branch); + } + } + } else { + // Deduct from regular stock + $stock = Stock::where('product_id', $id)->where('branch', $branch)->first(); + if (!$stock) { + return back()->withErrors(['stock' => 'Stok untuk produk ini tidak ditemukan pada cabang Anda.']); + } + + if ($stock->quantity < $qty) { + return back()->withErrors(['stock' => 'Stok tidak cukup. Tersedia: ' . $stock->quantity]); + } + + // Kurangi stok + $stock->quantity = $stock->quantity - $qty; + $stock->save(); + } + + // Catat penjualan sederhana + Sale::create([ + 'date' => now()->toDateString(), + 'branch' => $branch, + 'product_id' => $product->id, + 'item' => $product->name, + 'quantity' => $qty, + 'total_price' => ($product->selling_price ?? 0) * $qty, + ]); + + return back()->with('success', 'Penjualan berhasil dicatat dan stok diperbarui.'); + } + + private function recalculateProductsFromRawMaterials($productId, $branch) + { + $product = \App\Models\Product::with('recipes.rawMaterial')->find($productId); + if (!$product || $product->recipes->isEmpty()) { + return; + } + + $minStock = null; + foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if (!$rm || $recipe->quantity_needed <= 0) { + continue; + } + $possibleAmount = floor($rm->stock_quantity / $recipe->quantity_needed); + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } + } + + if ($minStock !== null && $minStock >= 0) { + $stock = \App\Models\Stock::firstOrCreate( + ['product_id' => $productId, 'branch' => $branch], + ['quantity' => 0, 'unit' => 'Pcs'] + ); + $stock->quantity = $minStock; + $stock->save(); + } + } + + // Parse quantity strings used in recipe inputs (e.g. '300 ml', '0.5', '300') + private function parseQuantity($quantityStr) + { + $quantityStr = trim((string)$quantityStr); + if (preg_match('/^([\d.,]+)\s*(.*)$/', $quantityStr, $m)) { + $value = floatval(str_replace(',', '.', $m[1])); + $unit = strtolower(trim($m[2])); + return ['value' => $value, 'unit' => $unit]; + } + return ['value' => floatval($quantityStr), 'unit' => '']; + } + + // Convert a recipe quantity with unit into the raw material's unit if possible + private function convertRecipeToRawMaterialUnit($value, $fromUnit, $toUnit) + { + $from = strtolower(trim($fromUnit)); + $to = strtolower(trim($toUnit)); + + // If same unit or no fromUnit, return value as-is + if (!$from || $from === $to) return $value; + + // Basic conversions: liters <-> ml, kilogram <-> gram + $mapping = [ + 'l' => ['ml' => 1000, 'liter' => 1000], + 'liter' => ['ml' => 1000, 'l' => 1], + 'ml' => ['l' => 1/1000, 'liter' => 1/1000], + 'kg' => ['g' => 1000, 'kilogram' => 1000], + 'kilogram' => ['g' => 1000, 'kg' => 1], + 'g' => ['kg' => 1/1000, 'gram' => 1/1000], + 'gram' => ['kg' => 1/1000, 'g' => 1], + ]; + + // Normalize tokens + $aliases = [ + 'grams' => 'g', 'gram' => 'g', 'gr' => 'g', + 'milliliter' => 'ml', 'mililiter' => 'ml', + 'litre' => 'l', 'liters' => 'l', 'liter' => 'l', + 'kilograms' => 'kg', 'kilogram' => 'kg', + 'pcs' => 'pcs', 'piece' => 'pcs', 'pc' => 'pcs', + 'botol' => 'botol' + ]; + + $fromNorm = $aliases[$from] ?? $from; + $toNorm = $aliases[$to] ?? $to; + + // If one is pcs and other is numeric unit, do not convert automatically + if (($fromNorm === 'pcs' && $toNorm !== 'pcs') || ($toNorm === 'pcs' && $fromNorm !== 'pcs')) { + return $value; + } + + if (isset($mapping[$fromNorm]) && isset($mapping[$fromNorm][$toNorm])) { + return $value * $mapping[$fromNorm][$toNorm]; + } + + // If direct mapping not found, try inverse + if (isset($mapping[$toNorm]) && isset($mapping[$toNorm][$fromNorm])) { + return $value / $mapping[$toNorm][$fromNorm]; + } + + return $value; + } + + private function recalculateProductsFromRawMaterial($rawMaterialId, $branch) + { + $recipes = \App\Models\ProductRecipe::where('raw_material_id', $rawMaterialId) + ->whereHas('product', function($q) use ($branch) { + $q->where('branch', $branch); + })->get(); + foreach ($recipes as $recipe) { + $product = clone $recipe->product; + + $minStock = null; + foreach ($product->recipes as $prodRecipe) { + $rm = $prodRecipe->rawMaterial; + $possibleAmount = floor($rm->stock_quantity / $prodRecipe->quantity_needed); + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } + } + + if ($minStock !== null) { + $stock = \App\Models\Stock::firstOrCreate( + ['product_id' => $product->id, 'branch' => $branch], + ['quantity' => 0, 'unit' => 'Pcs'] + ); + $stock->quantity = $minStock; + $stock->save(); + } + } + } + public function updateStock(Request $request, $id) + { + $request->validate([ + 'quantity' => 'required|integer' + ]); + + $branch = auth()->user()->branch ?? 'Cabang 1'; + + $stock = Stock::where('product_id', $id)->where('branch', $branch)->first(); + if (!$stock) { + return back()->withErrors(['stock' => 'Stok untuk produk ini tidak ditemukan pada cabang Anda.']); + } + + $stock->quantity += (int)$request->input('quantity'); + if ($stock->quantity < 0) $stock->quantity = 0; + $stock->save(); + + return back()->with('success', 'Stok berhasil diperbarui.'); + } +} diff --git a/app/Http/Controllers/PurchaseController.php b/app/Http/Controllers/PurchaseController.php new file mode 100644 index 0000000..ebdee1e --- /dev/null +++ b/app/Http/Controllers/PurchaseController.php @@ -0,0 +1,473 @@ +branch ?? 'Cabang 1'; + + $query = Purchase::with('product')->orderBy('date', 'desc'); + + if ($request->filled('year')) { + $query->whereYear('date', $request->year); + } + if ($request->filled('month')) { + $query->whereMonth('date', $request->month); + } + if ($request->filled('day')) { + $query->whereDay('date', $request->day); + } + + if ($request->filled('search')) { + $query->where('item', 'like', '%' . $request->search . '%'); + } + + // Apply "today" filter by default only when the page is first loaded + // (i.e. there are no query parameters). If the user submitted the filter + // form with "Semua Tahun" (empty values), we treat that as an explicit + // request and do not force today's data. + if (count($request->query()) === 0) { + $query->whereDate('date', \Carbon\Carbon::today()); + } + + // Filter raw materials by branch for karyawan, show all for admin + if ($user->role === 'admin') { + $rawMaterials = \App\Models\RawMaterial::all(); + $purchases = $query->get(); + return view('laporan_pembelian', compact('purchases', 'branches', 'rawMaterials')); + } else { + $rawMaterials = \App\Models\RawMaterial::where('branch', $branch)->get(); + $purchases = $query->where('branch', $user->branch)->get(); + return view('laporan_pembelian', compact('purchases', 'branches', 'rawMaterials')); + } + } + + public function create() + { + $user = Auth::user(); + + if ($user->role === 'admin') { + return redirect('/laporan/pembelian')->with('error', 'Fitur tambah pembelian hanya tersedia untuk karyawan.'); + } + + $branches = \App\Models\Branch::all(); + $branch = $user->branch ?? 'Cabang 1'; + $rawMaterials = \App\Models\RawMaterial::where('branch', $branch)->get(); + + return view('transaksi.pembelian', compact('branches', 'rawMaterials')); + } + + public function exportPdf(Request $request) + { + $user = Auth::user(); + if ($user->role !== 'admin') { + abort(403); + } + + $query = Purchase::with('product')->orderBy('date', 'desc'); + + if ($request->filled('year')) { + $query->whereYear('date', $request->year); + } + if ($request->filled('month')) { + $query->whereMonth('date', $request->month); + } + if ($request->filled('day')) { + $query->whereDay('date', $request->day); + } + + if ($request->filled('search')) { + $query->where('item', 'like', '%' . $request->search . '%'); + } + + // Apply default today filter for export only when there are no query params + if (count($request->query()) === 0) { + $query->whereDate('date', \Carbon\Carbon::today()); + } + + $purchases = $query->get(); + $branches = \App\Models\Branch::all(); + + $pdf = \Barryvdh\DomPDF\Facade\Pdf::loadView('reports.purchase_pdf', compact('purchases', 'branches')); + return $pdf->download('laporan_pembelian.pdf'); + } + + public function store(Request $request) + { + $rules = [ + 'date' => 'required|date', + 'item' => 'required|string|max:255', + 'quantity' => 'required|string|max:255', + 'total_price' => 'required|numeric|min:0', + 'type' => 'nullable|in:product,raw_material', + 'raw_material_id' => 'required_if:type,raw_material|not_in:0', + ]; + + // Hanya require field bahan baku baru jika raw_material_id = 'new' + if ($request->input('type') === 'raw_material' && $request->input('raw_material_id') === 'new') { + $rules['new_raw_material_name'] = 'required|string|max:255'; + $rules['new_raw_material_unit'] = 'required|string|max:50'; + } + + $request->validate($rules); + + // Debug log + \Illuminate\Support\Facades\Log::info('Purchase store - Request data:', [ + 'type' => $request->type, + 'raw_material_id' => $request->raw_material_id, + 'new_raw_material_name' => $request->new_raw_material_name, + 'new_raw_material_unit' => $request->new_raw_material_unit, + 'item' => $request->item, + 'quantity' => $request->quantity + ]); + + try { + \Illuminate\Support\Facades\DB::transaction(function () use ($request) { + $branch = Auth::user()->branch ?? 'Cabang 1'; + if (Auth::user()->role === 'admin' && $request->has('branch')) { + $branch = $request->branch; + } + + // Bersihkan format angka (hapus titik pemisah ribuan jika ada) + $cleanPrice = str_replace('.', '', $request->total_price); + + // Handle raw material creation if new raw material is provided + $rawMaterialId = $request->raw_material_id; + if ($request->type === 'raw_material' && $request->raw_material_id === 'new') { + if ($request->filled('new_raw_material_name') && $request->filled('new_raw_material_unit')) { + // Create new raw material + $newRm = \App\Models\RawMaterial::create([ + 'name' => $request->new_raw_material_name, + 'unit' => $request->new_raw_material_unit, + 'stock_quantity' => 0, + 'branch' => $branch + ]); + $rawMaterialId = $newRm->id; + } else { + throw new \Exception('Nama dan satuan bahan baku baru harus diisi.'); + } + } + + $purchase = Purchase::create([ + 'date' => $request->date, + 'branch' => $branch, + 'item' => $request->item, + 'quantity' => $request->quantity, + 'total_price' => (int) $cleanPrice, + 'product_id' => null, + 'raw_material_id' => $request->type === 'raw_material' ? $rawMaterialId : null, + 'type' => $request->type ?? 'product', + ]); + + if ($purchase->type === 'raw_material' && $purchase->raw_material_id) { + $rm = \App\Models\RawMaterial::find($purchase->raw_material_id); + if ($rm) { + // Only update stock if raw material belongs to user's branch + if ($rm->branch !== $branch) { + throw new \Exception('Bahan baku ini tidak terdaftar di cabang Anda.'); + } + + // Parse quantity string, e.g. "10 Kilogram" → value=10, unit=kilogram + $parsed = $this->parseQuantity($purchase->quantity); + $qtyValue = $parsed['value']; + $qtyUnit = $parsed['unit'] ?: strtolower($rm->unit); + + // Konversi ke satuan dasar bahan baku + $qtyInBase = $this->convertToBaseUnit($qtyValue, $qtyUnit); + + $rm->stock_quantity += $qtyInBase; + $rm->save(); + $this->recalculateProductsFromRawMaterial($rm->id, $branch); + } + } + + // Create Journal Entry + $kasAccount = Account::where('code', '101')->first(); + $persediaanAccount = Account::where('code', '102')->first(); + + if ($kasAccount && $persediaanAccount) { + $journal = JournalEntry::create([ + 'date' => $purchase->date, + 'description' => 'Pembelian ' . $purchase->item, + 'reference_type' => 'Purchase', + 'reference_id' => $purchase->id, + 'branch' => $branch, + ]); + + // Debit Persediaan, Kredit Kas + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $persediaanAccount->id, 'debit' => $purchase->total_price, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $kasAccount->id, 'debit' => 0, 'credit' => $purchase->total_price]); + } + + }); + + return back()->with('success', 'Transaksi pembelian berhasil ditambahkan!'); + } catch (\Exception $e) { + \Illuminate\Support\Facades\Log::error('Purchase store error: ' . $e->getMessage()); + return back()->withInput()->withErrors(['db_error' => 'Gagal menyimpan transaksi: ' . $e->getMessage()]); + } + } + + /** + * Konversi nilai ke satuan stok yang dipakai aplikasi. + * Untuk bisnis sederhana, pembelian liter dan unit lain disimpan apa adanya + * agar stok tetap sesuai dengan satuan yang dimasukkan. + */ + private function convertToBaseUnit($value, $unit) + { + $unit = strtolower(trim($unit)); + $conversions = [ + 'kilogram' => 1000, + 'kg' => 1000, + 'gram' => 1, + 'gr' => 1, + 'g' => 1, + 'liter' => 1, + 'l' => 1, + 'mililiter'=> 1, + 'ml' => 1, + 'pcs' => 1, + 'dus' => 1, + 'pack' => 1, + 'karung' => 1, + 'ikat' => 1, + 'botol' => 1, + 'kaleng' => 1, + 'lembar' => 1, + 'sendok makan' => 1, + 'sendok teh' => 1, + ]; + $multiplier = $conversions[$unit] ?? 1; + return $value * $multiplier; + } + + /** + * Parse quantity string seperti "10 Kilogram" → returns ['value' => 10, 'unit' => 'kilogram'] + */ + private function parseQuantity($quantityStr) + { + $quantityStr = trim($quantityStr); + // Coba pisahkan angka dan satuan + if (preg_match('/^([\d.,]+)\s*(.*)$/', $quantityStr, $matches)) { + $value = floatval(str_replace(',', '.', $matches[1])); + $unit = strtolower(trim($matches[2])); + return ['value' => $value, 'unit' => $unit]; + } + return ['value' => floatval($quantityStr), 'unit' => '']; + } + + private function recalculateProductsFromRawMaterial($rawMaterialId, $branch) + { + // Ambil semua resep yang menggunakan bahan baku ini, eager load product & semua resep produk tsb + $recipes = \App\Models\ProductRecipe::where('raw_material_id', $rawMaterialId) + ->with(['product.recipes.rawMaterial']) + ->get(); + + foreach ($recipes as $recipe) { + $product = $recipe->product; + if (!$product) continue; + + $minStock = null; + + foreach ($product->recipes as $prodRecipe) { + $rm = $prodRecipe->rawMaterial; + if (!$rm || $prodRecipe->quantity_needed <= 0) continue; + + // Stok bahan baku sudah dalam satuan dasar (disimpan apa adanya) + $rmStock = $rm->stock_quantity; + + // quantity_needed di resep dalam satuan apa? Anggap sama dengan satuan bahan baku + $needed = $prodRecipe->quantity_needed; + + $possibleAmount = floor($rmStock / $needed); + + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } + } + + if ($minStock !== null && $minStock >= 0) { + // Update semua cabang (atau hanya cabang ini) + $allBranches = \App\Models\Branch::all(); + foreach ($allBranches as $b) { + $stock = \App\Models\Stock::firstOrCreate( + ['product_id' => $product->id, 'branch' => $b->name], + ['quantity' => 0, 'unit' => 'Pcs'] + ); + $stock->quantity = $minStock; + $stock->save(); + } + } + } + } + + public function update(Request $request, $id) + { + $rules = [ + 'date' => 'required|date', + 'item' => 'required|string|max:255', + 'quantity' => 'required|string|max:255', + 'total_price' => 'required|numeric|min:0', + 'type' => 'nullable|in:product,raw_material', + 'raw_material_id' => 'required_if:type,raw_material|not_in:0', + ]; + + // Hanya require field bahan baku baru jika raw_material_id = 'new' + if ($request->input('type') === 'raw_material' && $request->input('raw_material_id') === 'new') { + $rules['new_raw_material_name'] = 'required|string|max:255'; + $rules['new_raw_material_unit'] = 'required|string|max:50'; + } + + $request->validate($rules); + + try { + \Illuminate\Support\Facades\DB::transaction(function () use ($request, $id) { + $purchase = Purchase::findOrFail($id); + $oldType = $purchase->type; + $oldRawMaterialId = $purchase->raw_material_id; + $branch = $purchase->branch; + + // Jika pembelian lama adalah bahan baku, hapus stok lama dulu + if ($oldType === 'raw_material' && $oldRawMaterialId) { + $oldRm = \App\Models\RawMaterial::find($oldRawMaterialId); + if ($oldRm) { + $oldParsed = $this->parseQuantity($purchase->quantity); + $oldQty = $this->convertToBaseUnit($oldParsed['value'], $oldParsed['unit'] ?: strtolower($oldRm->unit)); + $oldRm->stock_quantity -= $oldQty; + if ($oldRm->stock_quantity < 0) { + $oldRm->stock_quantity = 0; + } + $oldRm->save(); + } + } + + $newRawMaterialId = null; + if ($request->type === 'raw_material') { + $newRawMaterialId = $request->raw_material_id; + if ($newRawMaterialId === 'new') { + $newRm = \App\Models\RawMaterial::create([ + 'name' => $request->new_raw_material_name, + 'unit' => $request->new_raw_material_unit, + 'stock_quantity' => 0, + 'branch' => Auth::user()->branch ?? 'Cabang 1', + ]); + $newRawMaterialId = $newRm->id; + } + + $rm = \App\Models\RawMaterial::find($newRawMaterialId); + if ($rm) { + $parsed = $this->parseQuantity($request->quantity); + $qty = $this->convertToBaseUnit($parsed['value'], $parsed['unit'] ?: strtolower($rm->unit)); + $rm->stock_quantity += $qty; + $rm->save(); + } + } + + // Perbarui data pembelian + $cleanPrice = str_replace('.', '', $request->total_price); + $data = $request->all(); + $data['total_price'] = (int) $cleanPrice; + $data['product_id'] = null; + + if (Auth::user()->role === 'admin' && $request->has('branch')) { + $data['branch'] = $request->branch; + } + + $purchase->update($data); + + // Recalculate product stock from raw materials if needed + if ($oldType === 'raw_material' && $oldRawMaterialId) { + $this->recalculateProductsFromRawMaterial($oldRawMaterialId, $branch); + } + if ($request->type === 'raw_material' && $newRawMaterialId) { + $this->recalculateProductsFromRawMaterial($newRawMaterialId, $branch); + } + + // Recreate Journal Entry + JournalEntry::where('reference_type', 'Purchase')->where('reference_id', $purchase->id)->delete(); + + $kasAccount = Account::where('code', '101')->first(); + $persediaanAccount = Account::where('code', '102')->first(); + + if ($kasAccount && $persediaanAccount) { + $journal = JournalEntry::create([ + 'date' => $purchase->date, + 'description' => 'Pembelian ' . $purchase->item, + 'reference_type' => 'Purchase', + 'reference_id' => $purchase->id, + 'branch' => $purchase->branch, + ]); + + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $persediaanAccount->id, 'debit' => $purchase->total_price, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $kasAccount->id, 'debit' => 0, 'credit' => $purchase->total_price]); + } + }); + + return back()->with('success', 'Transaksi pembelian berhasil diperbarui!'); + } catch (\Exception $e) { + \Illuminate\Support\Facades\Log::error('Purchase update error: ' . $e->getMessage()); + return back()->withInput()->withErrors(['db_error' => 'Gagal memperbarui transaksi: ' . $e->getMessage()]); + } + } + + public function destroy($id) + { + try { + \Illuminate\Support\Facades\DB::transaction(function () use ($id) { + $purchase = Purchase::findOrFail($id); + + // If this is a raw material purchase, update stock and potentially delete raw material + if ($purchase->type === 'raw_material' && $purchase->raw_material_id) { + $rm = \App\Models\RawMaterial::find($purchase->raw_material_id); + if ($rm) { + // Parse quantity to subtract from stock + $parsed = $this->parseQuantity($purchase->quantity); + $qtyValue = $parsed['value']; + $qtyUnit = $parsed['unit'] ?: strtolower($rm->unit); + $qtyInBase = $this->convertToBaseUnit($qtyValue, $qtyUnit); + + // Subtract from stock + $rm->stock_quantity -= $qtyInBase; + if ($rm->stock_quantity < 0) $rm->stock_quantity = 0; + $rm->save(); + + // Recalculate products + $this->recalculateProductsFromRawMaterial($rm->id, $purchase->branch); + + // Check if this is the only purchase for this raw material + $otherPurchases = Purchase::where('raw_material_id', $rm->id) + ->where('id', '!=', $purchase->id) + ->count(); + + if ($otherPurchases === 0) { + // No other purchases, delete the raw material + $rm->delete(); + } + } + } + + // Delete journal entries + JournalEntry::where('reference_type', 'Purchase')->where('reference_id', $purchase->id)->delete(); + + // Delete purchase + $purchase->delete(); + }); + + return back()->with('success', 'Transaksi pembelian berhasil dihapus!'); + } catch (\Exception $e) { + \Illuminate\Support\Facades\Log::error('Purchase destroy error: ' . $e->getMessage()); + return back()->with('error', 'Gagal menghapus transaksi: ' . $e->getMessage()); + } + } +} diff --git a/app/Http/Controllers/RawMaterialController.php b/app/Http/Controllers/RawMaterialController.php new file mode 100644 index 0000000..09009a5 --- /dev/null +++ b/app/Http/Controllers/RawMaterialController.php @@ -0,0 +1,73 @@ +validate([ + 'name' => 'required|string|max:255', + 'unit' => 'required|string|max:50', + ]); + + $branch = auth()->user()->branch ?? 'Cabang 1'; + + RawMaterial::create([ + 'name' => $request->name, + 'unit' => $request->unit, + 'stock_quantity' => 0, + 'branch' => $branch + ]); + + return redirect('/produk?tab=bahan-baku')->with('success', 'Bahan Baku berhasil ditambahkan.'); + } + + public function update(Request $request, $id) + { + $request->validate([ + 'name' => 'required|string|max:255', + 'unit' => 'required|string|max:50', + ]); + + $rawMaterial = RawMaterial::findOrFail($id); + $branch = auth()->user()->branch ?? 'Cabang 1'; + + // Only allow update if raw material belongs to user's branch + if ($rawMaterial->branch !== $branch) { + return back()->with('error', 'Anda tidak memiliki akses untuk mengubah bahan baku dari cabang lain.'); + } + + $rawMaterial->update([ + 'name' => $request->name, + 'unit' => $request->unit, + ]); + + return redirect('/produk?tab=bahan-baku')->with('success', 'Bahan Baku berhasil diperbarui.'); + } + + public function destroy($id) + { + $rawMaterial = RawMaterial::findOrFail($id); + $branch = auth()->user()->branch ?? 'Cabang 1'; + + // Only allow deletion if raw material belongs to user's branch + if ($rawMaterial->branch !== $branch) { + return back()->with('error', 'Anda tidak memiliki akses untuk menghapus bahan baku dari cabang lain.'); + } + + $rawMaterial->delete(); + + return redirect('/produk?tab=bahan-baku')->with('success', 'Bahan Baku berhasil dihapus.'); + } +} diff --git a/app/Http/Controllers/SaleController.php b/app/Http/Controllers/SaleController.php new file mode 100644 index 0000000..4bb384e --- /dev/null +++ b/app/Http/Controllers/SaleController.php @@ -0,0 +1,356 @@ +orderBy('date', 'desc'); + + if ($request->filled('year')) { + $query->whereYear('date', $request->year); + } + if ($request->filled('month')) { + $query->whereMonth('date', $request->month); + } + if ($request->filled('day')) { + $query->whereDay('date', $request->day); + } + + if ($request->filled('search')) { + $query->where('item', 'like', '%' . $request->search . '%'); + } + + // Apply "today" filter by default only when the page is first loaded + // (i.e. there are no query parameters). If the user submitted the filter + // form with "Semua Tahun" (empty values), we treat that as an explicit + // request and do not force today's data. + if (count($request->query()) === 0) { + $query->whereDate('date', \Carbon\Carbon::today()); + } + + if ($user->role === 'admin') { + $products = \App\Models\Product::all(); + $sales = $query->get(); + // We no longer need salesByBranch as we use a single consolidated view + return view('laporan_penjualan', compact('sales', 'products', 'branches')); + } else { + $products = \App\Models\Product::all(); + $sales = $query->where('branch', $user->branch)->get(); + return view('laporan_penjualan', compact('sales', 'products', 'branches')); + } + } + + public function create() + { + $user = Auth::user(); + + if ($user->role === 'admin') { + return redirect('/laporan/penjualan')->with('error', 'Fitur tambah penjualan hanya tersedia untuk karyawan.'); + } + + $branches = \App\Models\Branch::all(); + $branch = $user->branch ?? 'Cabang 1'; + $products = \App\Models\Product::where('branch', $branch)->get(); + + return view('transaksi.penjualan', compact('branches', 'products')); + } + + public function exportPdf(Request $request) + { + $user = Auth::user(); + if ($user->role !== 'admin') { + abort(403); + } + + $query = Sale::with('product')->orderBy('date', 'desc'); + + if ($request->filled('year')) { + $query->whereYear('date', $request->year); + } + if ($request->filled('month')) { + $query->whereMonth('date', $request->month); + } + if ($request->filled('day')) { + $query->whereDay('date', $request->day); + } + + if ($request->filled('search')) { + $query->where('item', 'like', '%' . $request->search . '%'); + } + + // Apply "today" filter by default only when the page is first loaded + // (i.e. there are no query parameters). If the admin submits the filter + // form with empty values intentionally, return the full dataset. + if (count($request->query()) === 0) { + $query->whereDate('date', \Carbon\Carbon::today()); + } + + $sales = $query->get(); + $branches = \App\Models\Branch::all(); + + $pdf = \Barryvdh\DomPDF\Facade\Pdf::loadView('reports.sale_pdf', compact('sales', 'branches')); + return $pdf->download('laporan_penjualan.pdf'); + } + + public function store(Request $request) + { + $request->validate([ + 'date' => 'required|date', + 'product_id' => 'required|exists:products,id', + 'quantity' => 'required|integer|min:1', + 'total_price' => 'required|numeric|min:0', + ]); + + try { + \Illuminate\Support\Facades\DB::transaction(function () use ($request) { + $product = \App\Models\Product::findOrFail($request->product_id); + + $branch = Auth::user()->branch ?? 'Cabang 1'; + if (Auth::user()->role === 'admin' && $request->has('branch')) { + $branch = $request->branch; + } + + // Bersihkan format angka (hapus titik pemisah ribuan jika ada) + $cleanPrice = str_replace('.', '', $request->total_price); + + // First, adjust stocks: either raw materials (if product has recipes) + // or product stock per branch + $product = \App\Models\Product::with('recipes.rawMaterial')->findOrFail($request->product_id); + + if ($product->recipes->count() > 0) { + // Check and deduct raw materials + foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if (!$rm) continue; + $needed = $recipe->quantity_needed * $request->quantity; + if ($rm->stock_quantity < $needed) { + throw new \Exception('Bahan baku tidak cukup untuk membuat ' . $request->quantity . ' porsi.'); + } + } + + foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if ($rm) { + $needed = $recipe->quantity_needed * $request->quantity; + $rm->stock_quantity -= $needed; + if ($rm->stock_quantity < 0) $rm->stock_quantity = 0; + $rm->save(); + } + } + + // Recalculate finished product stock once after all raw materials are updated + $this->recalculateProductsFromRawMaterials($product->id, $branch); + } else { + // Deduct from regular stock + $stock = \App\Models\Stock::where('product_id', $request->product_id)->where('branch', $branch)->first(); + if (!$stock) { + throw new \Exception('Stok untuk produk ini tidak ditemukan pada cabang Anda.'); + } + + if ($stock->quantity < $request->quantity) { + throw new \Exception('Stok tidak cukup. Tersedia: ' . $stock->quantity); + } + + $stock->quantity = $stock->quantity - $request->quantity; + if ($stock->quantity < 0) $stock->quantity = 0; + $stock->save(); + } + + // Now create sale record + $sale = Sale::create([ + 'date' => $request->date, + 'branch' => $branch, + 'product_id' => $request->product_id, + 'item' => $product->name, + 'quantity' => $request->quantity, + 'total_price' => (int) $cleanPrice, + ]); + + // Create Journal Entry + $kasAccount = $this->ensureAccount('101', 'Kas', 'Asset'); + $penjualanAccount = $this->ensureAccount('401', 'Penjualan', 'Revenue'); + $hppAccount = $this->ensureAccount('501', 'Harga Pokok Penjualan', 'Expense'); + $persediaanAccount = $this->ensureAccount('102', 'Persediaan Barang Dagang', 'Asset'); + + $journal = JournalEntry::create([ + 'date' => $sale->date, + 'description' => 'Penjualan ' . $sale->item, + 'reference_type' => 'Sale', + 'reference_id' => $sale->id, + 'branch' => $branch, + ]); + + // Debit Kas, Kredit Penjualan + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $kasAccount->id, 'debit' => $sale->total_price, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $penjualanAccount->id, 'debit' => 0, 'credit' => $sale->total_price]); + + // Debit HPP, Kredit Persediaan + $hppTotal = $sale->quantity * $product->purchase_price; + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $hppAccount->id, 'debit' => $hppTotal, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $persediaanAccount->id, 'debit' => 0, 'credit' => $hppTotal]); + }); + + return back()->with('success', 'Transaksi penjualan berhasil ditambahkan!'); + } catch (\Exception $e) { + \Illuminate\Support\Facades\Log::error('Sale store error: ' . $e->getMessage()); + return back()->withInput()->withErrors(['db_error' => 'Gagal menyimpan transaksi: ' . $e->getMessage()]); + } + } + + private function ensureAccount($code, $name, $type) + { + return Account::updateOrCreate( + ['code' => $code], + ['name' => $name, 'type' => $type] + ); + } + + public function update(Request $request, $id) + { + $request->validate([ + 'date' => 'required|date', + 'product_id' => 'required|exists:products,id', + 'quantity' => 'required|integer|min:1', + 'total_price' => 'required|numeric|min:0', + ]); + + try { + \Illuminate\Support\Facades\DB::transaction(function () use ($request, $id) { + $sale = Sale::findOrFail($id); + $product = \App\Models\Product::findOrFail($request->product_id); + + // Bersihkan format angka (hapus titik pemisah ribuan jika ada) + $cleanPrice = str_replace('.', '', $request->total_price); + + $data = $request->all(); + $data['item'] = $product->name; + $data['total_price'] = (int) $cleanPrice; + + if (Auth::user()->role === 'admin' && $request->has('branch')) { + $data['branch'] = $request->branch; + } + + $sale->update($data); + + // Recreate Journal Entry + JournalEntry::where('reference_type', 'Sale')->where('reference_id', $sale->id)->delete(); + + $kasAccount = Account::where('code', '101')->first(); + $penjualanAccount = Account::where('code', '401')->first(); + $hppAccount = Account::where('code', '501')->first(); + $persediaanAccount = Account::where('code', '102')->first(); + + if ($kasAccount && $penjualanAccount && $hppAccount && $persediaanAccount) { + $journal = JournalEntry::create([ + 'date' => $sale->date, + 'description' => 'Penjualan ' . $sale->item, + 'reference_type' => 'Sale', + 'reference_id' => $sale->id, + 'branch' => $sale->branch, + ]); + + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $kasAccount->id, 'debit' => $sale->total_price, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $penjualanAccount->id, 'debit' => 0, 'credit' => $sale->total_price]); + + $hppTotal = $sale->quantity * $product->purchase_price; + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $hppAccount->id, 'debit' => $hppTotal, 'credit' => 0]); + JournalDetail::create(['journal_entry_id' => $journal->id, 'account_id' => $persediaanAccount->id, 'debit' => 0, 'credit' => $hppTotal]); + } + }); + + return back()->with('success', 'Transaksi penjualan berhasil diperbarui!'); + } catch (\Exception $e) { + \Illuminate\Support\Facades\Log::error('Sale update error: ' . $e->getMessage()); + return back()->withInput()->withErrors(['db_error' => 'Gagal memperbarui transaksi: ' . $e->getMessage()]); + } + } + + public function destroy($id) + { + $sale = Sale::findOrFail($id); + JournalEntry::where('reference_type', 'Sale')->where('reference_id', $sale->id)->delete(); + $sale->delete(); + return back()->with('success', 'Transaksi penjualan berhasil dihapus!'); + } + + private function recalculateProductsFromRawMaterials($productId, $branch) + { + $product = \App\Models\Product::with('recipes.rawMaterial')->find($productId); + if (!$product || $product->recipes->isEmpty()) { + return; + } + + $minStock = null; + foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if (!$rm || $recipe->quantity_needed <= 0) { + continue; + } + $possibleAmount = floor($rm->stock_quantity / $recipe->quantity_needed); + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } + } + + if ($minStock !== null && $minStock >= 0) { + $stock = \App\Models\Stock::firstOrCreate( + ['product_id' => $productId, 'branch' => $branch], + ['quantity' => 0, 'unit' => 'Pcs'] + ); + $stock->quantity = $minStock; + $stock->save(); + } + } + + private function recalculateProductsFromRawMaterial($rawMaterialId, $branch) + { + $recipes = \App\Models\ProductRecipe::where('raw_material_id', $rawMaterialId) + ->with(['product.recipes.rawMaterial']) + ->get(); + + foreach ($recipes as $recipe) { + $product = $recipe->product; + if (!$product) continue; + + $minStock = null; + + foreach ($product->recipes as $prodRecipe) { + $rm = $prodRecipe->rawMaterial; + if (!$rm || $prodRecipe->quantity_needed <= 0) continue; + + $rmStock = $rm->stock_quantity; + $needed = $prodRecipe->quantity_needed; + $possibleAmount = floor($rmStock / $needed); + + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } + } + + if ($minStock !== null && $minStock >= 0) { + $allBranches = \App\Models\Branch::all(); + foreach ($allBranches as $b) { + $stock = \App\Models\Stock::firstOrCreate( + ['product_id' => $product->id, 'branch' => $b->name], + ['quantity' => 0, 'unit' => 'Pcs'] + ); + $stock->quantity = $minStock; + $stock->save(); + } + } + } + } +} diff --git a/app/Http/Controllers/SendEmailController.php b/app/Http/Controllers/SendEmailController.php new file mode 100644 index 0000000..4f518e4 --- /dev/null +++ b/app/Http/Controllers/SendEmailController.php @@ -0,0 +1,31 @@ +validate([ + 'email' => 'required|email' + ]); + + $email = $request->email; + + // Mengirim email sederhana menggunakan raw () langsung, bisa juga dengan Mailable Class jika format lebih kompleks + Mail::raw("Halo!\n\nIni adalah email testing dari sistem Akuntansi SIA menggunakan SMTP.\nPengujian ini memastikan bahwa konfigurasi email berjalan dengan baik.\n\nSalam,\nSistem Admin", function ($message) use ($email) { + $message->to($email) + ->subject('Testing Email SMTP Laravel'); + }); + + return back()->with('success', 'Email berhasil dikirim ke ' . $email . '. Silakan cek kotak masuk atau folder spam Anda.'); + } +} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php new file mode 100644 index 0000000..0079688 --- /dev/null +++ b/app/Http/Kernel.php @@ -0,0 +1,67 @@ + + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + \App\Http\Middleware\TrustProxies::class, + \Illuminate\Http\Middleware\HandleCors::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, + \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, + \App\Http\Middleware\TrimStrings::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array> + */ + protected $middlewareGroups = [ + 'web' => [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, + 'throttle:api', + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + ]; + + /** + * The application's route middleware. + * + * These middleware may be assigned to groups or used individually. + * + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, + 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + ]; +} diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php new file mode 100644 index 0000000..704089a --- /dev/null +++ b/app/Http/Middleware/Authenticate.php @@ -0,0 +1,21 @@ +expectsJson()) { + return route('login'); + } + } +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000..867695b --- /dev/null +++ b/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000..74cbd9a --- /dev/null +++ b/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..a2813a0 --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,32 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/RoleMiddleware.php b/app/Http/Middleware/RoleMiddleware.php new file mode 100644 index 0000000..e69de29 diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..88cadca --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,19 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000..7186414 --- /dev/null +++ b/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,20 @@ + + */ + public function hosts() + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ]; + } +} diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php new file mode 100644 index 0000000..3391630 --- /dev/null +++ b/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000..093bf64 --- /dev/null +++ b/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', + ]; +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000..9e86521 --- /dev/null +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Models/Account.php b/app/Models/Account.php new file mode 100644 index 0000000..5b8ee60 --- /dev/null +++ b/app/Models/Account.php @@ -0,0 +1,18 @@ +hasMany(JournalDetail::class); + } +} diff --git a/app/Models/Branch.php b/app/Models/Branch.php new file mode 100644 index 0000000..98fa421 --- /dev/null +++ b/app/Models/Branch.php @@ -0,0 +1,13 @@ +belongsTo(JournalEntry::class); + } + + public function account() + { + return $this->belongsTo(Account::class); + } +} diff --git a/app/Models/JournalEntry.php b/app/Models/JournalEntry.php new file mode 100644 index 0000000..91e8c95 --- /dev/null +++ b/app/Models/JournalEntry.php @@ -0,0 +1,18 @@ +hasMany(JournalDetail::class); + } +} diff --git a/app/Models/OperationalCost.php b/app/Models/OperationalCost.php new file mode 100644 index 0000000..e7bbfb6 --- /dev/null +++ b/app/Models/OperationalCost.php @@ -0,0 +1,18 @@ +hasMany(Stock::class); + } + + public function sales() + { + return $this->hasMany(Sale::class); + } + + public function recipes() + { + return $this->hasMany(ProductRecipe::class); + } + + public function purchases() + { + return $this->hasMany(Purchase::class); + } +} diff --git a/app/Models/ProductRecipe.php b/app/Models/ProductRecipe.php new file mode 100644 index 0000000..846de57 --- /dev/null +++ b/app/Models/ProductRecipe.php @@ -0,0 +1,23 @@ +belongsTo(Product::class); + } + + public function rawMaterial() + { + return $this->belongsTo(RawMaterial::class); + } +} diff --git a/app/Models/Purchase.php b/app/Models/Purchase.php new file mode 100644 index 0000000..522c3da --- /dev/null +++ b/app/Models/Purchase.php @@ -0,0 +1,27 @@ +belongsTo(Product::class); + } +} diff --git a/app/Models/RawMaterial.php b/app/Models/RawMaterial.php new file mode 100644 index 0000000..84f7488 --- /dev/null +++ b/app/Models/RawMaterial.php @@ -0,0 +1,18 @@ +hasMany(ProductRecipe::class); + } +} diff --git a/app/Models/Sale.php b/app/Models/Sale.php new file mode 100644 index 0000000..a6f8d81 --- /dev/null +++ b/app/Models/Sale.php @@ -0,0 +1,25 @@ +belongsTo(Product::class); + } +} diff --git a/app/Models/Stock.php b/app/Models/Stock.php new file mode 100644 index 0000000..c986005 --- /dev/null +++ b/app/Models/Stock.php @@ -0,0 +1,20 @@ +belongsTo(Product::class); + } +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..1b0c5bb --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,46 @@ + + */ + protected $fillable = [ + 'name', + 'email', + 'password', + 'role', + 'branch', + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var array + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'email_verified_at' => 'datetime', + ]; +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..ee8ca5b --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,28 @@ + + */ + protected $policies = [ + // 'App\Models\Model' => 'App\Policies\ModelPolicy', + ]; + + /** + * Register any authentication / authorization services. + * + * @return void + */ + public function boot() + { + $this->registerPolicies(); + + \Illuminate\Support\Facades\Gate::define('admin-access', function ($user) { + return $user->role === 'admin'; + }); + } +} diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000..395c518 --- /dev/null +++ b/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,21 @@ +> + */ + protected $listen = [ + Registered::class => [ + SendEmailVerificationNotification::class, + ], + ]; + + /** + * Register any events for your application. + * + * @return void + */ + public function boot() + { + // + } + + /** + * Determine if events and listeners should be automatically discovered. + * + * @return bool + */ + public function shouldDiscoverEvents() + { + return false; + } +} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..ea87f2e --- /dev/null +++ b/app/Providers/RouteServiceProvider.php @@ -0,0 +1,52 @@ +configureRateLimiting(); + + $this->routes(function () { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); + }); + } + + /** + * Configure the rate limiters for the application. + * + * @return void + */ + protected function configureRateLimiting() + { + RateLimiter::for('api', function (Request $request) { + return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); + }); + } +} diff --git a/artisan b/artisan new file mode 100644 index 0000000..67a3329 --- /dev/null +++ b/artisan @@ -0,0 +1,53 @@ +#!/usr/bin/env php +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..037e17d --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/check_stock_modal.php b/check_stock_modal.php new file mode 100644 index 0000000..4c5d09d --- /dev/null +++ b/check_stock_modal.php @@ -0,0 +1,35 @@ +get(); +echo "Total Stock Details:\n"; +$total = 0; +$byBranch = []; + +foreach ($stocks as $s) { + $v = ($s->quantity ?? 0) * ($s->product->selling_price ?? 0); + echo sprintf(" - %s (%s): %d × %d = %s\n", + $s->product->name, + $s->branch, + $s->quantity, + $s->product->selling_price, + number_format($v, 0, ',', '.') + ); + $total += $v; + + if (!isset($byBranch[$s->branch])) { + $byBranch[$s->branch] = 0; + } + $byBranch[$s->branch] += $v; +} + +echo "\nBy Branch:\n"; +foreach ($byBranch as $branch => $value) { + echo " $branch: Rp" . number_format($value, 0, ',', '.') . "\n"; +} + +echo "\nGrand Total Modal: Rp" . number_format($total, 0, ',', '.') . "\n"; +?> diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..41474b6 --- /dev/null +++ b/composer.json @@ -0,0 +1,67 @@ +{ + "name": "laravel/laravel", + "type": "project", + "description": "The Laravel Framework.", + "keywords": ["framework", "laravel"], + "license": "MIT", + "require": { + "php": "^8.0.2", + "barryvdh/laravel-dompdf": "^2.2", + "doctrine/dbal": "^3.10", + "guzzlehttp/guzzle": "^7.2", + "laravel/framework": "^9.19", + "laravel/sanctum": "^3.0", + "laravel/tinker": "^2.7" + }, + "require-dev": { + "fakerphp/faker": "^1.9.1", + "laravel/pint": "^1.0", + "laravel/sail": "^1.0.1", + "mockery/mockery": "^1.4.4", + "nunomaduro/collision": "^6.1", + "phpunit/phpunit": "^9.5.10", + "spatie/laravel-ignition": "^1.0" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } + }, + "minimum-stability": "stable", + "prefer-stable": true +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..1702c08 --- /dev/null +++ b/composer.lock @@ -0,0 +1,8823 @@ +{ + "_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": "3ec4ede2dc369e3667b61162b941dc02", + "packages": [ + { + "name": "barryvdh/laravel-dompdf", + "version": "v2.2.0", + "source": { + "type": "git", + "url": "https://github.com/barryvdh/laravel-dompdf.git", + "reference": "c96f90c97666cebec154ca1ffb67afed372114d8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/c96f90c97666cebec154ca1ffb67afed372114d8", + "reference": "c96f90c97666cebec154ca1ffb67afed372114d8", + "shasum": "" + }, + "require": { + "dompdf/dompdf": "^2.0.7", + "illuminate/support": "^6|^7|^8|^9|^10|^11", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "larastan/larastan": "^1.0|^2.7.0", + "orchestra/testbench": "^4|^5|^6|^7|^8|^9", + "phpro/grumphp": "^1 || ^2.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "PDF": "Barryvdh\\DomPDF\\Facade\\Pdf", + "Pdf": "Barryvdh\\DomPDF\\Facade\\Pdf" + }, + "providers": [ + "Barryvdh\\DomPDF\\ServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "Barryvdh\\DomPDF\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Barry vd. Heuvel", + "email": "barryvdh@gmail.com" + } + ], + "description": "A DOMPDF Wrapper for Laravel", + "keywords": [ + "dompdf", + "laravel", + "pdf" + ], + "support": { + "issues": "https://github.com/barryvdh/laravel-dompdf/issues", + "source": "https://github.com/barryvdh/laravel-dompdf/tree/v2.2.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2024-04-25T13:16:04+00:00" + }, + { + "name": "brick/math", + "version": "0.11.0", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "5.0.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "brick", + "math" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.11.0" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2023-01-15T23:15:59+00:00" + }, + { + "name": "carbonphp/carbon-doctrine-types", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", + "reference": "99f76ffa36cce3b70a4a6abce41dba15ca2e84cb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/99f76ffa36cce3b70a4a6abce41dba15ca2e84cb", + "reference": "99f76ffa36cce3b70a4a6abce41dba15ca2e84cb", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "doctrine/dbal": "<3.7.0 || >=4.0.0" + }, + "require-dev": { + "doctrine/dbal": "^3.7.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/2.1.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2023-12-11T17:09:12+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00" + }, + { + "name": "doctrine/dbal", + "version": "3.10.4", + "source": { + "type": "git", + "url": "https://github.com/doctrine/dbal.git", + "reference": "63a46cb5aa6f60991186cc98c1d1b50c09311868" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/63a46cb5aa6f60991186cc98c1d1b50c09311868", + "reference": "63a46cb5aa6f60991186cc98c1d1b50c09311868", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2", + "doctrine/deprecations": "^0.5.3|^1", + "doctrine/event-manager": "^1|^2", + "php": "^7.4 || ^8.0", + "psr/cache": "^1|^2|^3", + "psr/log": "^1|^2|^3" + }, + "conflict": { + "doctrine/cache": "< 1.11" + }, + "require-dev": { + "doctrine/cache": "^1.11|^2.0", + "doctrine/coding-standard": "14.0.0", + "fig/log-test": "^1", + "jetbrains/phpstorm-stubs": "2023.1", + "phpstan/phpstan": "2.1.30", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "9.6.29", + "slevomat/coding-standard": "8.24.0", + "squizlabs/php_codesniffer": "4.0.0", + "symfony/cache": "^5.4|^6.0|^7.0|^8.0", + "symfony/console": "^4.4|^5.4|^6.0|^7.0|^8.0" + }, + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "bin": [ + "bin/doctrine-dbal" + ], + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\DBAL\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", + "keywords": [ + "abstraction", + "database", + "db2", + "dbal", + "mariadb", + "mssql", + "mysql", + "oci8", + "oracle", + "pdo", + "pgsql", + "postgresql", + "queryobject", + "sasql", + "sql", + "sqlite", + "sqlserver", + "sqlsrv" + ], + "support": { + "issues": "https://github.com/doctrine/dbal/issues", + "source": "https://github.com/doctrine/dbal/tree/3.10.4" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal", + "type": "tidelift" + } + ], + "time": "2025-11-29T10:46:08+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "1.1.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<=7.5 || >=13" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^12 || ^13", + "phpstan/phpstan": "1.4.10 || 2.1.11", + "phpstan/phpstan-phpunit": "^1.0 || ^2", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12", + "psr/log": "^1 || ^2 || ^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.5" + }, + "time": "2025-04-07T20:06:18+00:00" + }, + { + "name": "doctrine/event-manager", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/event-manager.git", + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/95aa4cb529f1e96576f3fda9f5705ada4056a520", + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^0.5.3 || ^1", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": "<2.9" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "~1.4.10 || ^1.8.8", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.24" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.", + "homepage": "https://www.doctrine-project.org/projects/event-manager.html", + "keywords": [ + "event", + "event dispatcher", + "event manager", + "event system", + "events" + ], + "support": { + "issues": "https://github.com/doctrine/event-manager/issues", + "source": "https://github.com/doctrine/event-manager/tree/1.2.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fevent-manager", + "type": "tidelift" + } + ], + "time": "2022-10-12T20:51:15+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^12.0 || ^13.0", + "phpstan/phpstan": "^1.12 || ^2.0", + "phpstan/phpstan-phpunit": "^1.4 || ^2.0", + "phpstan/phpstan-strict-rules": "^1.6 || ^2.0", + "phpunit/phpunit": "^8.5 || ^12.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.1.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2025-08-10T19:31:58+00:00" + }, + { + "name": "doctrine/lexer", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6", + "reference": "861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^1.0", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^12", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^4.11 || ^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/2.1.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:35:39+00:00" + }, + { + "name": "dompdf/dompdf", + "version": "v2.0.8", + "source": { + "type": "git", + "url": "https://github.com/dompdf/dompdf.git", + "reference": "c20247574601700e1f7c8dab39310fca1964dc52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/dompdf/zipball/c20247574601700e1f7c8dab39310fca1964dc52", + "reference": "c20247574601700e1f7c8dab39310fca1964dc52", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "masterminds/html5": "^2.0", + "phenx/php-font-lib": ">=0.5.4 <1.0.0", + "phenx/php-svg-lib": ">=0.5.2 <1.0.0", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "ext-json": "*", + "ext-zip": "*", + "mockery/mockery": "^1.3", + "phpunit/phpunit": "^7.5 || ^8 || ^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "suggest": { + "ext-gd": "Needed to process images", + "ext-gmagick": "Improves image processing performance", + "ext-imagick": "Improves image processing performance", + "ext-zlib": "Needed for pdf stream compression" + }, + "type": "library", + "autoload": { + "psr-4": { + "Dompdf\\": "src/" + }, + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "authors": [ + { + "name": "The Dompdf Community", + "homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md" + } + ], + "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", + "homepage": "https://github.com/dompdf/dompdf", + "support": { + "issues": "https://github.com/dompdf/dompdf/issues", + "source": "https://github.com/dompdf/dompdf/tree/v2.0.8" + }, + "time": "2024-04-29T13:06:17+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "8c784d071debd117328803d86b2097615b457500" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/8c784d071debd117328803d86b2097615b457500", + "reference": "8c784d071debd117328803d86b2097615b457500", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.4.0" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2024-10-09T13:47:03+00:00" + }, + { + "name": "egulias/email-validator", + "version": "3.2.6", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "e5997fa97e8790cdae03a9cbd5e78e45e3c7bda7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/e5997fa97e8790cdae03a9cbd5e78e45e3c7bda7", + "reference": "e5997fa97e8790cdae03a9cbd5e78e45e3c7bda7", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1.2|^2", + "php": ">=7.2", + "symfony/polyfill-intl-idn": "^1.15" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.8|^9.3.3", + "vimeo/psalm": "^4" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/3.2.6" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2023-06-01T07:04:22+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/3d158f36e7875e2f040f37bc0573956240a5a38b", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6|^7" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.3.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2023-10-12T05:21:21+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.3", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/3ba905c11371512af9d9bdd27d99b782216b6945", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:45:45+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^2.3", + "guzzlehttp/psr7": "^2.8", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2025-08-23T22:36:01+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "481557b130ef3790cf82b713667b43030dc9c957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:34:08+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.8.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "21dc724a0583619cd1652f673303492272778051" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051", + "reference": "21dc724a0583619cd1652f673303492272778051", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.8.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2025-08-23T21:21:41+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:27:06+00:00" + }, + { + "name": "laravel/framework", + "version": "v9.52.20", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "2bb6835af73fcf0d1d0bfb84af71cef236cb8609" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/2bb6835af73fcf0d1d0bfb84af71cef236cb8609", + "reference": "2bb6835af73fcf0d1d0bfb84af71cef236cb8609", + "shasum": "" + }, + "require": { + "brick/math": "^0.9.3|^0.10.2|^0.11", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.3.2", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.2", + "guzzlehttp/uri-template": "^1.0", + "laravel/serializable-closure": "^1.2.2", + "league/commonmark": "^2.2.1", + "league/flysystem": "^3.8.0", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.62.1", + "nunomaduro/termwind": "^1.13", + "php": "^8.0.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^6.0.9", + "symfony/error-handler": "^6.0", + "symfony/finder": "^6.0", + "symfony/http-foundation": "^6.0", + "symfony/http-kernel": "^6.0", + "symfony/mailer": "^6.0", + "symfony/mime": "^6.0", + "symfony/process": "^6.0", + "symfony/routing": "^6.0", + "symfony/uid": "^6.0", + "symfony/var-dumper": "^6.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.4.1", + "voku/portable-ascii": "^2.0" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.235.5", + "doctrine/dbal": "^2.13.3|^3.1.4", + "ext-gmp": "*", + "fakerphp/faker": "^1.21", + "guzzlehttp/guzzle": "^7.5", + "league/flysystem-aws-s3-v3": "^3.0", + "league/flysystem-ftp": "^3.0", + "league/flysystem-path-prefixing": "^3.3", + "league/flysystem-read-only": "^3.3", + "league/flysystem-sftp-v3": "^3.0", + "mockery/mockery": "^1.5.1", + "orchestra/testbench-core": "^7.24", + "pda/pheanstalk": "^4.0", + "phpstan/phpdoc-parser": "^1.15", + "phpstan/phpstan": "^1.4.7", + "phpunit/phpunit": "^9.5.8", + "predis/predis": "^1.1.9|^2.0.2", + "symfony/cache": "^6.0", + "symfony/http-client": "^6.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", + "brianium/paratest": "Required to run tests in parallel (^6.0).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "guzzlehttp/guzzle": "Required to use the HTTP Client and the ping methods on schedules (^7.5).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.0).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.0).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.3).", + "league/flysystem-read-only": "Required to use read-only disks (^3.3)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.0).", + "mockery/mockery": "Required to use mocking (^1.5.1).", + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8).", + "predis/predis": "Required to use the predis connector (^1.1.9|^2.0.2).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^6.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^6.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2025-01-31T10:09:38+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v3.3.3", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "8c104366459739f3ada0e994bcd3e6fd681ce3d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/8c104366459739f3ada0e994bcd3e6fd681ce3d5", + "reference": "8c104366459739f3ada0e994bcd3e6fd681ce3d5", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^9.21|^10.0", + "illuminate/contracts": "^9.21|^10.0", + "illuminate/database": "^9.21|^10.0", + "illuminate/support": "^9.21|^10.0", + "php": "^8.0.2" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^7.28.2|^8.8.3", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.6" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sanctum\\SanctumServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sanctum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", + "keywords": [ + "auth", + "laravel", + "sanctum" + ], + "support": { + "issues": "https://github.com/laravel/sanctum/issues", + "source": "https://github.com/laravel/sanctum" + }, + "time": "2023-12-19T18:44:48+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.3.7", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "4f48ade902b94323ca3be7646db16209ec76be3d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/4f48ade902b94323ca3be7646db16209ec76be3d", + "reference": "4f48ade902b94323ca3be7646db16209ec76be3d", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.61|^3.0", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2024-11-14T18:34:49+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.10.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/22177cc71807d38f2810c6204d8f7183d88a57d3", + "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.5.8|^9.3.3|^10.0" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v2.10.1" + }, + "time": "2025-01-27T14:24:01+00:00" + }, + { + "name": "league/commonmark", + "version": "2.7.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "10732241927d3971d28e7ea7b5712721fa2296ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/10732241927d3971d28e7ea7b5712721fa2296ca", + "reference": "10732241927d3971d28e7ea7b5712721fa2296ca", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 | ^7.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.8-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2025-07-20T12:47:49+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.30.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "2203e3151755d874bb2943649dae1eb8533ac93e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/2203e3151755d874bb2943649dae1eb8533ac93e", + "reference": "2203e3151755d874bb2943649dae1eb8533ac93e", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-mongodb": "^1.3|^2", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "guzzlehttp/psr7": "^2.6", + "microsoft/azure-storage-blob": "^1.1", + "mongodb/mongodb": "^1.2|^2", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.30.0" + }, + "time": "2025-06-25T13:29:59+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.30.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "6691915f77c7fb69adfb87dcd550052dc184ee10" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/6691915f77c7fb69adfb87dcd550052dc184ee10", + "reference": "6691915f77c7fb69adfb87dcd550052dc184ee10", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.30.0" + }, + "time": "2025-05-21T10:34:19+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.16.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/2d6702ff215bf922936ccc1ad31007edc76451b9", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.16.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-09-21T08:32:55+00:00" + }, + { + "name": "masterminds/html5", + "version": "2.10.0", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "fcf91eb64359852f00d921887b219479b4f21251" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251", + "reference": "fcf91eb64359852f00d921887b219479b4f21251", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.10.0" + }, + "time": "2025-07-25T09:04:22+00:00" + }, + { + "name": "monolog/monolog", + "version": "2.10.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "5cf826f2991858b54d5c3809bee745560a1042a7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/5cf826f2991858b54d5c3809bee745560a1042a7", + "reference": "5cf826f2991858b54d5c3809bee745560a1042a7", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2@dev", + "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpspec/prophecy": "^1.15", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.5.38 || ^9.6.19", + "predis/predis": "^1.1 || ^2.0", + "rollbar/rollbar": "^1.3 || ^2 || ^3", + "ruflin/elastica": "^7", + "swiftmailer/swiftmailer": "^5.3|^6.0", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/2.10.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2024-11-12T12:43:37+00:00" + }, + { + "name": "nesbot/carbon", + "version": "2.73.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "9228ce90e1035ff2f0db84b40ec2e023ed802075" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/9228ce90e1035ff2f0db84b40ec2e023ed802075", + "reference": "9228ce90e1035ff2f0db84b40ec2e023ed802075", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "*", + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "psr/clock": "^1.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0", + "doctrine/orm": "^2.7 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.0", + "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "<6", + "phpmd/phpmd": "^2.9", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", + "squizlabs/php_codesniffer": "^3.4" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2025-01-08T20:10:23+00:00" + }, + { + "name": "nette/schema", + "version": "v1.2.5", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "0462f0166e823aad657c9224d0f849ecac1ba10a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/0462f0166e823aad657c9224d0f849ecac1ba10a", + "reference": "0462f0166e823aad657c9224d0f849ecac1ba10a", + "shasum": "" + }, + "require": { + "nette/utils": "^2.5.7 || ^3.1.5 || ^4.0", + "php": "7.1 - 8.3" + }, + "require-dev": { + "nette/tester": "^2.3 || ^2.4", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.2.5" + }, + "time": "2023-10-05T20:37:59+00:00" + }, + { + "name": "nette/utils", + "version": "v4.0.8", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "c930ca4e3cf4f17dcfb03037703679d2396d2ede" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/c930ca4e3cf4f17dcfb03037703679d2396d2ede", + "reference": "c930ca4e3cf4f17dcfb03037703679d2396d2ede", + "shasum": "" + }, + "require": { + "php": "8.0 - 8.5" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "^1.2", + "nette/tester": "^2.5", + "phpstan/phpstan-nette": "^2.0@stable", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.0.8" + }, + "time": "2025-08-06T21:43:34+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.6.1", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" + }, + "time": "2025-08-13T20:13:15+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v1.15.1", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/8ab0b32c8caa4a2e09700ea32925441385e4a5dc", + "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.0", + "symfony/console": "^5.3.0|^6.0.0" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^1.0.", + "illuminate/console": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "laravel/pint": "^1.0.0", + "pestphp/pest": "^1.21.0", + "pestphp/pest-plugin-mock": "^1.0", + "phpstan/phpstan": "^1.4.6", + "phpstan/phpstan-strict-rules": "^1.1.0", + "symfony/var-dumper": "^5.2.7|^6.0.0", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.15.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2023-02-08T01:06:31+00:00" + }, + { + "name": "phenx/php-font-lib", + "version": "0.5.6", + "source": { + "type": "git", + "url": "https://github.com/dompdf/php-font-lib.git", + "reference": "a1681e9793040740a405ac5b189275059e2a9863" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/a1681e9793040740a405ac5b189275059e2a9863", + "reference": "a1681e9793040740a405ac5b189275059e2a9863", + "shasum": "" + }, + "require": { + "ext-mbstring": "*" + }, + "require-dev": { + "symfony/phpunit-bridge": "^3 || ^4 || ^5 || ^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "FontLib\\": "src/FontLib" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + } + ], + "description": "A library to read, parse, export and make subsets of different types of font files.", + "homepage": "https://github.com/PhenX/php-font-lib", + "support": { + "issues": "https://github.com/dompdf/php-font-lib/issues", + "source": "https://github.com/dompdf/php-font-lib/tree/0.5.6" + }, + "time": "2024-01-29T14:45:26+00:00" + }, + { + "name": "phenx/php-svg-lib", + "version": "0.5.4", + "source": { + "type": "git", + "url": "https://github.com/dompdf/php-svg-lib.git", + "reference": "46b25da81613a9cf43c83b2a8c2c1bdab27df691" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/46b25da81613a9cf43c83b2a8c2c1bdab27df691", + "reference": "46b25da81613a9cf43c83b2a8c2c1bdab27df691", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^7.1 || ^8.0", + "sabberworm/php-css-parser": "^8.4" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Svg\\": "src/Svg" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + } + ], + "description": "A library to read, parse and export to PDF SVG files.", + "homepage": "https://github.com/PhenX/php-svg-lib", + "support": { + "issues": "https://github.com/dompdf/php-svg-lib/issues", + "source": "https://github.com/dompdf/php-svg-lib/tree/0.5.4" + }, + "time": "2024-04-08T12:52:34+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.4", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "638a154f8d4ee6a5cfa96d6a34dfbe0cffa9566d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/638a154f8d4ee6a5cfa96d6a34dfbe0cffa9566d", + "reference": "638a154f8d4ee6a5cfa96d6a34dfbe0cffa9566d", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2025-08-21T11:53:16+00:00" + }, + { + "name": "psr/cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+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/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+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" + }, + { + "name": "psy/psysh", + "version": "v0.12.10", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "6e80abe6f2257121f1eb9a4c55bf29d921025b22" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/6e80abe6f2257121f1eb9a4c55bf29d921025b22", + "reference": "6e80abe6f2257121f1eb9a4c55bf29d921025b22", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2" + }, + "suggest": { + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-pdo-sqlite": "The doc command requires SQLite to work.", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "https://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.10" + }, + "time": "2025-08-04T12:39:37+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "ad7475d1c9e70b190ecffc58f2d989416af339b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/ad7475d1c9e70b190ecffc58f2d989416af339b4", + "reference": "ad7475d1c9e70b190ecffc58f2d989416af339b4", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "symfony/polyfill-php81": "^1.23" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/1.3.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2022-12-27T19:12:24+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.9.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "4e0e23cc785f0724a0e838279a9eb03f28b092a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/4e0e23cc785f0724a0e838279a9eb03f28b092a0", + "reference": "4e0e23cc785f0724a0e838279a9eb03f28b092a0", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.25", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ergebnis/composer-normalize": "^2.47", + "mockery/mockery": "^1.6", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.6", + "php-mock/php-mock-mockery": "^1.5", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6", + "slevomat/coding-standard": "^8.18", + "squizlabs/php_codesniffer": "^3.13" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.9.0" + }, + "time": "2025-06-25T14:20:11+00:00" + }, + { + "name": "sabberworm/php-css-parser", + "version": "v8.9.0", + "source": { + "type": "git", + "url": "https://github.com/MyIntervals/PHP-CSS-Parser.git", + "reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9", + "reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0" + }, + "require-dev": { + "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41", + "rawr/cross-data-providers": "^2.0.0" + }, + "suggest": { + "ext-mbstring": "for parsing UTF-8 CSS" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "9.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Sabberworm\\CSS\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Raphael Schweikert" + }, + { + "name": "Oliver Klee", + "email": "github@oliverklee.de" + }, + { + "name": "Jake Hotson", + "email": "jake.github@qzdesign.co.uk" + } + ], + "description": "Parser for CSS Files written in PHP", + "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", + "keywords": [ + "css", + "parser", + "stylesheet" + ], + "support": { + "issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues", + "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0" + }, + "time": "2025-07-11T13:20:48+00:00" + }, + { + "name": "symfony/console", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/c3ebc83d031b71c39da318ca8b7a07ecc67507ed", + "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.4|^6.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "f1d00bddb83a4cb2138564b2150001cb6ce272b1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/f1d00bddb83a4cb2138564b2150001cb6ce272b1", + "reference": "f1d00bddb83a4cb2138564b2150001cb6ce272b1", + "shasum": "" + }, + "require": { + "php": ">=8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "shasum": "" + }, + "require": { + "php": ">=8.0.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:55:41+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "c7df52182f43a68522756ac31a532dd5b1e6db67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/c7df52182f43a68522756ac31a532dd5b1e6db67", + "reference": "c7df52182f43a68522756ac31a532dd5b1e6db67", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^5.4|^6.0" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/serializer": "^5.4|^6.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "2eaf8e63bc5b8cefabd4a800157f0d0c094f677a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2eaf8e63bc5b8cefabd4a800157f0d0c094f677a", + "reference": "2eaf8e63bc5b8cefabd4a800157f0d0c094f677a", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/event-dispatcher-contracts": "^2|^3" + }, + "conflict": { + "symfony/dependency-injection": "<5.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/error-handler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^5.4|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "7bc61cc2db649b4637d331240c5346dcc7708051" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051", + "reference": "7bc61cc2db649b4637d331240c5346dcc7708051", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:55:41+00:00" + }, + { + "name": "symfony/finder", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/5cc9cac6586fc0c28cd173780ca696e419fefa11", + "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11", + "shasum": "" + }, + "require": { + "php": ">=8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-20T17:44:14+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v6.0.20", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "e16b2676a4b3b1fa12378a20b29c364feda2a8d6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e16b2676a4b3b1fa12378a20b29c364feda2a8d6", + "reference": "e16b2676a4b3b1fa12378a20b29c364feda2a8d6", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.1" + }, + "require-dev": { + "predis/predis": "~1.0", + "symfony/cache": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", + "symfony/mime": "^5.4|^6.0", + "symfony/rate-limiter": "^5.2|^6.0" + }, + "suggest": { + "symfony/mime": "To use the file extension guesser" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v6.0.20" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-30T15:41:07+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v6.0.20", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "6dc70833fd0ef5e861e17c7854c12d7d86679349" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/6dc70833fd0ef5e861e17c7854c12d7d86679349", + "reference": "6dc70833fd0ef5e861e17c7854c12d7d86679349", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "psr/log": "^1|^2|^3", + "symfony/error-handler": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<5.4", + "symfony/cache": "<5.4", + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/doctrine-bridge": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/mailer": "<5.4", + "symfony/messenger": "<5.4", + "symfony/translation": "<5.4", + "symfony/twig-bridge": "<5.4", + "symfony/validator": "<5.4", + "twig/twig": "<2.13" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^5.4|^6.0", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/dom-crawler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/process": "^5.4|^6.0", + "symfony/routing": "^5.4|^6.0", + "symfony/stopwatch": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", + "symfony/translation-contracts": "^1.1|^2|^3", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v6.0.20" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-02-01T08:22:55+00:00" + }, + { + "name": "symfony/mailer", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "cd60799210c488f545ddde2444dc1aa548322872" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/cd60799210c488f545ddde2444dc1aa548322872", + "reference": "cd60799210c488f545ddde2444dc1aa548322872", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.0.2", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/mime": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3" + }, + "conflict": { + "symfony/http-kernel": "<5.4" + }, + "require-dev": { + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/messenger": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-11T11:50:03+00:00" + }, + { + "name": "symfony/mime", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "d7052547a0070cbeadd474e172b527a00d657301" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/d7052547a0070cbeadd474e172b527a00d657301", + "reference": "d7052547a0070cbeadd474e172b527a00d657301", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<5.4", + "symfony/serializer": "<5.4.14|>=6.0,<6.0.14|>=6.1,<6.1.6" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/property-access": "^5.4|^6.0", + "symfony/property-info": "^5.4|^6.0", + "symfony/serializer": "^5.4.14|~6.0.14|^6.1.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-11T11:50:03+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-27T09:58:17+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-10T14:38:51+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-02T08:10:11+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", + "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/process", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4", + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4", + "shasum": "" + }, + "require": { + "php": ">=8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/routing", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "e56ca9b41c1ec447193474cd86ad7c0b547755ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/e56ca9b41c1ec447193474cd86ad7c0b547755ac", + "reference": "e56ca9b41c1ec447193474cd86ad7c0b547755ac", + "shasum": "" + }, + "require": { + "php": ">=8.0.2" + }, + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/yaml": "<5.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12|^2", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "symfony/config": "For using the all-in-one router or any loader", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d78d39c1599bd1188b8e26bb341da52c3c6d8a66", + "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "psr/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.0.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-30T19:17:58+00:00" + }, + { + "name": "symfony/string", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/d9e72497367c23e08bf94176d2be45b00a9d232a", + "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.0" + }, + "require-dev": { + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/translation", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f", + "reference": "9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.3|^3.0" + }, + "conflict": { + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-kernel": "<5.4", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "acbfbb274e730e5a0236f619b6168d9dedb3e282" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/acbfbb274e730e5a0236f619b6168d9dedb3e282", + "reference": "acbfbb274e730e5a0236f619b6168d9dedb3e282", + "shasum": "" + }, + "require": { + "php": ">=8.0.2" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.0.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:10:44+00:00" + }, + { + "name": "symfony/uid", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "6499e28b0ac9f2aa3151e11845bdb5cd21e6bb9d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/6499e28b0ac9f2aa3151e11845bdb5cd21e6bb9d", + "reference": "6499e28b0ac9f2aa3151e11845bdb5cd21e6bb9d", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-01T08:36:10+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "eb980457fa6899840fe1687e8627a03a7d8a3d52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/eb980457fa6899840fe1687e8627a03a7d8a3d52", + "reference": "eb980457fa6899840fe1687e8627a03a7d8a3d52", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.3", + "symfony/console": "<5.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/uid": "^5.4|^6.0", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", + "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-20T17:44:14+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "0d72ac1c00084279c1816675284073c5a337c20d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/0d72ac1c00084279c1816675284073c5a337c20d", + "reference": "0d72ac1c00084279c1816675284073c5a337c20d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^7.4 || ^8.0", + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0" + }, + "require-dev": { + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.3.0" + }, + "time": "2024-12-21T16:25:41+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.2", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "24ac4c74f91ee2c193fa1aaa5c249cb0822809af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/24ac4c74f91ee2c193fa1aaa5c249cb0822809af", + "reference": "24ac4c74f91ee2c193fa1aaa5c249cb0822809af", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.3", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3", + "symfony/polyfill-ctype": "^1.24", + "symfony/polyfill-mbstring": "^1.24", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2025-04-30T23:37:27+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "https://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.3" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2024-11-21T01:49:47+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-12-30T00:15:36+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.24.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + }, + "time": "2024-11-21T13:46:39+00:00" + }, + { + "name": "filp/whoops", + "version": "2.18.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.18.4" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2025-08-08T12:00:00+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0 || ^3.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.1.1" + }, + "time": "2025-04-30T06:54:44+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.5.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362", + "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.14.4", + "illuminate/view": "^9.51.0", + "laravel-zero/framework": "^9.2.0", + "mockery/mockery": "^1.5.1", + "nunomaduro/larastan": "^2.4.0", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^1.22.4" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2023-02-14T16:31:02+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.45.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "019a2933ff4a9199f098d4259713f9bc266a874e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/019a2933ff4a9199f098d4259713f9bc266a874e", + "reference": "019a2933ff4a9199f098d4259713f9bc266a874e", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0", + "symfony/yaml": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpstan/phpstan": "^1.10" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2025-08-25T19:28:31+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.12", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-05-16T03:13:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.13.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2025-08-01T08:46:24+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v6.4.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "f05978827b9343cba381ca05b8c7deee346b6015" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/f05978827b9343cba381ca05b8c7deee346b6015", + "reference": "f05978827b9343cba381ca05b8c7deee346b6015", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.14.5", + "php": "^8.0.0", + "symfony/console": "^6.0.2" + }, + "require-dev": { + "brianium/paratest": "^6.4.1", + "laravel/framework": "^9.26.1", + "laravel/pint": "^1.1.1", + "nunomaduro/larastan": "^1.0.3", + "nunomaduro/mock-final-classes": "^1.1.0", + "orchestra/testbench": "^7.7", + "phpunit/phpunit": "^9.5.23", + "spatie/ignition": "^1.4.1" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + }, + "branch-alias": { + "dev-develop": "6.x-dev" + } + }, + "autoload": { + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2023-01-03T12:54:54+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.32", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/85402a822d1ecf1db1096959413d35e1c37cf1a5", + "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.19.1 || ^5.1.0", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.6", + "phpunit/php-text-template": "^2.0.4", + "sebastian/code-unit-reverse-lookup": "^2.0.3", + "sebastian/complexity": "^2.0.3", + "sebastian/environment": "^5.1.5", + "sebastian/lines-of-code": "^1.0.4", + "sebastian/version": "^3.0.2", + "theseer/tokenizer": "^1.2.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.6" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "9.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.32" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-08-22T04:23:01+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.6.25", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "049c011e01be805202d8eebedef49f769a8ec7b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/049c011e01be805202d8eebedef49f769a8ec7b7", + "reference": "049c011e01be805202d8eebedef49f769a8ec7b7", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.5.0 || ^2", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.4", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.32", + "phpunit/php-file-iterator": "^3.0.6", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", + "sebastian/comparator": "^4.0.9", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.8", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", + "sebastian/version": "^3.0.2" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.6-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.25" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2025-08-20T14:38:31+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:27:43+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2025-08-10T06:51:50+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-22T06:19:30+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:30:58+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:03:51+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:33:00+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b6781316bdcd28260904e7cc18ec983d0d2ef4f6", + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2025-08-10T07:10:35+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-22T06:20:34+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0", + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-10T06:57:39+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-14T16:00:52+00:00" + }, + { + "name": "sebastian/type", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:13:03+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "8c0f16a59ae35ec8c62d85c3c17585158f430110" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/8c0f16a59ae35ec8c62d85c3c17585158f430110", + "reference": "8c0f16a59ae35ec8c62d85c3c17585158f430110", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1 || ^6.0 || ^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/backtrace/issues", + "source": "https://github.com/spatie/backtrace/tree/1.8.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2025-08-26T08:22:30+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.10.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "bf1716eb98bd689451b071548ae9e70738dce62f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/bf1716eb98bd689451b071548ae9e70738dce62f", + "reference": "bf1716eb98bd689451b071548ae9e70738dce62f", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^8.0", + "spatie/backtrace": "^1.6.1", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/pest-plugin-snapshots": "^1.0|^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.10.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-02-14T13:42:06+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.14.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "5e11c11f675bb5251f061491a493e04a1a571532" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/5e11c11f675bb5251f061491a493e04a1a571532", + "reference": "5e11c11f675bb5251f061491a493e04a1a571532", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/backtrace": "^1.5.3", + "spatie/flare-client-php": "^1.4.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-05-29T08:10:20+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb", + "reference": "b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^8.77|^9.27", + "monolog/monolog": "^2.3", + "php": "^8.0", + "spatie/flare-client-php": "^1.0.1", + "spatie/ignition": "<= 1.14.2", + "symfony/console": "^5.0|^6.0", + "symfony/var-dumper": "^5.0|^6.0" + }, + "require-dev": { + "filp/whoops": "^2.14", + "livewire/livewire": "^2.8|dev-develop", + "mockery/mockery": "^1.4", + "nunomaduro/larastan": "^1.0", + "orchestra/testbench": "^6.23|^7.0", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.27" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + }, + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-06-13T07:21:06+00:00" + }, + { + "name": "symfony/yaml", + "version": "v6.0.19", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "deec3a812a0305a50db8ae689b183f43d915c884" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/deec3a812a0305a50db8ae689b183f43d915c884", + "reference": "deec3a812a0305a50db8ae689b183f43d915c884", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<5.4" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v6.0.19" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-11T11:50:03+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:36:25+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.0.2" + }, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..ef76a7e --- /dev/null +++ b/config/app.php @@ -0,0 +1,215 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + 'asset_url' => env('ASSET_URL'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Faker Locale + |-------------------------------------------------------------------------- + | + | This locale will be used by the Faker PHP library when generating fake + | data for your database seeds. For example, this will be used to get + | localized telephone numbers, street address information and more. + | + */ + + 'faker_locale' => 'en_US', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => env('APP_KEY'), + + 'cipher' => 'AES-256-CBC', + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file', + // 'store' => 'redis', + ], + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => [ + + /* + * Laravel Framework Service Providers... + */ + Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, + Illuminate\Bus\BusServiceProvider::class, + Illuminate\Cache\CacheServiceProvider::class, + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, + Illuminate\Cookie\CookieServiceProvider::class, + Illuminate\Database\DatabaseServiceProvider::class, + Illuminate\Encryption\EncryptionServiceProvider::class, + Illuminate\Filesystem\FilesystemServiceProvider::class, + Illuminate\Foundation\Providers\FoundationServiceProvider::class, + Illuminate\Hashing\HashServiceProvider::class, + Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, + Illuminate\Pagination\PaginationServiceProvider::class, + Illuminate\Pipeline\PipelineServiceProvider::class, + Illuminate\Queue\QueueServiceProvider::class, + Illuminate\Redis\RedisServiceProvider::class, + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, + Illuminate\Session\SessionServiceProvider::class, + Illuminate\Translation\TranslationServiceProvider::class, + Illuminate\Validation\ValidationServiceProvider::class, + Illuminate\View\ViewServiceProvider::class, + + /* + * Package Service Providers... + */ + + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + // App\Providers\BroadcastServiceProvider::class, + App\Providers\EventServiceProvider::class, + App\Providers\RouteServiceProvider::class, + + ], + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => Facade::defaultAliases()->merge([ + // 'ExampleClass' => App\Example\ExampleClass::class, + ])->toArray(), + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..d8c6cee --- /dev/null +++ b/config/auth.php @@ -0,0 +1,111 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\Models\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. + | + | The expire time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the amount of seconds before a password confirmation + | times out and the user is prompted to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => 10800, + +]; diff --git a/config/broadcasting.php b/config/broadcasting.php new file mode 100644 index 0000000..9e4d4aa --- /dev/null +++ b/config/broadcasting.php @@ -0,0 +1,70 @@ + env('BROADCAST_DRIVER', 'null'), + + /* + |-------------------------------------------------------------------------- + | Broadcast Connections + |-------------------------------------------------------------------------- + | + | Here you may define all of the broadcast connections that will be used + | to broadcast events to other systems or over websockets. Samples of + | each available type of connection are provided inside this array. + | + */ + + 'connections' => [ + + 'pusher' => [ + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', + ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html + ], + ], + + 'ably' => [ + 'driver' => 'ably', + 'key' => env('ABLY_KEY'), + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + 'log' => [ + 'driver' => 'log', + ], + + 'null' => [ + 'driver' => 'null', + ], + + ], + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..33bb295 --- /dev/null +++ b/config/cache.php @@ -0,0 +1,110 @@ + env('CACHE_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "apc", "array", "database", "file", + | "memcached", "redis", "dynamodb", "octane", "null" + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + 'lock_connection' => null, + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'cache', + 'lock_connection' => 'default', + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + +]; diff --git a/config/cors.php b/config/cors.php new file mode 100644 index 0000000..8a39e6d --- /dev/null +++ b/config/cors.php @@ -0,0 +1,34 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..137ad18 --- /dev/null +++ b/config/database.php @@ -0,0 +1,151 @@ + env('DB_CONNECTION', 'mysql'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DATABASE_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + ], + + ], + +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..e9d9dbd --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,76 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Here you may configure as many filesystem "disks" as you wish, and you + | may even configure multiple disks of the same driver. Defaults have + | been set up for each driver as an example of the required values. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/config/hashing.php b/config/hashing.php new file mode 100644 index 0000000..bcd3be4 --- /dev/null +++ b/config/hashing.php @@ -0,0 +1,52 @@ + 'bcrypt', + + /* + |-------------------------------------------------------------------------- + | Bcrypt Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Bcrypt algorithm. This will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 10), + ], + + /* + |-------------------------------------------------------------------------- + | Argon Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Argon algorithm. These will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'argon' => [ + 'memory' => 65536, + 'threads' => 1, + 'time' => 4, + ], + +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..5aa1dbb --- /dev/null +++ b/config/logging.php @@ -0,0 +1,122 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Out of + | the box, Laravel uses the Monolog PHP logging library. This gives + | you a variety of powerful log handlers / formatters to utilize. + | + | Available Drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", + | "custom", "stack" + | + */ + + 'channels' => [ + 'stack' => [ + 'driver' => 'stack', + 'channels' => ['single'], + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..534395a --- /dev/null +++ b/config/mail.php @@ -0,0 +1,118 @@ + env('MAIL_MAILER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers to be used while + | sending an e-mail. You will specify which one you are using for your + | mailers below. You are free to add additional mailers as required. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", + | "postmark", "log", "array", "failover" + | + */ + + 'mailers' => [ + 'smtp' => [ + 'transport' => 'smtp', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + ], + + 'postmark' => [ + 'transport' => 'postmark', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..25ea5a8 --- /dev/null +++ b/config/queue.php @@ -0,0 +1,93 @@ + env('QUEUE_CONNECTION', 'sync'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => 90, + 'block_for' => null, + 'after_commit' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/sanctum.php b/config/sanctum.php new file mode 100644 index 0000000..529cfdc --- /dev/null +++ b/config/sanctum.php @@ -0,0 +1,67 @@ + explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( + '%s%s', + 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', + Sanctum::currentApplicationUrlWithPort() + ))), + + /* + |-------------------------------------------------------------------------- + | Sanctum Guards + |-------------------------------------------------------------------------- + | + | This array contains the authentication guards that will be checked when + | Sanctum is trying to authenticate a request. If none of these guards + | are able to authenticate the request, Sanctum will use the bearer + | token that's present on an incoming request for authentication. + | + */ + + 'guard' => ['web'], + + /* + |-------------------------------------------------------------------------- + | Expiration Minutes + |-------------------------------------------------------------------------- + | + | This value controls the number of minutes until an issued token will be + | considered expired. If this value is null, personal access tokens do + | not expire. This won't tweak the lifetime of first-party sessions. + | + */ + + 'expiration' => null, + + /* + |-------------------------------------------------------------------------- + | Sanctum Middleware + |-------------------------------------------------------------------------- + | + | When authenticating your first-party SPA with Sanctum you may need to + | customize some of the middleware Sanctum uses while processing the + | request. You may change the middleware listed below as required. + | + */ + + 'middleware' => [ + 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, + 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..0ace530 --- /dev/null +++ b/config/services.php @@ -0,0 +1,34 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', + ], + + 'postmark' => [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..8fed97c --- /dev/null +++ b/config/session.php @@ -0,0 +1,201 @@ + env('SESSION_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it is stored. All encryption will be run + | automatically by Laravel and you can use the Session like normal. + | + */ + + 'encrypt' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | While using one of the framework's cache driven session backends you may + | list a cache store that should be used for these sessions. This value + | must match with one of the application's configured cache "stores". + | + | Affects: "apc", "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" since this is a secure default value. + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => 'lax', + +]; diff --git a/config/view.php b/config/view.php new file mode 100644 index 0000000..22b8a18 --- /dev/null +++ b/config/view.php @@ -0,0 +1,36 @@ + [ + resource_path('views'), + ], + + /* + |-------------------------------------------------------------------------- + | Compiled View Path + |-------------------------------------------------------------------------- + | + | This option determines where all the compiled Blade templates will be + | stored for your application. Typically, this is within the storage + | directory. However, as usual, you are free to change this value. + | + */ + + 'compiled' => env( + 'VIEW_COMPILED_PATH', + realpath(storage_path('framework/views')) + ), + +]; diff --git a/create_es_teh.php b/create_es_teh.php new file mode 100644 index 0000000..1857630 --- /dev/null +++ b/create_es_teh.php @@ -0,0 +1,70 @@ +make(Illuminate\Contracts\Console\Kernel::class); +$kernel->bootstrap(); + +// Create product +$product = \App\Models\Product::create([ + 'name' => 'es teh', + 'category' => 'minuman', + 'purchase_price' => 4000, + 'selling_price' => 5000, + 'branch' => 'Cabang 2' +]); + +echo "Product created with ID: " . $product->id . "\n"; + +// Create recipes +\App\Models\ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => 3, // Es Batu + 'quantity_needed' => 15 +]); +echo "Recipe added: Es Batu 15 Gram\n"; + +\App\Models\ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => 2, // Gula + 'quantity_needed' => 20 +]); +echo "Recipe added: Gula 20 Gram\n"; + +\App\Models\ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => 4, // Teh Kotak + 'quantity_needed' => 0.5 // 1 pcs untuk 2 es teh +]); +echo "Recipe added: Teh Kotak 0.5 Pcs\n"; + +// Create initial stock +\App\Models\Stock::create([ + 'product_id' => $product->id, + 'branch' => 'Cabang 2', + 'quantity' => 0, + 'unit' => 'Pcs' +]); +echo "Initial stock created\n"; + +// Recalculate stock +$product = \App\Models\Product::with('recipes.rawMaterial')->find($product->id); +$minStock = null; +foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if (!$rm || $recipe->quantity_needed <= 0) continue; + $possibleAmount = floor($rm->stock_quantity / $recipe->quantity_needed); + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } +} + +if ($minStock !== null && $minStock >= 0) { + $stock = \App\Models\Stock::where('product_id', $product->id)->where('branch', 'Cabang 2')->first(); + $stock->quantity = $minStock; + $stock->save(); + echo "Stock recalculated: " . $minStock . " Pcs\n"; +} else { + echo "Stock could not be calculated (insufficient raw materials)\n"; +} + +echo "Done!\n"; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/database/ERD.md b/database/ERD.md new file mode 100644 index 0000000..2f22097 --- /dev/null +++ b/database/ERD.md @@ -0,0 +1,90 @@ +# ERD + +```mermaid +erDiagram + USERS { + bigint id PK + string name + string email + timestamp email_verified_at + string password + timestamp created_at + timestamp updated_at + string role + string branch + } + + BRANCHES { + bigint id PK + string name + timestamp created_at + timestamp updated_at + } + + PRODUCTS { + bigint id PK + string name + enum category + integer purchase_price + integer selling_price + string image + string branch + timestamp created_at + timestamp updated_at + } + + STOCKS { + bigint id PK + bigint product_id FK + string branch + integer quantity + string unit + timestamp created_at + timestamp updated_at + } + + PURCHASES { + bigint id PK + date date + string branch + string item + string quantity + integer total_price + bigint product_id FK + timestamp created_at + timestamp updated_at + } + + SALES { + bigint id PK + date date + string branch + string item + integer quantity + integer total_price + bigint product_id FK + timestamp created_at + timestamp updated_at + } + + OPERATIONAL_COSTS { + bigint id PK + string branch + date date + string label + integer amount + timestamp created_at + timestamp updated_at + } + + USERS ||--o{ BRANCHES : "belongs_to (via branch name)" + PRODUCTS ||--o{ BRANCHES : "belongs_to (via branch name)" + STOCKS }o--|| PRODUCTS : "product_id" + PURCHASES }o--|| PRODUCTS : "product_id" + SALES }o--|| PRODUCTS : "product_id" + + BRANCHES ||--o{ STOCKS : "has" + BRANCHES ||--o{ PURCHASES : "has" + BRANCHES ||--o{ SALES : "has" + BRANCHES ||--o{ OPERATIONAL_COSTS : "has" +``` diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..41f8ae8 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,40 @@ + + */ +class UserFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition() + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'remember_token' => Str::random(10), + ]; + } + + /** + * Indicate that the model's email address should be unverified. + * + * @return static + */ + public function unverified() + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 0000000..f10463d --- /dev/null +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,36 @@ +fid(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('users'); + } +}; diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php new file mode 100644 index 0000000..e5f1397 --- /dev/null +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -0,0 +1,32 @@ +string('email')->primary(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('password_resets'); + } +}; diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php new file mode 100644 index 0000000..1719198 --- /dev/null +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php new file mode 100644 index 0000000..6c81fd2 --- /dev/null +++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -0,0 +1,37 @@ +id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('personal_access_tokens'); + } +}; diff --git a/database/migrations/2025_09_13_000001_create_products_table.php b/database/migrations/2025_09_13_000001_create_products_table.php new file mode 100644 index 0000000..3ad8aa3 --- /dev/null +++ b/database/migrations/2025_09_13_000001_create_products_table.php @@ -0,0 +1,25 @@ +id(); + $table->string('name'); + $table->enum('category', ['makanan', 'minuman', 'snack']); + $table->integer('purchase_price'); + $table->integer('selling_price'); + $table->string('image')->nullable(); + $table->timestamps(); + }); + } + + public function down() + { + Schema::dropIfExists('products'); + } +} diff --git a/database/migrations/2026_02_11_091619_add_role_and_branch_to_users_table.php b/database/migrations/2026_02_11_091619_add_role_and_branch_to_users_table.php new file mode 100644 index 0000000..fbb7a84 --- /dev/null +++ b/database/migrations/2026_02_11_091619_add_role_and_branch_to_users_table.php @@ -0,0 +1,33 @@ +enum('role', ['admin', 'employee'])->default('employee')->after('email'); + $table->string('branch')->nullable()->after('role'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['role', 'branch']); + }); + } +}; diff --git a/database/migrations/2026_02_11_100114_create_stocks_table.php b/database/migrations/2026_02_11_100114_create_stocks_table.php new file mode 100644 index 0000000..12b7a4e --- /dev/null +++ b/database/migrations/2026_02_11_100114_create_stocks_table.php @@ -0,0 +1,35 @@ +id(); + $table->foreignId('product_id')->constrained()->onDelete('cascade'); + $table->string('branch'); + $table->integer('quantity')->default(0); + $table->string('unit')->nullable(); // Added unit to stock for flexibility + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('stocks'); + } +}; diff --git a/database/migrations/2026_02_11_101516_create_purchases_table.php b/database/migrations/2026_02_11_101516_create_purchases_table.php new file mode 100644 index 0000000..bc62b52 --- /dev/null +++ b/database/migrations/2026_02_11_101516_create_purchases_table.php @@ -0,0 +1,36 @@ +id(); + $table->date('date'); + $table->string('branch'); + $table->string('item'); + $table->string('quantity'); + $table->integer('total_price'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('purchases'); + } +}; diff --git a/database/migrations/2026_02_11_101547_create_sales_table.php b/database/migrations/2026_02_11_101547_create_sales_table.php new file mode 100644 index 0000000..b960e05 --- /dev/null +++ b/database/migrations/2026_02_11_101547_create_sales_table.php @@ -0,0 +1,36 @@ +id(); + $table->date('date'); + $table->string('branch'); + $table->string('item'); + $table->integer('quantity'); + $table->integer('total_price'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('sales'); + } +}; diff --git a/database/migrations/2026_02_11_152544_add_product_id_to_purchases_and_sales_tables.php b/database/migrations/2026_02_11_152544_add_product_id_to_purchases_and_sales_tables.php new file mode 100644 index 0000000..2707d27 --- /dev/null +++ b/database/migrations/2026_02_11_152544_add_product_id_to_purchases_and_sales_tables.php @@ -0,0 +1,42 @@ +foreignId('product_id')->nullable()->after('branch')->constrained()->onDelete('set null'); + }); + + Schema::table('sales', function (Blueprint $table) { + $table->foreignId('product_id')->nullable()->after('branch')->constrained()->onDelete('set null'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('purchases', function (Blueprint $table) { + $table->dropForeign(['product_id']); + $table->dropColumn('product_id'); + }); + + Schema::table('sales', function (Blueprint $table) { + $table->dropForeign(['product_id']); + $table->dropColumn('product_id'); + }); + } +}; diff --git a/database/migrations/2026_02_11_161608_modify_stocks_table_for_manual_items.php b/database/migrations/2026_02_11_161608_modify_stocks_table_for_manual_items.php new file mode 100644 index 0000000..d04db7c --- /dev/null +++ b/database/migrations/2026_02_11_161608_modify_stocks_table_for_manual_items.php @@ -0,0 +1,34 @@ +foreignId('product_id')->nullable()->change(); + $table->string('manual_item_name')->nullable()->after('product_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('stocks', function (Blueprint $table) { + $table->foreignId('product_id')->nullable(false)->change(); + $table->dropColumn('manual_item_name'); + }); + } +}; diff --git a/database/migrations/2026_02_12_192244_add_branch_to_products_table.php b/database/migrations/2026_02_12_192244_add_branch_to_products_table.php new file mode 100644 index 0000000..5a9205b --- /dev/null +++ b/database/migrations/2026_02_12_192244_add_branch_to_products_table.php @@ -0,0 +1,32 @@ +string('branch')->default('Cabang 1')->after('image'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('products', function (Blueprint $table) { + $table->dropColumn('branch'); + }); + } +}; diff --git a/database/migrations/2026_02_18_085951_create_branches_table.php b/database/migrations/2026_02_18_085951_create_branches_table.php new file mode 100644 index 0000000..1a8ced6 --- /dev/null +++ b/database/migrations/2026_02_18_085951_create_branches_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('name')->unique(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('branches'); + } +}; diff --git a/database/migrations/2026_03_08_173241_change_role_type_in_users_table.php b/database/migrations/2026_03_08_173241_change_role_type_in_users_table.php new file mode 100644 index 0000000..b72c321 --- /dev/null +++ b/database/migrations/2026_03_08_173241_change_role_type_in_users_table.php @@ -0,0 +1,35 @@ +string('role')->change(); + }); + + // Update existing data for consistency + \DB::table('users')->where('role', 'employee')->update(['role' => 'karyawan']); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->enum('role', ['admin', 'employee'])->default('employee')->change(); + }); + } +}; diff --git a/database/migrations/2026_03_28_164038_make_products_global.php b/database/migrations/2026_03_28_164038_make_products_global.php new file mode 100644 index 0000000..3f4df00 --- /dev/null +++ b/database/migrations/2026_03_28_164038_make_products_global.php @@ -0,0 +1,32 @@ + p2.id + ) + "); + + $duplicateIds = array_column($duplicates, 'id'); + + if (!empty($duplicateIds)) { + // Optional: Reassign purchase/sales references if necessary, or just delete. + // Since this is a hard shift, we will just delete the duplicates. + DB::table('products')->whereIn('id', $duplicateIds)->delete(); + } + + // 2. Modify the table schema + Schema::table('products', function (Blueprint $table) { + $table->dropColumn('branch'); + // Adding unique constraint to name to prevent future duplicates at database level + // Note: because collation might differ, we'll keep the application-level validation too, + // but this adds a hard layer of protection. + $table->unique('name'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('products', function (Blueprint $table) { + $table->dropUnique(['name']); + $table->string('branch')->nullable(); + }); + } +}; diff --git a/database/migrations/2026_04_26_180250_create_operational_costs_table.php b/database/migrations/2026_04_26_180250_create_operational_costs_table.php new file mode 100644 index 0000000..450edad --- /dev/null +++ b/database/migrations/2026_04_26_180250_create_operational_costs_table.php @@ -0,0 +1,35 @@ +id(); + $table->string('branch'); + $table->date('date'); + $table->string('label'); + $table->integer('amount'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('operational_costs'); + } +}; diff --git a/database/migrations/2026_04_30_080656_add_branch_foreign_keys.php b/database/migrations/2026_04_30_080656_add_branch_foreign_keys.php new file mode 100644 index 0000000..cf1df20 --- /dev/null +++ b/database/migrations/2026_04_30_080656_add_branch_foreign_keys.php @@ -0,0 +1,64 @@ +foreign('branch')->references('name')->on('branches')->onUpdate('cascade')->onDelete('cascade'); + }); + + Schema::table('sales', function (Blueprint $table) { + $table->foreign('branch')->references('name')->on('branches')->onUpdate('cascade')->onDelete('cascade'); + }); + + Schema::table('purchases', function (Blueprint $table) { + $table->foreign('branch')->references('name')->on('branches')->onUpdate('cascade')->onDelete('cascade'); + }); + + Schema::table('stocks', function (Blueprint $table) { + $table->foreign('branch')->references('name')->on('branches')->onUpdate('cascade')->onDelete('cascade'); + }); + + Schema::table('operational_costs', function (Blueprint $table) { + $table->foreign('branch')->references('name')->on('branches')->onUpdate('cascade')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropForeign(['branch']); + }); + + Schema::table('sales', function (Blueprint $table) { + $table->dropForeign(['branch']); + }); + + Schema::table('purchases', function (Blueprint $table) { + $table->dropForeign(['branch']); + }); + + Schema::table('stocks', function (Blueprint $table) { + $table->dropForeign(['branch']); + }); + + Schema::table('operational_costs', function (Blueprint $table) { + $table->dropForeign(['branch']); + }); + } +}; diff --git a/database/migrations/2026_07_16_153803_create_accounts_table.php b/database/migrations/2026_07_16_153803_create_accounts_table.php new file mode 100644 index 0000000..8082b31 --- /dev/null +++ b/database/migrations/2026_07_16_153803_create_accounts_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('code')->unique(); + $table->string('name'); + $table->enum('type', ['Asset', 'Liability', 'Equity', 'Revenue', 'Expense']); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('accounts'); + } +}; diff --git a/database/migrations/2026_07_16_154448_create_journal_entries_table.php b/database/migrations/2026_07_16_154448_create_journal_entries_table.php new file mode 100644 index 0000000..dd84776 --- /dev/null +++ b/database/migrations/2026_07_16_154448_create_journal_entries_table.php @@ -0,0 +1,36 @@ +id(); + $table->date('date'); + $table->string('description'); + $table->string('reference_type')->nullable(); // e.g. Sale, Purchase, OperationalCost + $table->unsignedBigInteger('reference_id')->nullable(); + $table->string('branch')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('journal_entries'); + } +}; diff --git a/database/migrations/2026_07_16_154532_create_journal_details_table.php b/database/migrations/2026_07_16_154532_create_journal_details_table.php new file mode 100644 index 0000000..e0ec737 --- /dev/null +++ b/database/migrations/2026_07_16_154532_create_journal_details_table.php @@ -0,0 +1,35 @@ +id(); + $table->foreignId('journal_entry_id')->constrained('journal_entries')->onDelete('cascade'); + $table->foreignId('account_id')->constrained('accounts')->onDelete('cascade'); + $table->bigInteger('debit')->default(0); + $table->bigInteger('credit')->default(0); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('journal_details'); + } +}; diff --git a/database/migrations/2026_07_16_170214_create_raw_materials_table.php b/database/migrations/2026_07_16_170214_create_raw_materials_table.php new file mode 100644 index 0000000..b68d7b8 --- /dev/null +++ b/database/migrations/2026_07_16_170214_create_raw_materials_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name'); + $table->string('unit'); + $table->float('stock_quantity')->default(0); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('raw_materials'); + } +}; diff --git a/database/migrations/2026_07_16_170323_create_product_recipes_table.php b/database/migrations/2026_07_16_170323_create_product_recipes_table.php new file mode 100644 index 0000000..01b74cc --- /dev/null +++ b/database/migrations/2026_07_16_170323_create_product_recipes_table.php @@ -0,0 +1,34 @@ +id(); + $table->foreignId('product_id')->constrained('products')->onDelete('cascade'); + $table->foreignId('raw_material_id')->constrained('raw_materials')->onDelete('cascade'); + $table->float('quantity_needed'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('product_recipes'); + } +}; diff --git a/database/migrations/2026_07_16_170813_add_raw_material_id_to_purchases_table.php b/database/migrations/2026_07_16_170813_add_raw_material_id_to_purchases_table.php new file mode 100644 index 0000000..61f393d --- /dev/null +++ b/database/migrations/2026_07_16_170813_add_raw_material_id_to_purchases_table.php @@ -0,0 +1,35 @@ +foreignId('raw_material_id')->nullable()->constrained('raw_materials')->onDelete('set null'); + $table->string('type')->default('product'); // 'product' or 'raw_material' + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('purchases', function (Blueprint $table) { + $table->dropForeign(['raw_material_id']); + $table->dropColumn('raw_material_id'); + $table->dropColumn('type'); + }); + } +}; diff --git a/database/migrations/2026_07_16_183307_modify_products_table_for_branch_isolation.php b/database/migrations/2026_07_16_183307_modify_products_table_for_branch_isolation.php new file mode 100644 index 0000000..f95356d --- /dev/null +++ b/database/migrations/2026_07_16_183307_modify_products_table_for_branch_isolation.php @@ -0,0 +1,47 @@ +dropUnique('products_name_unique'); + + // Re-add branch column + $table->string('branch')->default('Cabang 1')->after('image'); + }); + + // Set all existing products to Cabang 1 + \Illuminate\Support\Facades\DB::table('products')->update(['branch' => 'Cabang 1']); + + Schema::table('products', function (Blueprint $table) { + // Add composite unique constraint for name and branch + $table->unique(['name', 'branch']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('products', function (Blueprint $table) { + $table->dropUnique(['name', 'branch']); + $table->dropColumn('branch'); + $table->unique('name', 'products_name_unique'); + }); + } +}; diff --git a/database/migrations/2026_07_17_124129_add_branch_to_raw_materials_table.php b/database/migrations/2026_07_17_124129_add_branch_to_raw_materials_table.php new file mode 100644 index 0000000..43a95e1 --- /dev/null +++ b/database/migrations/2026_07_17_124129_add_branch_to_raw_materials_table.php @@ -0,0 +1,32 @@ +string('branch')->default('Cabang 1')->after('unit'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('raw_materials', function (Blueprint $table) { + $table->dropColumn('branch'); + }); + } +}; diff --git a/database/seeders/AccountSeeder.php b/database/seeders/AccountSeeder.php new file mode 100644 index 0000000..114d3f7 --- /dev/null +++ b/database/seeders/AccountSeeder.php @@ -0,0 +1,33 @@ + '101', 'name' => 'Kas', 'type' => 'Asset'], + ['code' => '102', 'name' => 'Persediaan Barang Dagang', 'type' => 'Asset'], + ['code' => '301', 'name' => 'Modal', 'type' => 'Equity'], + ['code' => '401', 'name' => 'Penjualan', 'type' => 'Revenue'], + ['code' => '501', 'name' => 'Harga Pokok Penjualan', 'type' => 'Expense'], + ['code' => '502', 'name' => 'Biaya Operasional', 'type' => 'Expense'], + ]; + + foreach ($accounts as $account) { + \App\Models\Account::updateOrCreate( + ['code' => $account['code']], + $account + ); + } + } +} diff --git a/database/seeders/BranchSeeder.php b/database/seeders/BranchSeeder.php new file mode 100644 index 0000000..50ccc8e --- /dev/null +++ b/database/seeders/BranchSeeder.php @@ -0,0 +1,23 @@ + $branch]); + } + } +} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..ad76c11 --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,24 @@ +call([ + AccountSeeder::class, + BranchSeeder::class, + UserSeeder::class, + ProductSeeder::class, + ]); + } +} diff --git a/database/seeders/ProductSeeder.php b/database/seeders/ProductSeeder.php new file mode 100644 index 0000000..71427e0 --- /dev/null +++ b/database/seeders/ProductSeeder.php @@ -0,0 +1,76 @@ + 'Nasi Goreng', + 'category' => 'makanan', + 'purchase_price' => 10000, + 'selling_price' => 15000, + ], + [ + 'name' => 'Mie Goreng', + 'category' => 'makanan', + 'purchase_price' => 7000, + 'selling_price' => 10000, + ], + [ + 'name' => 'Kopi Hitam', + 'category' => 'minuman', + 'purchase_price' => 3000, + 'selling_price' => 5000, + ], + [ + 'name' => 'Es Teh', + 'category' => 'minuman', + 'purchase_price' => 2000, + 'selling_price' => 4000, + ], + [ + 'name' => 'Keripik Kentang', + 'category' => 'snack', + 'purchase_price' => 4000, + 'selling_price' => 7000, + ], + ]; + + $branches = ['Cabang 1', 'Cabang 2', 'Cabang 3']; + + foreach ($products as $pData) { + $product = Product::create($pData); + + // Seed stock for each branch + foreach ($branches as $branch) { + Stock::create([ + 'product_id' => $product->id, + 'branch' => $branch, + 'quantity' => rand(5, 50), + 'unit' => $this->getUnit($product->category) + ]); + } + } + } + + private function getUnit($category) + { + switch ($category) { + case 'makanan': return 'Porsi'; + case 'minuman': return 'Gelas'; + default: return 'Pcs'; + } + } +} diff --git a/database/seeders/PurchaseSaleSeeder.php b/database/seeders/PurchaseSaleSeeder.php new file mode 100644 index 0000000..9abe47c --- /dev/null +++ b/database/seeders/PurchaseSaleSeeder.php @@ -0,0 +1,56 @@ +isEmpty()) { + $this->command->warn('Product table is empty. Please run ProductSeeder first.'); + return; + } + + foreach ($branches as $branch) { + // Seed Purchases + for ($i = 0; $i < 5; $i++) { + $product = $products->random(); + Purchase::create([ + 'date' => Carbon::now()->subDays(rand(1, 10))->toDateString(), + 'branch' => $branch, + 'product_id' => $product->id, + 'item' => $product->name, + 'quantity' => rand(1, 10) . ' Pack', + 'total_price' => rand(20000, 200000), + ]); + } + + // Seed Sales + for ($i = 0; $i < 10; $i++) { + $product = $products->random(); + Sale::create([ + 'date' => Carbon::now()->subDays(rand(0, 5))->toDateString(), + 'branch' => $branch, + 'product_id' => $product->id, + 'item' => $product->name, + 'quantity' => rand(1, 5), + 'total_price' => $product->selling_price * rand(1, 5), + ]); + } + } + } +} diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.php new file mode 100644 index 0000000..3db94eb --- /dev/null +++ b/database/seeders/UserSeeder.php @@ -0,0 +1,59 @@ + 'admin@warkopcakimin.com', + ], [ + 'name' => 'Admin Warkop', + 'password' => Hash::make('password'), + 'role' => 'admin', + 'branch' => null, + ]); + + // Employee Cabang 1 + User::firstOrCreate([ + 'email' => 'karyawan1@warkopcakimin.com', + ], [ + 'name' => 'Karyawan 1', + 'password' => Hash::make('password'), + 'role' => 'karyawan', + 'branch' => 'Cabang 1', + ]); + + + // Employee Cabang 2 + User::firstOrCreate([ + 'email' => 'karyawan2@warkopcakimin.com', + ], [ + 'name' => 'Karyawan 2', + 'password' => Hash::make('password'), + 'role' => 'karyawan', + 'branch' => 'Cabang 2', + ]); + + // Employee Cabang 3 + User::firstOrCreate([ + 'email' => 'karyawan3@warkopcakimin.com', + ], [ + 'name' => 'Karyawan 3', + 'password' => Hash::make('password'), + 'role' => 'karyawan', + 'branch' => 'Cabang 3', + ]); + } +} diff --git a/deploy-infinityfree.md b/deploy-infinityfree.md new file mode 100644 index 0000000..e7f513b --- /dev/null +++ b/deploy-infinityfree.md @@ -0,0 +1,20 @@ +Deploy ke InfinityFree +===================== + +1. Upload seluruh isi project ke folder public_html (atau subdomain yang Anda buat). +2. Pastikan folder public di atas menjadi root document. Jika host Anda memakai public_html, pindahkan isi folder public ke public_html, atau atur document root ke folder public. +3. Buat file .env sesuai setting database InfinityFree. +4. Pastikan folder storage dan bootstrap/cache writable. +5. Jalankan perintah berikut di komputer lokal sebelum upload: + - composer install --optimize-autoloader --no-dev + - php artisan config:cache + - php artisan route:cache + - php artisan view:cache +6. Untuk database, gunakan MySQL dari InfinityFree dan isi konfigurasi berikut di .env: + DB_CONNECTION=mysql + DB_HOST=sql123.infinityfree.com + DB_PORT=3306 + DB_DATABASE=your_database + DB_USERNAME=your_username + DB_PASSWORD=your_password +7. Setelah upload, buka URL aplikasi Anda. diff --git a/diagrams/class-diagram.drawio b/diagrams/class-diagram.drawio new file mode 100644 index 0000000..2722a7f --- /dev/null +++ b/diagrams/class-diagram.drawio @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + diff --git a/diagrams/use-cases.md b/diagrams/use-cases.md new file mode 100644 index 0000000..e1b0880 --- /dev/null +++ b/diagrams/use-cases.md @@ -0,0 +1,68 @@ +**Karyawan — Use Cases** + +- **Aktor:** `User` (role = employee / karyawan). +- **Prasyarat:** Terdaftar dan terautentikasi (login). + +- **Melihat Stok Produk:** + - **Goal:** Menampilkan ketersediaan barang di `Stock` per `Branch`. + - **Alur Utama:** 1) Buka menu Stok → 2) Pilih `Branch` → 3) Sistem menampilkan daftar `Product` dengan `quantity`. + - **Alur Alternatif:** Filter/cari berdasarkan `Product` atau kategori; jika kosong tampilkan "Tidak ditemukan". + - **Postcondition:** Karyawan melihat stok terkini. + +- **Mencatat Penjualan:** + - **Goal:** Mencatat transaksi di `Sale` dan mengurangi `Stock`. + - **Alur Utama:** 1) Pilih `Product` → 2) Masukkan `quantity` → 3) Sistem validasi stok → 4) Simpan `Sale` → 5) Update `Stock`. + - **Alur Alternatif:** Jika stok tidak cukup → tampilkan pesan dan batalkan atau arahkan ke proses pembelian (`Purchase`). + - **Postcondition:** `Sale` tersimpan, `Stock` berkurang sesuai. + +- **Mencatat Pembelian (opsional sesuai izin):** + - **Goal:** Menyimpan transaksi di `Purchase` dan menambah `Stock`. + - **Alur:** 1) Input supplier/item/quantity/total → 2) Simpan `Purchase` → 3) Update `Stock`. + - **Postcondition:** `Purchase` tersimpan, stok bertambah. + +- **Melihat Laporan Dasar:** + - **Goal:** Melihat ringkasan penjualan harian dan status stok untuk tugas operasional. + - **Alur:** Buka menu Laporan → pilih rentang waktu/branch → tampilkan ringkasan sederhana. + + +**Admin — Use Cases** + +- **Aktor:** `User` (role = admin). +- **Prasyarat:** Terdaftar, terautentikasi, memiliki hak admin. + +- **Kelola Produk (CRUD):** + - **Goal:** Menambah, mengubah, dan menghapus data `Product`. + - **Alur Utama:** 1) Buka menu Produk → 2) Tambah/Ubah/Hapus produk → 3) Sistem validasi dan simpan. + - **Postcondition:** Data `Product` ter-update di database. + +- **Kelola Stok & Penyesuaian:** + - **Goal:** Koreksi `Stock` per `Branch` (penyesuaian fisik atau koreksi kesalahan). + - **Alur:** 1) Pilih `Branch` → 2) Pilih `Product` → 3) Ubah `quantity` → 4) Simpan (simpan audit log jika perlu). + - **Postcondition:** Stok tersinkronisasi. + +- **Kelola Cabang (`Branch`):** + - **Goal:** CRUD `Branch`. + - **Alur:** 1) Buka menu Cabang → 2) Tambah/Ubah/Hapus → 3) Simpan. + +- **Kelola Karyawan / User:** + - **Goal:** Menambah/mengedit/menonaktifkan akun `User`, assign `role` dan `branch`. + - **Alur:** 1) Akses manajemen pengguna → 2) Kelola hak akses/branch → 3) Simpan. + +- **Kelola Biaya Operasional (`OperationalCost`):** + - **Goal:** Input dan review biaya operasional per `Branch`. + - **Alur:** 1) Input label/amount/date/branch → 2) Simpan → 3) Tampilkan rekap biaya. + +- **Laporan & Rekonsiliasi:** + - **Goal:** Menghasilkan laporan gabungan (`Purchase`, `Sale`, `OperationalCost`, `Stock`) per `Branch`/periode dan ekspor (CSV/PDF). + - **Alur:** 1) Pilih tipe laporan dan rentang waktu → 2) Sistem kumpulkan data → 3) Tampilkan / ekspor. + + +**Catatan Integrasi dengan Model Anda** + +- Relasi penting: `User` berasosiasi dengan `Branch`; `Product` terkait `Stock`, `Purchase`, dan `Sale`. +- Transaksi `Sale` dan `Purchase` wajib melakukan perubahan konsisten pada `Stock`. +- Admin sebaiknya memiliki audit log untuk operasi sensitif (penyesuaian stok, hapus produk, perubahan user). + +Jika Anda ingin, saya dapat: +- Mengkonversi ini menjadi diagram Use Case (draw.io) dan menyimpan di folder `diagrams/`. +- Menambahkan contoh API endpoint atau skenario test untuk tiap use case. diff --git a/fix_purchases.php b/fix_purchases.php new file mode 100644 index 0000000..ee68daa --- /dev/null +++ b/fix_purchases.php @@ -0,0 +1,75 @@ +make(Illuminate\Contracts\Console\Kernel::class); +$kernel->bootstrap(); + +// Fix purchase records +echo "Fixing purchase records...\n"; + +// Purchase ID 8 - Gula +$purchase8 = \App\Models\Purchase::find(8); +$purchase8->type = 'raw_material'; +$purchase8->raw_material_id = 2; // Gula +$purchase8->save(); +echo "Purchase 8 (Gula) updated to raw_material type\n"; + +// Purchase ID 9 - Es Batu +$purchase9 = \App\Models\Purchase::find(9); +$purchase9->type = 'raw_material'; +$purchase9->raw_material_id = 3; // Es Batu +$purchase9->save(); +echo "Purchase 9 (Es Batu) updated to raw_material type\n"; + +// Purchase ID 10 - Teh Kotak +$purchase10 = \App\Models\Purchase::find(10); +$purchase10->type = 'raw_material'; +$purchase10->raw_material_id = 4; // Teh Kotak +$purchase10->save(); +echo "Purchase 10 (Teh Kotak) updated to raw_material type\n"; + +// Update raw material stocks +echo "\nUpdating raw material stocks...\n"; + +// Gula: add 1000 Gram +$gula = \App\Models\RawMaterial::find(2); +$gula->stock_quantity += 1000; +$gula->save(); +echo "Gula stock updated: " . $gula->stock_quantity . " Gram\n"; + +// Es Batu: add 1000 Gram +$esBatu = \App\Models\RawMaterial::find(3); +$esBatu->stock_quantity += 1000; +$esBatu->save(); +echo "Es Batu stock updated: " . $esBatu->stock_quantity . " Gram\n"; + +// Teh Kotak: add 10 Pcs +$tehKotak = \App\Models\RawMaterial::find(4); +$tehKotak->stock_quantity += 10; +$tehKotak->save(); +echo "Teh Kotak stock updated: " . $tehKotak->stock_quantity . " Pcs\n"; + +// Recalculate es teh stock +echo "\nRecalculating es teh stock...\n"; +$product = \App\Models\Product::with('recipes.rawMaterial')->find(7); +$minStock = null; +foreach ($product->recipes as $recipe) { + $rm = $recipe->rawMaterial; + if (!$rm || $recipe->quantity_needed <= 0) continue; + $possibleAmount = floor($rm->stock_quantity / $recipe->quantity_needed); + echo $rm->name . ": " . $rm->stock_quantity . " / " . $recipe->quantity_needed . " = " . $possibleAmount . " porsi\n"; + if ($minStock === null || $possibleAmount < $minStock) { + $minStock = $possibleAmount; + } +} + +if ($minStock !== null && $minStock >= 0) { + $stock = \App\Models\Stock::where('product_id', 7)->where('branch', 'Cabang 2')->first(); + $stock->quantity = $minStock; + $stock->save(); + echo "es teh stock updated: " . $minStock . " Pcs\n"; +} else { + echo "Stock could not be calculated\n"; +} + +echo "\nDone!\n"; diff --git a/index.php b/index.php new file mode 100644 index 0000000..1fc608f --- /dev/null +++ b/index.php @@ -0,0 +1,3 @@ + 'These credentials do not match our records.', + 'password' => 'The provided password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + +]; diff --git a/lang/en/pagination.php b/lang/en/pagination.php new file mode 100644 index 0000000..d481411 --- /dev/null +++ b/lang/en/pagination.php @@ -0,0 +1,19 @@ + '« Previous', + 'next' => 'Next »', + +]; diff --git a/lang/en/passwords.php b/lang/en/passwords.php new file mode 100644 index 0000000..2345a56 --- /dev/null +++ b/lang/en/passwords.php @@ -0,0 +1,22 @@ + 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", + +]; diff --git a/lang/en/validation.php b/lang/en/validation.php new file mode 100644 index 0000000..70407c9 --- /dev/null +++ b/lang/en/validation.php @@ -0,0 +1,184 @@ + 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'decimal' => 'The :attribute must have :decimal decimal places.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'missing' => 'The :attribute field must be missing.', + 'missing_if' => 'The :attribute field must be missing when :other is :value.', + 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', + 'missing_with' => 'The :attribute field must be missing when :values is present.', + 'missing_with_all' => 'The :attribute field must be missing when :values are present.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'The :attribute must be a valid URL.', + 'ulid' => 'The :attribute must be a valid ULID.', + 'uuid' => 'The :attribute must be a valid UUID.', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +]; diff --git a/latest_laravel_log_tail.txt b/latest_laravel_log_tail.txt new file mode 100644 index 0000000..b1cf148 --- /dev/null +++ b/latest_laravel_log_tail.txt @@ -0,0 +1,120 @@ +#22 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(661): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) +#23 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Seeder.php(184): Illuminate\\Container\\Container->call(Array, Array) +#24 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Seeder.php(193): Illuminate\\Database\\Seeder->Illuminate\\Database\\{closure}() +#25 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Seeds\\SeedCommand.php(81): Illuminate\\Database\\Seeder->__invoke() +#26 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Concerns\\GuardsAttributes.php(155): Illuminate\\Database\\Console\\Seeds\\SeedCommand->Illuminate\\Database\\Console\\Seeds\\{closure}() +#27 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Seeds\\SeedCommand.php(82): Illuminate\\Database\\Eloquent\\Model::unguarded(Object(Closure)) +#28 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(36): Illuminate\\Database\\Console\\Seeds\\SeedCommand->handle() +#29 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() +#30 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure)) +#31 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure)) +#32 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(661): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) +#33 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(183): Illuminate\\Container\\Container->call(Array) +#34 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Command\\Command.php(291): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) +#35 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(153): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) +#36 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(1014): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#37 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(301): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Seeds\\SeedCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#38 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(171): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#39 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(102): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#40 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(155): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#41 C:\\xampp\\htdocs\\akuntansi-sia\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#42 {main} +"} +[2026-07-17 21:06:22] local.ERROR: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`wkp_imin`.`users`, CONSTRAINT `users_branch_foreign` FOREIGN KEY (`branch`) REFERENCES `branches` (`name`) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert into `users` (`email`, `name`, `password`, `role`, `branch`, `updated_at`, `created_at`) values (karyawan1@warkopcakimin.com, Karyawan 1, $2y$10$zR6cDCS0UbLK9tQ8H4IgducgETi5SDkMZDhiLhJC37FAvja0Kqqay, karyawan, Cabang 1, 2026-07-17 21:06:22, 2026-07-17 21:06:22)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`wkp_imin`.`users`, CONSTRAINT `users_branch_foreign` FOREIGN KEY (`branch`) REFERENCES `branches` (`name`) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert into `users` (`email`, `name`, `password`, `role`, `branch`, `updated_at`, `created_at`) values (karyawan1@warkopcakimin.com, Karyawan 1, $2y$10$zR6cDCS0UbLK9tQ8H4IgducgETi5SDkMZDhiLhJC37FAvja0Kqqay, karyawan, Cabang 1, 2026-07-17 21:06:22, 2026-07-17 21:06:22)) at C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:760) +[stacktrace] +#0 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(720): Illuminate\\Database\\Connection->runQueryCallback('insert into `us...', Array, Object(Closure)) +#1 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(546): Illuminate\\Database\\Connection->run('insert into `us...', Array, Object(Closure)) +#2 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(498): Illuminate\\Database\\Connection->statement('insert into `us...', Array) +#3 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Processors\\Processor.php(32): Illuminate\\Database\\Connection->insert('insert into `us...', Array) +#4 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3322): Illuminate\\Database\\Query\\Processors\\Processor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `us...', Array, 'id') +#5 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(1869): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id') +#6 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(1330): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array) +#7 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(1295): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array) +#8 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder)) +#9 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(566): Illuminate\\Database\\Eloquent\\Model->save() +#10 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\helpers.php(319): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\User)) +#11 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(567): tap(Object(App\\Models\\User), Object(Closure)) +#12 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->firstOrCreate(Array, Array) +#13 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2330): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'firstOrCreate', Array) +#14 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2342): Illuminate\\Database\\Eloquent\\Model->__call('firstOrCreate', Array) +#15 C:\\xampp\\htdocs\\akuntansi-sia\\database\\seeders\\UserSeeder.php(35): Illuminate\\Database\\Eloquent\\Model::__callStatic('firstOrCreate', Array) +#16 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(36): Database\\Seeders\\UserSeeder->run() +#17 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() +#18 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure)) +#19 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure)) +#20 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(661): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) +#21 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Seeder.php(184): Illuminate\\Container\\Container->call(Array, Array) +#22 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Seeder.php(193): Illuminate\\Database\\Seeder->Illuminate\\Database\\{closure}() +#23 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Seeds\\SeedCommand.php(81): Illuminate\\Database\\Seeder->__invoke() +#24 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Concerns\\GuardsAttributes.php(155): Illuminate\\Database\\Console\\Seeds\\SeedCommand->Illuminate\\Database\\Console\\Seeds\\{closure}() +#25 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Seeds\\SeedCommand.php(82): Illuminate\\Database\\Eloquent\\Model::unguarded(Object(Closure)) +#26 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(36): Illuminate\\Database\\Console\\Seeds\\SeedCommand->handle() +#27 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() +#28 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure)) +#29 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure)) +#30 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(661): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) +#31 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(183): Illuminate\\Container\\Container->call(Array) +#32 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Command\\Command.php(291): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) +#33 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(153): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) +#34 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(1014): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#35 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(301): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Seeds\\SeedCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#36 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(171): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#37 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(102): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#38 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(155): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#39 C:\\xampp\\htdocs\\akuntansi-sia\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#40 {main} + +[previous exception] [object] (PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`wkp_imin`.`users`, CONSTRAINT `users_branch_foreign` FOREIGN KEY (`branch`) REFERENCES `branches` (`name`) ON DELETE CASCADE ON UPDATE CASCADE) at C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:545) +[stacktrace] +#0 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(545): PDOStatement->execute() +#1 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(753): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('insert into `us...', Array) +#2 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(720): Illuminate\\Database\\Connection->runQueryCallback('insert into `us...', Array, Object(Closure)) +#3 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(546): Illuminate\\Database\\Connection->run('insert into `us...', Array, Object(Closure)) +#4 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(498): Illuminate\\Database\\Connection->statement('insert into `us...', Array) +#5 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Processors\\Processor.php(32): Illuminate\\Database\\Connection->insert('insert into `us...', Array) +#6 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3322): Illuminate\\Database\\Query\\Processors\\Processor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `us...', Array, 'id') +#7 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(1869): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id') +#8 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(1330): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array) +#9 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(1295): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array) +#10 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder)) +#11 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(566): Illuminate\\Database\\Eloquent\\Model->save() +#12 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\helpers.php(319): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\User)) +#13 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(567): tap(Object(App\\Models\\User), Object(Closure)) +#14 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->firstOrCreate(Array, Array) +#15 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2330): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'firstOrCreate', Array) +#16 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2342): Illuminate\\Database\\Eloquent\\Model->__call('firstOrCreate', Array) +#17 C:\\xampp\\htdocs\\akuntansi-sia\\database\\seeders\\UserSeeder.php(35): Illuminate\\Database\\Eloquent\\Model::__callStatic('firstOrCreate', Array) +#18 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(36): Database\\Seeders\\UserSeeder->run() +#19 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() +#20 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure)) +#21 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure)) +#22 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(661): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) +#23 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Seeder.php(184): Illuminate\\Container\\Container->call(Array, Array) +#24 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Seeder.php(193): Illuminate\\Database\\Seeder->Illuminate\\Database\\{closure}() +#25 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Seeds\\SeedCommand.php(81): Illuminate\\Database\\Seeder->__invoke() +#26 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Concerns\\GuardsAttributes.php(155): Illuminate\\Database\\Console\\Seeds\\SeedCommand->Illuminate\\Database\\Console\\Seeds\\{closure}() +#27 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Seeds\\SeedCommand.php(82): Illuminate\\Database\\Eloquent\\Model::unguarded(Object(Closure)) +#28 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(36): Illuminate\\Database\\Console\\Seeds\\SeedCommand->handle() +#29 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() +#30 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure)) +#31 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure)) +#32 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(661): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) +#33 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(183): Illuminate\\Container\\Container->call(Array) +#34 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Command\\Command.php(291): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) +#35 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(153): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) +#36 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(1014): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#37 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(301): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Seeds\\SeedCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#38 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\symfony\\console\\Application.php(171): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#39 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(102): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#40 C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(155): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#41 C:\\xampp\\htdocs\\akuntansi-sia\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) +#42 {main} +"} +[2026-07-17 21:11:26] local.INFO: Purchase store - Request data: {"type":"raw_material","raw_material_id":"new","new_raw_material_name":"KOPI BUBUK","new_raw_material_unit":"Gram","item":"KOPI BUBUK","quantity":"20000 Gram"} +[2026-07-17 21:13:11] local.INFO: Purchase store - Request data: {"type":"raw_material","raw_material_id":"new","new_raw_material_name":"gula","new_raw_material_unit":"Gram","item":"gula","quantity":"23000 Gram"} +[2026-07-17 21:26:29] testing.INFO: Purchase store - Request data: {"type":"raw_material","raw_material_id":1,"new_raw_material_name":null,"new_raw_material_unit":null,"item":"Beli Tepung","quantity":"1000 gram"} +[2026-07-18 09:04:58] local.INFO: Purchase store - Request data: {"type":"raw_material","raw_material_id":"new","new_raw_material_name":"Gula","new_raw_material_unit":"Gram","item":"Gula","quantity":"10000 Gram"} +[2026-07-18 09:19:12] local.ERROR: Maximum execution time of 60 seconds exceeded {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 60 seconds exceeded at C:\\xampp\\htdocs\\akuntansi-sia\\vendor\\egulias\\email-validator\\src\\EmailLexer.php:11) +[stacktrace] +#0 {main} +"} diff --git a/package.json b/package.json new file mode 100644 index 0000000..0b32ba6 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "private": true, + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.7.2", + "lodash": "^4.17.19", + "postcss": "^8.1.14", + "vite": "^4.0.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..370faf0 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,31 @@ + + + + + ./tests/Unit + + + ./tests/Feature + + + + + ./app + + + + + + + + + + + + + + diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/css/landing.css b/public/css/landing.css new file mode 100644 index 0000000..f27c2c6 --- /dev/null +++ b/public/css/landing.css @@ -0,0 +1,13 @@ +/* landing.css custom style for landing page */ +.hero { + background: linear-gradient(90deg, rgba(255, 184, 32, 0.368) 30%, rgba(185, 182, 10, 0.385) 60%), url('../img/warkopcakimin.webp'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + color: #fff; + padding: 80px 0; +} +.feature-icon { + font-size: 2.5rem; + color: #007bff; +} diff --git a/public/css/login.css b/public/css/login.css new file mode 100644 index 0000000..4bdc3ce --- /dev/null +++ b/public/css/login.css @@ -0,0 +1,25 @@ +/* login.css custom style for login admin page */ +body { + background: #f8f9fa; +} +.login-container { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; +} +.login-box { + background: #fff; + padding: 2rem 2.5rem; + border-radius: 1rem; + box-shadow: 0 0 20px rgba(0,0,0,0.08); + width: 100%; + max-width: 400px; +} +.login-logo { + font-size: 2rem; + font-weight: bold; + color: #007bff; + margin-bottom: 1.5rem; + text-align: center; +} diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/images/1770805804.jpg b/public/images/1770805804.jpg new file mode 100644 index 0000000..ed89e39 Binary files /dev/null and b/public/images/1770805804.jpg differ diff --git a/public/images/1770822573.jpg b/public/images/1770822573.jpg new file mode 100644 index 0000000..ed89e39 Binary files /dev/null and b/public/images/1770822573.jpg differ diff --git a/public/images/produk/.gitkeep b/public/images/produk/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/images/produk/1784220227_kopi.jpg b/public/images/produk/1784220227_kopi.jpg new file mode 100644 index 0000000..26a388e Binary files /dev/null and b/public/images/produk/1784220227_kopi.jpg differ diff --git a/public/img/ES teh.webp b/public/img/ES teh.webp new file mode 100644 index 0000000..35b0d30 Binary files /dev/null and b/public/img/ES teh.webp differ diff --git a/public/img/README.txt b/public/img/README.txt new file mode 100644 index 0000000..e69de29 diff --git a/public/img/indomie.jpg b/public/img/indomie.jpg new file mode 100644 index 0000000..cb63ad3 Binary files /dev/null and b/public/img/indomie.jpg differ diff --git a/public/img/kopi.jpg b/public/img/kopi.jpg new file mode 100644 index 0000000..26a388e Binary files /dev/null and b/public/img/kopi.jpg differ diff --git a/public/img/warkopcakimin.webp b/public/img/warkopcakimin.webp new file mode 100644 index 0000000..c27e219 Binary files /dev/null and b/public/img/warkopcakimin.webp differ diff --git a/public/img/warkopcakimin2.webp b/public/img/warkopcakimin2.webp new file mode 100644 index 0000000..c7c334b Binary files /dev/null and b/public/img/warkopcakimin2.webp differ diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..1d69f3a --- /dev/null +++ b/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/public/php.ini b/public/php.ini new file mode 100644 index 0000000..a1cd593 --- /dev/null +++ b/public/php.ini @@ -0,0 +1,4 @@ +upload_max_filesize = 64M +post_max_size = 64M +memory_limit = 256M +max_execution_time = 300 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/recalculate_stock.php b/recalculate_stock.php new file mode 100644 index 0000000..cc54fff --- /dev/null +++ b/recalculate_stock.php @@ -0,0 +1,45 @@ +make(Illuminate\Contracts\Console\Kernel::class); +$kernel->bootstrap(); + +use App\Models\ProductRecipe; +use App\Models\Stock; +use App\Models\Branch; + +$branches = Branch::all(); +$recipes = ProductRecipe::with(['product.recipes.rawMaterial'])->get(); +$done = []; + +foreach ($recipes as $r) { + $pid = $r->product_id; + if (in_array($pid, $done)) continue; + $done[] = $pid; + + $product = $r->product; + if (!$product) continue; + + $minStock = null; + foreach ($product->recipes as $pr) { + $rm = $pr->rawMaterial; + if (!$rm || $pr->quantity_needed <= 0) continue; + $possible = floor($rm->stock_quantity / $pr->quantity_needed); + if ($minStock === null || $possible < $minStock) { + $minStock = $possible; + } + } + + if ($minStock !== null) { + foreach ($branches as $b) { + $stock = Stock::firstOrCreate( + ['product_id' => $product->id, 'branch' => $b->name], + ['quantity' => 0, 'unit' => 'Pcs'] + ); + $stock->quantity = $minStock; + $stock->save(); + } + echo "✅ {$product->name}: stok = {$minStock} Pcs\n"; + } +} +echo "Selesai!\n"; diff --git a/resources/css/app.css b/resources/css/app.css new file mode 100644 index 0000000..e69de29 diff --git a/resources/diagrams/README.md b/resources/diagrams/README.md new file mode 100644 index 0000000..9cf738f --- /dev/null +++ b/resources/diagrams/README.md @@ -0,0 +1,23 @@ +ERD diagram files and import instructions + +If draw.io shows "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded", try these steps: + +1) Use the Draw.io import dialog (preferred): +- Open https://app.diagrams.net or Draw.io Desktop +- File → Import From → Device (or File → Open From → Device) +- Select `resources/diagrams/erd_fixed.drawio` + +2) If Import still errors, re-save file as UTF-8 without BOM using PowerShell (Windows): +```powershell +Get-Content .\resources\diagrams\erd.drawio | Set-Content -Encoding UTF8 .\resources\diagrams\erd_fixed_local.drawio +``` + +3) Alternative: open XML editor inside draw.io and paste the XML content directly: +- Arrange → Insert → Advanced → XML... +- Paste the contents of `erd_fixed.drawio` and click Apply. + +4) If you still get an error, try the Draw.io Desktop app — it handles encodings more robustly. + +Files in this folder: +- `erd.drawio` (original) +- `erd_fixed.drawio` (re-encoded version) diff --git a/resources/diagrams/erd.drawio b/resources/diagrams/erd.drawio new file mode 100644 index 0000000..e520302 --- /dev/null +++ b/resources/diagrams/erd.drawio @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + diff --git a/resources/diagrams/erd_fixed.drawio b/resources/diagrams/erd_fixed.drawio new file mode 100644 index 0000000..0d14db4 --- /dev/null +++ b/resources/diagrams/erd_fixed.drawio @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..e59d6a0 --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1 @@ +import './bootstrap'; diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js new file mode 100644 index 0000000..a5b3edd --- /dev/null +++ b/resources/js/bootstrap.js @@ -0,0 +1,35 @@ +import _ from 'lodash'; +window._ = _; + +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + +import axios from 'axios'; +window.axios = axios; + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +/** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + +// import Echo from 'laravel-echo'; + +// import Pusher from 'pusher-js'; +// window.Pusher = Pusher; + +// window.Echo = new Echo({ +// broadcaster: 'pusher', +// key: import.meta.env.VITE_PUSHER_APP_KEY, +// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', +// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, +// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, +// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, +// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', +// enabledTransports: ['ws', 'wss'], +// }); diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php new file mode 100644 index 0000000..de9eb4d --- /dev/null +++ b/resources/views/admin/dashboard.blade.php @@ -0,0 +1,291 @@ +@extends('layouts.admin') + +@section('content') + + +
+ +
+

Dashboard Admin

+

Monitoring seluruh cabang Warkop Cak Imin

+
{{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }}
+
+ + +
+
+
+
+ Total Omzet Semua Cabang +
+
+
Rp {{ number_format($totalOmzetAll, 0, ',', '.') }}
+
Hari ini
+
+
+
+
+
+ Total Laba Bersih +
+
+
Rp {{ number_format($netProfit, 0, ',', '.') }}
+
Hari ini
+
+
+
+
+
+ Jumlah Cabang +
+
+
{{ $branchCount }}
+
Cabang aktif
+
+
+
+
+
+ Rata-rata per Cabang +
+
+
Rp {{ number_format($averageSales, 0, ',', '.') }}
+
Hari ini
+
+
+
+ + +
+ +
+
+
+

Grafik Penjualan Mingguan

+
+
+
+ +
+
+
+
+ + +
+
+
+

Omzet per Cabang

+
+
+
+ +
+
+
+
+
+ + +
+
+
Akses Cepat Monitoring
+
+ +
+
+ + + +@endsection diff --git a/resources/views/admin_create.blade.php b/resources/views/admin_create.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/arus_kas.blade.php b/resources/views/arus_kas.blade.php new file mode 100644 index 0000000..0a89b8a --- /dev/null +++ b/resources/views/arus_kas.blade.php @@ -0,0 +1,67 @@ +@extends('layouts.admin') + +@section('content') +
+
+

Laporan Arus Kas

+
+
+ +
+
+
+
+

Arus Kas (Cash Flow)

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Arus Kas dari Aktivitas Operasi
Penerimaan dari Pelanggan (Penjualan)+ Rp{{ number_format($data['penerimaan_penjualan'], 0, ',', '.') }}
Pembayaran kepada Pemasok (Pembelian Persediaan)- Rp{{ number_format($data['pengeluaran_pembelian'], 0, ',', '.') }}
Pembayaran Beban Operasional- Rp{{ number_format($data['pengeluaran_operasional'], 0, ',', '.') }}
Kas Bersih dari Aktivitas OperasiRp{{ number_format($data['arus_kas_operasi'], 0, ',', '.') }}
Arus Kas dari Aktivitas Pendanaan
Modal dari Stok+ Rp{{ number_format($data['setoran_modal'], 0, ',', '.') }}
Kas Bersih dari Aktivitas PendanaanRp{{ number_format($data['arus_kas_pendanaan'], 0, ',', '.') }}
Kenaikan (Penurunan) Kas BersihRp{{ number_format($data['kenaikan_kas'], 0, ',', '.') }}
Saldo Kas AkhirRp{{ number_format($data['saldo_kas'], 0, ',', '.') }}
+
+
+
+
+
+@endsection diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php new file mode 100644 index 0000000..6ba70a2 --- /dev/null +++ b/resources/views/auth/forgot-password.blade.php @@ -0,0 +1,142 @@ + + + + + + Lupa Password - Warkop Cak Imin + + + + + + + + + diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php new file mode 100644 index 0000000..6ebb9b5 --- /dev/null +++ b/resources/views/auth/reset-password.blade.php @@ -0,0 +1,156 @@ + + + + + + Reset Password - Warkop Cak Imin + + + + + + + + + diff --git a/resources/views/biaya_operasional.blade.php b/resources/views/biaya_operasional.blade.php new file mode 100644 index 0000000..12420ab --- /dev/null +++ b/resources/views/biaya_operasional.blade.php @@ -0,0 +1,328 @@ +@extends('layouts.admin') + +@section('title', 'Manajemen Biaya Operasional') + +@section('content') + + +
+ + + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + Reset + +
+
+
+
+
+ + + @if(session('success')) + + @endif + + @if($errors->any()) + + @endif + + +
+
+
Riwayat Biaya Operasional
+
+
+ + + + + + + + + + + + @forelse($costs as $cost) + + + + + + + + @empty + + + + @endforelse + +
TanggalCabangKeterangan BiayaNominalAksi
{{ \Carbon\Carbon::parse($cost->date)->format('d M Y') }}{{ $cost->branch }}{{ $cost->label }}-Rp{{ number_format($cost->amount, 0, ',', '.') }} + +
+ @csrf + @method('DELETE') + +
+
+ +

Belum ada data biaya operasional yang tercatat.

+
+
+
+
+ + + + +@push('scripts') + +@endpush +@endsection diff --git a/resources/views/branches.blade.php b/resources/views/branches.blade.php new file mode 100644 index 0000000..887abc2 --- /dev/null +++ b/resources/views/branches.blade.php @@ -0,0 +1,126 @@ +@extends('layouts.admin') + +@section('title', 'Kelola Cabang') + +@section('content') + + +
+
+
+
+

Kelola Cabang

+

Tambahkan atau hapus cabang yang tersedia untuk sistem.

+
+ +
+
+ + @if(session('success')) + + @endif + +
+
+
+ + + + + + + + + + @foreach($branches as $branch) + + + + + + @endforeach + +
#Nama CabangAksi
{{ $branch->id }}{{ $branch->name }} +
+ @csrf + @method('DELETE') + +
+
+
+
+
+
+ + +@endsection \ No newline at end of file diff --git a/resources/views/buku_besar.blade.php b/resources/views/buku_besar.blade.php new file mode 100644 index 0000000..4644a01 --- /dev/null +++ b/resources/views/buku_besar.blade.php @@ -0,0 +1,76 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') +
+
+

Buku Besar

+
+
+ +
+
+ + @if(auth()->user()->role == 'admin') +
+
+ +
+
+
+
+
Buku Besar Gabungan.
+ @include('partials.table_buku_besar', ['ledger' => $ledgerTotal]) +
+ @foreach($branches as $index => $branch) +
+ @include('partials.table_buku_besar', ['ledger' => $branchLedgers[$branch] ?? []]) +
+ @endforeach +
+
+
+ @else + +
+
+ Data Buku Besar - {{ session('branch') }} +
+
+ + + + + + + + + + + + + + + + + + + + + +
TanggalAkunKeteranganDebetKreditSaldo
2025-09-01KasPenjualanRp20.000-Rp20.000
+
+
+ @endif + +
+
+@endsection diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php new file mode 100644 index 0000000..a693019 --- /dev/null +++ b/resources/views/dashboard.blade.php @@ -0,0 +1,208 @@ +@extends('layouts.app') + +@section('content') + + +
+ +
+

Dashboard Karyawan

+
+
Lokasi: {{ session('branch') ?? 'Cabang 1' }}
+
+ + {{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }} +
+
+
+ + +
+ +
+
+
+
+ Total Penjualan Hari Ini +
+
+
+
+
Rp {{ number_format($totalSalesToday, 0, ',', '.') }}
+
{{ $transactionCountToday }} transaksi hari ini
+
+
+
+ + +
+
+
+
+ Total Pengeluaran Hari Ini +
+
+
+
+
Rp {{ number_format($totalPurchasesToday, 0, ',', '.') }}
+
Operasional & supplies
+
+
+
+ + +
+
+
+
+ Total Transaksi Penjualan +
+
+
+
+ +
{{ $transactionCountToday }}
+
Transaksi Selesai
+
+
+
+
+ + +
+
+
+
+
Aktivitas Terbaru - {{ session('branch') }}
+
+
+
+ + + + + + + + + + + @forelse($activities as $act) + + + + + + + @empty + + + + @endforelse + +
WaktuTipeDeskripsiNominal
{{ \Carbon\Carbon::parse($act->created_at)->format('H:i') }}{{ $act->type }}{{ $act->item }} ({{ $act->quantity }})Rp {{ number_format($act->total_price, 0, ',', '.') }}
Belum ada aktivitas hari ini.
+
+
+ +
+
+
+
+ + +@endsection diff --git a/resources/views/jurnal_umum.blade.php b/resources/views/jurnal_umum.blade.php new file mode 100644 index 0000000..7ff81a4 --- /dev/null +++ b/resources/views/jurnal_umum.blade.php @@ -0,0 +1,81 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') +
+
+

Jurnal Umum

+
+
+ +
+
+ + @if(auth()->user()->role == 'admin') +
+
+ +
+
+
+
+
Jurnal Gabungan.
+ @include('partials.table_jurnal_umum', ['journal' => $journalTotal]) +
+ @foreach($branches as $index => $branch) +
+ @include('partials.table_jurnal_umum', ['journal' => $branchJournals[$branch] ?? []]) +
+ @endforeach +
+
+
+ @else + +
+
+ Data Jurnal Umum - {{ session('branch') }} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
TanggalKeteranganReffDebetKredit
2025-09-01Kas pada Penjualan101Rp20.000-
2025-09-01Penjualan401-Rp20.000
+
+
+ @endif + +
+
+@endsection diff --git a/resources/views/landing.blade.php b/resources/views/landing.blade.php new file mode 100644 index 0000000..26136bc --- /dev/null +++ b/resources/views/landing.blade.php @@ -0,0 +1,299 @@ + + + + + + Warkop Cak Imin - Inspirasi Dalam Secangkir Kopi + + + + + + + + + + +
+
+

Warkop Cak Imin

+

Tempatnya para pengopi mencari inspirasi dan kreasi dengan harga yang murah dan higienis.

+ +
+
+ + +
+
+
+
+ Warkop Cak Imin +
+
+

Tentang Kami

+

Warkop Cak Imin adalah tempat favorit bagi masyarakat untuk berkumpul, berdiskusi, dan menikmati suasana santai sejak tahun 2020. Berlokasi di pusat keramaian, kami berkomitmen menyajikan rasa asli dengan pelayanan sepenuh hati.

+
    +
  • Jl. Barito No.114, Nganjuk
  • +
  • 0857-3786-9669
  • +
  • @warkop_cakimin
  • +
  • 07.00 - 03.00 WIB
  • +
+
+
+
+
+ + + + + +
+
+

Kunjungi Kami

+
+
+ +
+
+

Jl. Barito No.114, Kalianyar, Begadung, Kec. Nganjuk, Kabupaten Nganjuk

+
+
+ + +
+
+ +

© 2026 Warkop Cak Imin. Crafted with ❤️ for Kopi Lovers.

+ +
+
+ + + + + + diff --git a/resources/views/laporan.blade.php b/resources/views/laporan.blade.php new file mode 100644 index 0000000..6c945de --- /dev/null +++ b/resources/views/laporan.blade.php @@ -0,0 +1,147 @@ + + + + + + + Laporan Keuangan - Warkop Cak Imin + + + + +
+ + + + + +
+
+
+
+
+

Laporan Keuangan

+
+
+
+
+
+
+
+
+ Data Laporan Keuangan +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
TanggalPemasukanPengeluaranSaldo
2025-09-08Rp100.000Rp30.000Rp70.000
2025-09-07Rp80.000Rp20.000Rp60.000
+
+
+
+
+
+
+
+ + + + + diff --git a/resources/views/laporan_kas_bank.blade.php b/resources/views/laporan_kas_bank.blade.php new file mode 100644 index 0000000..c6c5b4f --- /dev/null +++ b/resources/views/laporan_kas_bank.blade.php @@ -0,0 +1,76 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') +
+
+

Laporan Kas & Bank

+
+
+ +
+
+ + @if(auth()->user()->role == 'admin') +
+
+ +
+
+
+
+
Mutasi Kas & Bank Gabungan.
+ @include('partials.table_kas_bank', ['report' => $reportTotal]) +
+ @foreach($branches as $index => $branch) +
+ @include('partials.table_kas_bank', ['report' => $branchReports[$branch] ?? []]) +
+ @endforeach +
+
+
+ @else + +
+
+ Data Kas & Bank - {{ session('branch') }} +
+
+ + + + + + + + + + + + + + + + + + + + + +
TanggalKeteranganJenis AkunMasukKeluarSaldo
2025-09-01Penjualan TunaiKas KecilRp500.000-Rp500.000
+
+
+ @endif + +
+
+@endsection diff --git a/resources/views/laporan_pembelian.blade.php b/resources/views/laporan_pembelian.blade.php new file mode 100644 index 0000000..0a5dfc3 --- /dev/null +++ b/resources/views/laporan_pembelian.blade.php @@ -0,0 +1,146 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') + + +
+ +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + Reset + +
+ @if(auth()->user()->role == 'admin') + + Export PDF + + @endif +
+
+
+
+
+ + +
+
+ + @if(session('success')) + + @endif + + @if($errors->any()) + + @endif + + @if(auth()->user()->role == 'admin') +
+
+
Data Gabungan Semua Cabang
+
+
+ @include('partials.table_pembelian', ['purchases' => $purchases, 'readonly' => true, 'showBranch' => true]) +
+
+ @else + +
+
+
Daftar Transaksi Pembelian - {{ Auth::user()->branch }}
+
+
+ @include('partials.table_pembelian', ['purchases' => $purchases]) +
+
+ @endif +
+
+ +@endsection diff --git a/resources/views/laporan_penjualan.blade.php b/resources/views/laporan_penjualan.blade.php new file mode 100644 index 0000000..c68c1d9 --- /dev/null +++ b/resources/views/laporan_penjualan.blade.php @@ -0,0 +1,170 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') + + +
+ +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + Reset + +
+ @if(auth()->user()->role == 'admin') + + Export PDF + + @endif +
+
+
+
+
+ + +
+
+ + @if(session('success')) + + @endif + + @if($errors->any()) + + @endif + + @if(auth()->user()->role == 'admin') +
+
+
Data Gabungan Semua Cabang
+
+
+ @include('partials.table_penjualan', ['sales' => $sales, 'readonly' => true, 'showBranch' => true]) +
+
+ @else + +
+
+
Daftar Transaksi Penjualan - {{ Auth::user()->branch }}
+
+
+ @include('partials.table_penjualan', ['sales' => $sales]) +
+
+ @endif +
+
+ +@endsection diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php new file mode 100644 index 0000000..9269697 --- /dev/null +++ b/resources/views/layouts/admin.blade.php @@ -0,0 +1,161 @@ + + + + + + @yield('title', 'Admin - SIA Warkop Cak Imin') + + + + + + + + + + + + + + +@stack('scripts') + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..fc8bb8b --- /dev/null +++ b/resources/views/layouts/app.blade.php @@ -0,0 +1,114 @@ + + + + + + @yield('title', 'SIA Warkop Cak Imin') + + + + + +
+ + + + + +
+ @yield('content') +
+
+ + + +@stack('scripts') + + diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php new file mode 100644 index 0000000..85e9ba3 --- /dev/null +++ b/resources/views/login.blade.php @@ -0,0 +1,163 @@ + + + + + + Login - Warkop Cak Imin + + + + + + + + + diff --git a/resources/views/manajemen_akun.blade.php b/resources/views/manajemen_akun.blade.php new file mode 100644 index 0000000..9261b96 --- /dev/null +++ b/resources/views/manajemen_akun.blade.php @@ -0,0 +1,311 @@ +@extends('layouts.admin') + +@section('title', 'Manajemen Akun') + +@section('content') + + +
+
+
+

Manajemen Akun

+
+
+ Kelola Cabang + +
+
+ + @if(session('success')) + + @endif + + @if(session('error')) + + @endif + + @if($errors->any()) + + @endif + +
+
+
Daftar Akun Karyawan
+
+
+
+ + + + + + + + + + + + + @foreach($accounts as $account) + + + + + + + + + @endforeach + +
#Nama LengkapUsername / EmailRoleCabangAksi
{{ $loop->iteration }}{{ $account->name }}{{ $account->email }} + {{ strtoupper($account->role) }} + {{ $account->branch ?? 'Tidak ditetapkan' }} + @if($account->role !== 'admin') + +
+ @csrf + @method('DELETE') + +
+ @else + Tidak dapat dihapus + @endif +
+
+
+
+
+ + + + +@push('scripts') + +@endpush +@endsection diff --git a/resources/views/manajemen_bahan_baku.blade.php b/resources/views/manajemen_bahan_baku.blade.php new file mode 100644 index 0000000..a3be2d5 --- /dev/null +++ b/resources/views/manajemen_bahan_baku.blade.php @@ -0,0 +1,176 @@ +@extends('layouts.admin') + +@section('content') +
+
+

Manajemen Bahan Baku

+ @if(auth()->user()->role !== 'admin') + + @endif +
+ + @if(session('success')) + + @endif + + @if($errors->any()) + + @endif + +
+
+
Daftar Bahan Baku & Stok Saat Ini
+
+
+
+ + + + + + + + + + + + @foreach($rawMaterials as $rm) + + + + + + + + + @if(auth()->user()->role !== 'admin') + + + @endif + @endforeach + @if($rawMaterials->isEmpty()) + + + + @endif + +
#Nama Bahan BakuSatuanTotal StokAksi
{{ $loop->iteration }}{{ $rm->name }}{{ $rm->unit }} + {{ number_format($rm->stock_quantity, 0, ',', '.') }} {{ $rm->unit }} + + @if(auth()->user()->role !== 'admin') + + + + @else + View Only + @endif +
Belum ada bahan baku yang terdaftar.
+
+
+
+
+ +@if(auth()->user()->role !== 'admin') + + +@endif +@endsection diff --git a/resources/views/neraca_keuangan.blade.php b/resources/views/neraca_keuangan.blade.php new file mode 100644 index 0000000..7626ca1 --- /dev/null +++ b/resources/views/neraca_keuangan.blade.php @@ -0,0 +1,85 @@ +@extends('layouts.admin') + +@section('content') +
+
+

Neraca Keuangan

+
+
+ +
+
+
+ +
+
+
+

Aktiva (Aset)

+
+
+ + + + + + + + + + + + + + + +
KasRp{{ number_format($data['kas'], 0, ',', '.') }}
Persediaan Barang DagangRp{{ number_format($data['persediaan'], 0, ',', '.') }}
Total AktivaRp{{ number_format($data['total_aset'], 0, ',', '.') }}
+
+
+
+ + +
+
+
+

Pasiva (Kewajiban & Ekuitas)

+
+
+ + + + + + + + + + + + + + + +
Hutang UsahaRp{{ number_format($data['hutang'], 0, ',', '.') }}
Modal AkhirRp{{ number_format($data['modal_akhir'], 0, ',', '.') }}
Total PasivaRp{{ number_format($data['total_pasiva'], 0, ',', '.') }}
+
+
+
+
+ +
+
+ @if($data['total_aset'] == $data['total_pasiva']) +
+
Neraca Balance!
+ Aktiva (Rp{{ number_format($data['total_aset'], 0, ',', '.') }}) = Pasiva (Rp{{ number_format($data['total_pasiva'], 0, ',', '.') }}) +
+ @else +
+
Neraca Tidak Balance!
+ Selisih: Rp{{ number_format(abs($data['total_aset'] - $data['total_pasiva']), 0, ',', '.') }} +
+ @endif +
+
+
+
+@endsection diff --git a/resources/views/neraca_laba_rugi.blade.php b/resources/views/neraca_laba_rugi.blade.php new file mode 100644 index 0000000..5faf533 --- /dev/null +++ b/resources/views/neraca_laba_rugi.blade.php @@ -0,0 +1,98 @@ +@extends('layouts.admin') + +@section('content') + +
+
+

Neraca Laba Rugi

+
+
+ +
+
+ +
+
+
+
+
+ + +
+
+ + +
+
+
+ + + Reset + + + Export PDF + +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
Laporan Keuangan Gabungan.
+
+ @include('partials.table_neraca', ['data' => $dataTotal, 'type' => 'total']) +
+
+ @foreach($branches as $index => $branch) +
+
+ @include('partials.table_neraca', ['data' => $branchData[$branch] ?? [], 'type' => 'branch']) +
+
+ @endforeach +
+
+
+ +
+
+@endsection diff --git a/resources/views/partials/table_buku_besar.blade.php b/resources/views/partials/table_buku_besar.blade.php new file mode 100644 index 0000000..dbd2756 --- /dev/null +++ b/resources/views/partials/table_buku_besar.blade.php @@ -0,0 +1,36 @@ +
+ + + + + + + + + + + + + @forelse($ledger as $entry) + + + + + + + + + @empty + + + + @endforelse + +
TanggalAkunKeteranganDebetKreditSaldo
{{ $entry['date'] }}{{ $entry['account'] }}{{ $entry['desc'] }} + {{ $entry['debit'] > 0 ? 'Rp' . number_format($entry['debit'], 0, ',', '.') : '-' }} + + {{ $entry['credit'] > 0 ? 'Rp' . number_format($entry['credit'], 0, ',', '.') : '-' }} + + Rp{{ number_format($entry['balance'], 0, ',', '.') }} +
Belum ada data transaksi.
+
diff --git a/resources/views/partials/table_jurnal_umum.blade.php b/resources/views/partials/table_jurnal_umum.blade.php new file mode 100644 index 0000000..47f6b2f --- /dev/null +++ b/resources/views/partials/table_jurnal_umum.blade.php @@ -0,0 +1,34 @@ +
+ + + + + + + + + + + + @forelse($journal as $entry) + + + + + + + + @empty + + + + @endforelse + +
TanggalKeteranganReffDebetKredit
{{ $entry['date'] }} + {{ $entry['desc'] }} + {{ $entry['reff'] }} + {{ $entry['debit'] > 0 ? 'Rp' . number_format($entry['debit'], 0, ',', '.') : '-' }} + + {{ $entry['credit'] > 0 ? 'Rp' . number_format($entry['credit'], 0, ',', '.') : '-' }} +
Belum ada data jurnal.
+
diff --git a/resources/views/partials/table_kas_bank.blade.php b/resources/views/partials/table_kas_bank.blade.php new file mode 100644 index 0000000..caab8dc --- /dev/null +++ b/resources/views/partials/table_kas_bank.blade.php @@ -0,0 +1,36 @@ +
+ + + + + + + + + + + + + @forelse($report as $entry) + + + + + + + + + @empty + + + + @endforelse + +
TanggalKeteranganJenis AkunMasukKeluarSaldo
{{ $entry['date'] }}{{ $entry['desc'] }}{{ $entry['type'] }} + {{ $entry['masuk'] > 0 ? 'Rp' . number_format($entry['masuk'], 0, ',', '.') : '-' }} + + {{ $entry['keluar'] > 0 ? 'Rp' . number_format($entry['keluar'], 0, ',', '.') : '-' }} + + Rp{{ number_format($entry['balance'], 0, ',', '.') }} +
Belum ada data mutasi.
+
diff --git a/resources/views/partials/table_neraca.blade.php b/resources/views/partials/table_neraca.blade.php new file mode 100644 index 0000000..c40786c --- /dev/null +++ b/resources/views/partials/table_neraca.blade.php @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + @forelse($data['operational'] as $op) + + + + + @empty + + + + @endforelse + + + + + + + + + +
PendapatanJumlah (Rp)
Total Penjualan (Pendapatan)+ Rp{{ number_format($data['penjualan'], 0, ',', '.') }}
Total Pembelian (Harga Pokok)- Rp{{ number_format($data['pembelian'], 0, ',', '.') }}
Laba KotorRp{{ number_format($data['laba_kotor'], 0, ',', '.') }}
Beban Biaya
{{ $op->label }} @if(isset($type) && $type == 'total') ({{ $op->branch }}) @endif- Rp{{ number_format($op->amount, 0, ',', '.') }}
Belum ada pengeluaran operasional yang dicatat.
Total Beban Biaya- Rp{{ number_format($data['total_operational'], 0, ',', '.') }}
Laba BersihRp{{ number_format($data['laba_bersih'], 0, ',', '.') }}
diff --git a/resources/views/partials/table_pembelian.blade.php b/resources/views/partials/table_pembelian.blade.php new file mode 100644 index 0000000..2c82121 --- /dev/null +++ b/resources/views/partials/table_pembelian.blade.php @@ -0,0 +1,109 @@ +
+ + + + + + + + + @if(isset($showBranch) && $showBranch) + + @endif + @if(!isset($readonly) || !$readonly) + + @endif + + + + + @php + $currentDate = ''; + $dailyTotal = 0; + @endphp + @forelse($purchases as $index => $p) + @php + // Set locale to Indonesian for day and month names + \Carbon\Carbon::setLocale('id'); + $date = \Carbon\Carbon::parse($p->date); + $dateString = $date->translatedFormat('l, d F Y'); + $dailyTotal += $p->total_price; + @endphp + @if($dateString !== $currentDate) + @php $currentDate = $dateString; @endphp + @php + $colspan = 5; + if(isset($showBranch) && $showBranch) $colspan++; + if(!isset($readonly) || !$readonly) $colspan++; + @endphp + + + + @endif + + + + + + + @if(isset($showBranch) && $showBranch) + + @endif + @if(!isset($readonly) || !$readonly) + + @endif + + @php + // Determine if the next item has a different date, or if this is the last item + $nextDateString = ''; + if(isset($purchases[$index + 1])) { + $nextDate = \Carbon\Carbon::parse($purchases[$index + 1]->date); + $nextDateString = $nextDate->translatedFormat('l, d F Y'); + } + @endphp + @if($loop->last || $nextDateString !== $currentDate) + @php + $subtotalColspan = 3; + if(isset($showBranch) && $showBranch) $subtotalColspan++; + @endphp + + + + @if(!isset($readonly) || !$readonly) + + @endif + + @php $dailyTotal = 0; @endphp + @endif + @empty + + + + @endforelse + + @if(!$purchases->isEmpty()) + + @php + $totalKeseluruhan = $purchases->sum('total_price'); + $footerColspan = 3; + if(isset($showBranch) && $showBranch) $footerColspan++; + @endphp + + + + @if(!isset($readonly) || !$readonly) + + @endif + + + @endif +
#BarangJumlahTotalCabangAksi
{{ $dateString }}
{{ $index + 1 }}{{ $p->item }}{{ $p->quantity }}Rp{{ number_format($p->total_price, 0, ',', '.') }}{{ $p->branch }} +
+ @csrf + @method('DELETE') + +
+
Total Pengeluaran {{ $currentDate }}:Rp{{ number_format($dailyTotal, 0, ',', '.') }}
Belum ada data transaksi.
TOTAL KESELURUHAN:Rp{{ number_format($totalKeseluruhan, 0, ',', '.') }}
+
diff --git a/resources/views/partials/table_penjualan.blade.php b/resources/views/partials/table_penjualan.blade.php new file mode 100644 index 0000000..6977f12 --- /dev/null +++ b/resources/views/partials/table_penjualan.blade.php @@ -0,0 +1,107 @@ +
+ + + + + + + + + @if(isset($showBranch) && $showBranch) + + @endif + @if(!isset($readonly) || !$readonly) + + @endif + + + + @php + $currentDate = ''; + $dailyTotal = 0; + @endphp + @forelse($sales as $index => $s) + @php + \Carbon\Carbon::setLocale('id'); + $date = \Carbon\Carbon::parse($s->date); + $dateString = $date->translatedFormat('l, d F Y'); + $dailyTotal += $s->total_price; + @endphp + @if($dateString !== $currentDate) + @php $currentDate = $dateString; @endphp + @php + $colspan = 5; + if(isset($showBranch) && $showBranch) $colspan++; + if(!isset($readonly) || !$readonly) $colspan++; + @endphp + + + + @endif + + + + + + + @if(isset($showBranch) && $showBranch) + + @endif + @if(!isset($readonly) || !$readonly) + + @endif + + @php + // Determine if the next item has a different date, or if this is the last item + $nextDateString = ''; + if(isset($sales[$index + 1])) { + $nextDate = \Carbon\Carbon::parse($sales[$index + 1]->date); + $nextDateString = $nextDate->translatedFormat('l, d F Y'); + } + @endphp + @if($loop->last || $nextDateString !== $currentDate) + @php + $subtotalColspan = 4; + if(isset($showBranch) && $showBranch) $subtotalColspan++; + @endphp + + + + @if(!isset($readonly) || !$readonly) + + @endif + + @php $dailyTotal = 0; @endphp + @endif + @empty + + + + @endforelse + + @if(!$sales->isEmpty()) + + @php + $totalKeseluruhan = $sales->sum('total_price'); + $footerColspan = 4; + if(isset($showBranch) && $showBranch) $footerColspan++; + @endphp + + + + @if(!isset($readonly) || !$readonly) + + @endif + + + @endif +
#Tanggal / HariBarangJumlahTotalCabangAksi
{{ $dateString }}
{{ $index + 1 }}{{ $s->product ? $s->product->name : $s->item }}{{ $s->quantity }}Rp{{ number_format($s->total_price, 0, ',', '.') }}{{ $s->branch }} +
+ @csrf + @method('DELETE') + +
+
Total Pendapatan {{ $currentDate }}:Rp{{ number_format($dailyTotal, 0, ',', '.') }}
Belum ada data transaksi.
TOTAL KESELURUHAN:Rp{{ number_format($totalKeseluruhan, 0, ',', '.') }}
+
diff --git a/resources/views/partials/table_produk.blade.php b/resources/views/partials/table_produk.blade.php new file mode 100644 index 0000000..3985bcd --- /dev/null +++ b/resources/views/partials/table_produk.blade.php @@ -0,0 +1,77 @@ +
+ + + + + + @if(isset($readonly) && $readonly) + + @endif + + + + + + @if(!isset($readonly) || !$readonly) + + @endif + + + + @foreach($products as $index => $p) + + + + @if(isset($readonly) && $readonly) + + @endif + + + + + + @if(!isset($readonly) || !$readonly) + + @endif + + @endforeach + @if($products->isEmpty()) + + + + @endif + +
#Nama ProdukCabangKategoriStokHarga BeliHarga JualGambarAksi
{{ $loop->iteration }} +
{{ $p->name }}
+
+ {{ $p->branch }} + + @php + $categoryClass = 'badge-' . $p->category; + $icon = $p->category == 'makanan' ? '🍛' : ($p->category == 'minuman' ? '☕' : '🍿'); + @endphp + + {{ $icon }} {{ ucfirst($p->category) }} + + + {{ $p->stocks->first()->quantity ?? 0 }} Pcs + Rp{{ number_format($p->purchase_price, 0, ',', '.') }}Rp{{ number_format($p->selling_price, 0, ',', '.') }} + {{ $p->name }} + +
+ + + +
+
Belum ada menu yang terdaftar.
+
diff --git a/resources/views/partials/table_stok.blade.php b/resources/views/partials/table_stok.blade.php new file mode 100644 index 0000000..68f0ce0 --- /dev/null +++ b/resources/views/partials/table_stok.blade.php @@ -0,0 +1,76 @@ +
+ + + + + + + + + + + + + @if(isset($data) && $data == 'c1') + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @elseif(isset($data) && $data == 'c2') + + + + + + + + + + + + + @else + + + + + + + + + + + + @endif + +
Tanggal / HariNama BarangStok AwalMasukKeluarStok Akhir
Senin, 01 September 2025
Biji Kopi10 Kg5 Kg2 Kg13 Kg
Mie Indomie20 Bungkus10 Bungkus5 Bungkus25 Bungkus
Selasa, 02 September 2025
Biji Kopi13 Kg0 Kg3 Kg10 Kg
Senin, 01 September 2025
Biji Kopi10 Kg5 Kg2 Kg13 Kg
Senin, 01 September 2025
Biji Kopi10 Kg5 Kg2 Kg13 Kg
+
diff --git a/resources/views/perubahan_modal.blade.php b/resources/views/perubahan_modal.blade.php new file mode 100644 index 0000000..185dc39 --- /dev/null +++ b/resources/views/perubahan_modal.blade.php @@ -0,0 +1,43 @@ +@extends('layouts.admin') + +@section('content') +
+
+

Laporan Perubahan Modal

+
+
+ +
+
+
+
+

Perubahan Modal (Ekuitas)

+
+
+
+ + + + + + + + + + + + + + + + + + + +
Modal AwalRp{{ number_format($data['modal_awal'], 0, ',', '.') }}
Laba Bersih Harian Berjalan{{ $data['laba_bersih'] < 0 ? '-' : '+' }} Rp{{ number_format(abs($data['laba_bersih']), 0, ',', '.') }}
Prive (Penarikan Modal){{ $data['prive'] < 0 ? '+' : '-' }} Rp{{ number_format(abs($data['prive']), 0, ',', '.') }}
Modal AkhirRp{{ number_format($data['modal_akhir'], 0, ',', '.') }}
+
+
+
+
+
+@endsection diff --git a/resources/views/produk.blade.php b/resources/views/produk.blade.php new file mode 100644 index 0000000..b82dfcb --- /dev/null +++ b/resources/views/produk.blade.php @@ -0,0 +1,656 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') + +
+ + + + + @if(session('success')) + + @endif + + + @if($errors->has('duplicate_error')) + + @endif + + @if(auth()->user()->role == 'admin') + + +
+
+ @endif + + + +
+
+ @if(auth()->user()->role == 'admin') +
+
+
+ + Stok Produk: + {{ $selectedBranch }} +
+
+ @if(request('search')) + + @endif + + +
+
+
+
+ @include('partials.table_produk', ['products' => $products, 'readonly' => true, 'selectedBranch' => $selectedBranch]) +
+
+
+ @else + +
+
+
Daftar Katalog Produk - {{ Auth::user()->branch }}
+
+
+
+ @include('partials.table_produk', ['products' => $products]) +
+
+
+ @endif +
+
+ + @if(auth()->user()->role == 'admin') +
+ + +
+
+
Daftar Bahan Baku & Stok Saat Ini
+ @if(auth()->user()->role !== 'admin') + + @endif +
+ + @if(auth()->user()->role == 'admin') +
+
+
+ + + + +
+
+
+ @endif + +
+
+
+ + + + + + @if(auth()->user()->role == 'admin') + + @endif + + + @if(auth()->user()->role !== 'admin') + + @endif + + + + @foreach($rawMaterials as $rm) + + + + @if(auth()->user()->role == 'admin') + + @endif + + + @if(auth()->user()->role !== 'admin') + + @endif + + + @if(auth()->user()->role !== 'admin') + + + @endif + @endforeach + @if(isset($rawMaterials) && $rawMaterials->isEmpty()) + + + + @endif + +
#Nama Bahan BakuCabangSatuanTotal StokAksi
{{ $loop->iteration }}{{ $rm->name }}{{ $rm->branch ?? '-' }}{{ $rm->unit }} + {{ number_format($rm->stock_quantity, 0, ',', '.') }} {{ $rm->unit }} + + + + +
Belum ada bahan baku yang terdaftar.
+
+
+
+ + @if(auth()->user()->role !== 'admin') + + + @endif + +
+
+ @endif +
+ + + +@push('scripts') + +@endpush + + +@endsection diff --git a/resources/views/produk_form.blade.php b/resources/views/produk_form.blade.php new file mode 100644 index 0000000..b0d6a27 --- /dev/null +++ b/resources/views/produk_form.blade.php @@ -0,0 +1,54 @@ +@extends('layouts.app') +@section('content') +
+
+
+
+
+ {{ isset($product) ? 'Edit Menu' : 'Tambah Menu Baru' }} +
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ @csrf +
+ + +
+
+ + +
+
+ + +
+
+ + + @if(isset($product) && $product->image) + + @endif +
+ + Batal +
+
+
+
+
+
+@endsection diff --git a/resources/views/produk_karyawan.blade.php b/resources/views/produk_karyawan.blade.php new file mode 100644 index 0000000..97e2ac5 --- /dev/null +++ b/resources/views/produk_karyawan.blade.php @@ -0,0 +1,436 @@ +@extends('layouts.app') + +@section('content') +
+
+
+

Manajemen Produk - {{ $branch }}

+
+
+ @if(session('success')) +
{{ session('success') }}
+ @endif + @if($errors->any()) +
{{ $errors->first() }}
+ @endif + + + + +
+ +
+
+
Daftar Produk - {{ $branch }}
+ +
+
+ + + + + + + + + + + + + @foreach($products as $p) + @php $s = $p->stocks->first(); @endphp + + + + + + + + + @endforeach + +
GambarNamaKategoriHarga JualStok ({{ $branch }})Aksi
{{ $p->name }}{{ ucfirst($p->category) }}Rp {{ number_format($p->selling_price ?? 0,0,',','.') }}{{ $s->quantity ?? 0 }} {{ $s->unit ?? '' }} +
+ +
+ @csrf + @method('DELETE') + +
+
+
+
+
+ + +
+
+
Daftar Bahan Baku & Stok Saat Ini
+ Bahan baku otomatis ditambahkan saat mencatat pembelian di Laporan Pembelian +
+ +
+
+
+ + + + + + + + + + + @foreach($rawMaterials as $rm) + + + + + + + @endforeach + @if($rawMaterials->isEmpty()) + + + + @endif + +
#Nama Bahan BakuSatuanTotal Stok
{{ $loop->iteration }}{{ $rm->name }}{{ $rm->unit }} + {{ number_format($rm->stock_quantity, 0, ',', '.') }} {{ $rm->unit }} +
Belum ada bahan baku yang terdaftar.
+
+
+
+
+
+
+
+
+ + + + + + + +@push('scripts') + +@endpush +@endsection diff --git a/resources/views/reports/neraca_laba_rugi_pdf.blade.php b/resources/views/reports/neraca_laba_rugi_pdf.blade.php new file mode 100644 index 0000000..3b67cb4 --- /dev/null +++ b/resources/views/reports/neraca_laba_rugi_pdf.blade.php @@ -0,0 +1,109 @@ + + + + Laporan Neraca Laba Rugi + + + + +
+

Warkop Cak Imin

+

Laporan Neraca Laba Rugi

+
+ + + + + + + + + + + + + + +
Cabang: {{ $branch }}
Periode: + @if($month && $year) + {{ date('F', mktime(0, 0, 0, $month, 1)) }} {{ $year }} + @elseif($year) + Tahun {{ $year }} + @elseif($month) + Bulan {{ date('F', mktime(0, 0, 0, $month, 1)) }} (Semua Tahun) + @else + Semua Waktu (All Time) + @endif +
Tanggal Cetak: {{ date('d M Y H:i') }}
+ + + + + + + + + + + + + + + + + + + + + + + + + + @forelse($operational as $op) + + + + + @empty + + + + @endforelse + + + + + + + + + + + +
KeteranganJumlah (Rp)
Total Penjualan (Pendapatan)+ {{ number_format($penjualan, 0, ',', '.') }}
Total Pembelian (Harga Pokok / HPP)- {{ number_format($pembelian, 0, ',', '.') }}
Laba Kotor{{ number_format($laba_kotor, 0, ',', '.') }}
Biaya Operasional:
- {{ $op->label }} @if($branch == 'Total Gabungan') ({{ $op->branch }}) @endif- {{ number_format($op->amount, 0, ',', '.') }}
Tidak ada biaya operasional tercatat pada periode ini.
Total Biaya Operasional- {{ number_format($total_operational, 0, ',', '.') }}
Laba Bersih{{ number_format($laba_bersih, 0, ',', '.') }}
+ +
+

Disahkan Oleh,

+


+

{{ auth()->user()->name ?? 'Admin' }}

+
+ + + diff --git a/resources/views/reports/purchase_pdf.blade.php b/resources/views/reports/purchase_pdf.blade.php new file mode 100644 index 0000000..992906a --- /dev/null +++ b/resources/views/reports/purchase_pdf.blade.php @@ -0,0 +1,64 @@ + + + + Laporan Pembelian + + + +
+

Laporan Pembelian

+

Warkop Cak Imin - Akuntansi SIA

+

Tanggal Cetak: {{ date('d/m/Y H:i') }}

+
+ + @foreach($branches as $branch) + @php + $branchPurchases = $purchases->where('branch', $branch->name); + @endphp + @if($branchPurchases->count() > 0) +

Cabang: {{ $branch->name }}

+ + + + + + + + + + + + @foreach($branchPurchases as $index => $purchase) + + + + + + + + @endforeach + + + + + + + +
NoTanggalItem/ProdukJumlahTotal Harga
{{ $index + 1 }}{{ \Carbon\Carbon::parse($purchase->date)->format('d/m/Y') }}{{ $purchase->item }}{{ $purchase->quantity }}Rp {{ number_format($purchase->total_price, 0, ',', '.') }}
TotalRp {{ number_format($branchPurchases->sum('total_price'), 0, ',', '.') }}
+ @endif + @endforeach + + + + diff --git a/resources/views/reports/sale_pdf.blade.php b/resources/views/reports/sale_pdf.blade.php new file mode 100644 index 0000000..b0da950 --- /dev/null +++ b/resources/views/reports/sale_pdf.blade.php @@ -0,0 +1,62 @@ + + + + Laporan Penjualan + + + +
+

Laporan Penjualan

+

Warkop Cak Imin - Akuntansi SIA

+

Tanggal Cetak: {{ date('d/m/Y H:i') }}

+
+ + @foreach($branches as $branch) + @php + $branchSales = $sales->where('branch', $branch->name); + @endphp + @if($branchSales->count() > 0) +

Cabang: {{ $branch->name }}

+ + + + + + + + + + + + @foreach($branchSales as $index => $sale) + + + + + + + + @endforeach + + + + + + + +
NoTanggalProdukJumlahTotal Harga
{{ $index + 1 }}{{ \Carbon\Carbon::parse($sale->date)->format('d/m/Y') }}{{ $sale->item }}{{ $sale->quantity }}Rp {{ number_format($sale->total_price, 0, ',', '.') }}
TotalRp {{ number_format($branchSales->sum('total_price'), 0, ',', '.') }}
+ @endif + @endforeach + + + + diff --git a/resources/views/test-email.blade.php b/resources/views/test-email.blade.php new file mode 100644 index 0000000..016ac59 --- /dev/null +++ b/resources/views/test-email.blade.php @@ -0,0 +1,186 @@ + + + + + + Test Pengiriman Email - SIA + + + + +
+

Kirim Email Uji Coba

+

Platform Akuntansi Terintegrasi

+ + @if(session('success')) +
+ {{ session('success') }} +
+ @endif + + @if($errors->any()) +
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf +
+ + +
+ +
+ + ← Kembali ke Halaman Utama +
+ + diff --git a/resources/views/transaksi.blade.php b/resources/views/transaksi.blade.php new file mode 100644 index 0000000..5f5c0e5 --- /dev/null +++ b/resources/views/transaksi.blade.php @@ -0,0 +1,153 @@ + + + + + + + Transaksi - Warkop Cak Imin + + + + +
+ + + + + +
+
+
+
+
+

Data Transaksi

+
+
+
+
+
+
+
+
+ Data Transaksi +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
TanggalMenuJumlahTotal
2025-09-08Kopi Hitam2Rp10.000
2025-09-08Mie Indomie1Rp8.000
+
+
+
+
+
+
+
+ + + + + diff --git a/resources/views/transaksi/pembelian.blade.php b/resources/views/transaksi/pembelian.blade.php new file mode 100644 index 0000000..097ec92 --- /dev/null +++ b/resources/views/transaksi/pembelian.blade.php @@ -0,0 +1,290 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') + + +
+ + +
+
+ @if(session('success')) +
{{ session('success') }}
+ @endif + @if($errors->any()) +
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf +
+
+
+ + +
+
+ @if(false) +
+
+ + +
+
+ @endif +
+ +
+
+
+ + +
+
+ + + +
+ +
+ + +
+ +
+
+
+ +
+ +
+ +
+
+ + +
+
+
+
+ + +
+
+
+ +
+ +
+
+
+
+
+ +@push('scripts') + +@endpush +@endsection diff --git a/resources/views/transaksi/penjualan.blade.php b/resources/views/transaksi/penjualan.blade.php new file mode 100644 index 0000000..bc75b68 --- /dev/null +++ b/resources/views/transaksi/penjualan.blade.php @@ -0,0 +1,209 @@ +@extends(auth()->user()->role == 'admin' ? 'layouts.admin' : 'layouts.app') + +@section('content') + + +
+ + +
+
+ @if(session('success')) +
{{ session('success') }}
+ @endif + @if($errors->any()) +
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf +
+
+
+ + +
+
+ @if(false) +
+
+ + +
+
+ @endif +
+ +
+ +
+ + +
+
+
+ +
+ + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+ +
+
+
+
+
+ +@push('scripts') + +@endpush +@endsection diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php new file mode 100644 index 0000000..9faad4e --- /dev/null +++ b/resources/views/welcome.blade.php @@ -0,0 +1,132 @@ + + + + + + + Laravel + + + + + + + + + + +
+ @if (Route::has('login')) + + @endif + +
+
+ + + + + +
+ +
+
+
+ + +
+
+ Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. +
+
+
+ +
+
+ + +
+ +
+
+ Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. +
+
+
+ +
+
+ + +
+ +
+
+ Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. +
+
+
+ +
+
+ +
Vibrant Ecosystem
+
+ +
+
+ Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. +
+
+
+
+
+ +
+
+
+ + + + + + Shop + + + + + + + + Sponsor + +
+
+ +
+ Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) +
+
+
+
+ + diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..eb6fa48 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,19 @@ +get('/user', function (Request $request) { + return $request->user(); +}); diff --git a/routes/channels.php b/routes/channels.php new file mode 100644 index 0000000..5d451e1 --- /dev/null +++ b/routes/channels.php @@ -0,0 +1,18 @@ +id === (int) $id; +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..e05f4c9 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..5341191 --- /dev/null +++ b/routes/web.php @@ -0,0 +1,209 @@ +groupBy('product_id') + ->orderByDesc('total') + ->limit(3) + ->get(); + + $productIds = $top->pluck('product_id')->toArray(); + $products = Product::whereIn('id', $productIds)->get()->keyBy('id'); + + $topProducts = collect(); + foreach ($productIds as $id) { + $product = $products->get($id); + if ($product) { + $product->total_sold = $top->firstWhere('product_id', $id)->total ?? 0; + $topProducts->push($product); + } + } + + if ($topProducts->count() < 3) { + $needed = 3 - $topProducts->count(); + $excluded = $topProducts->pluck('id')->toArray(); + $extras = Product::whereNotIn('id', $excluded)->limit($needed)->get(); + foreach ($extras as $e) { + $e->total_sold = 0; + $topProducts->push($e); + } + } + + return view('landing', ['topProducts' => $topProducts]); +}); + +// TEST PENGIRIMAN EMAIL ROUTE +Route::get('/test-email', [\App\Http\Controllers\SendEmailController::class, 'showForm']); +Route::post('/test-email', [\App\Http\Controllers\SendEmailController::class, 'sendEmail']); + +// AUTH ROUTES +Route::get('/login', [AuthController::class, 'showLoginForm'])->name('login'); +Route::post('/authenticate', [AuthController::class, 'authenticate']); +Route::post('/logout', [AuthController::class, 'logout'])->name('logout'); + +// PASSWORD RESET ROUTES (Khusus Admin) +Route::get('/forgot-password', [App\Http\Controllers\PasswordResetController::class, 'showLinkRequestForm'])->name('password.request'); +Route::post('/forgot-password', [App\Http\Controllers\PasswordResetController::class, 'sendResetLinkEmail'])->name('password.email'); +Route::get('/reset-password/{token}', [App\Http\Controllers\PasswordResetController::class, 'showResetForm'])->name('password.reset'); +Route::post('/reset-password', [App\Http\Controllers\PasswordResetController::class, 'reset'])->name('password.update'); + +// PROTECTED ROUTES +Route::middleware(['auth'])->group(function () { + + // DASHBOARD REDIRECTION + Route::get('/dashboard', [App\Http\Controllers\DashboardController::class, 'index']); + Route::get('/admin/dashboard', [App\Http\Controllers\DashboardController::class, 'adminIndex']); + + Route::get('/landing', function () { + $top = Sale::select('product_id', DB::raw('SUM(quantity) as total')) + ->groupBy('product_id') + ->orderByDesc('total') + ->limit(3) + ->get(); + + $productIds = $top->pluck('product_id')->toArray(); + $products = Product::whereIn('id', $productIds)->get()->keyBy('id'); + + $topProducts = collect(); + foreach ($productIds as $id) { + $product = $products->get($id); + if ($product) { + $product->total_sold = $top->firstWhere('product_id', $id)->total ?? 0; + $topProducts->push($product); + } + } + + if ($topProducts->count() < 3) { + $needed = 3 - $topProducts->count(); + $excluded = $topProducts->pluck('id')->toArray(); + $extras = Product::whereNotIn('id', $excluded)->limit($needed)->get(); + foreach ($extras as $e) { + $e->total_sold = 0; + $topProducts->push($e); + } + } + + return view('landing', ['topProducts' => $topProducts]); + }); + + Route::get('/transaksi', function () { + return view('transaksi'); + }); + + Route::get('/laporan', function () { + return view('laporan'); + }); + + // PRODUCT - CRUD for karyawan (restricted to their branch) + Route::get('/produk', [ProductController::class, 'index']); + Route::post('/produk', [ProductController::class, 'store']); + Route::put('/produk/{id}', [ProductController::class, 'update']); + Route::delete('/produk/{id}', [ProductController::class, 'destroy']); + + // BAHAN BAKU (RAW MATERIALS) - View only, all management via purchase + Route::get('/bahan-baku', [App\Http\Controllers\RawMaterialController::class, 'index']); + + // ADMIN ONLY ROUTES + Route::middleware(['can:admin-access'])->group(function () { + // Manajemen akun + Route::get('/manajemen-akun', [App\Http\Controllers\AccountController::class, 'index']); + Route::post('/manajemen-akun', [App\Http\Controllers\AccountController::class, 'store']); + Route::put('/manajemen-akun/{id}', [App\Http\Controllers\AccountController::class, 'update']); + Route::delete('/manajemen-akun/{id}', [App\Http\Controllers\AccountController::class, 'destroy']); + + // Manajemen cabang + Route::get('/branches', [App\Http\Controllers\BranchController::class, 'index']); + Route::post('/branches', [App\Http\Controllers\BranchController::class, 'store']); + Route::delete('/branches/{id}', [App\Http\Controllers\BranchController::class, 'destroy']); + + // OPERATIONAL COSTS + Route::get('/biaya-operasional', [App\Http\Controllers\OperationalCostController::class, 'index']); + Route::post('/biaya-operasional', [App\Http\Controllers\OperationalCostController::class, 'store']); + Route::put('/biaya-operasional/{id}', [App\Http\Controllers\OperationalCostController::class, 'update']); + Route::delete('/biaya-operasional/{id}', [App\Http\Controllers\OperationalCostController::class, 'destroy']); + + // BAHAN BAKU (RAW MATERIALS) - Admin view only + Route::get('/bahan-baku', [App\Http\Controllers\RawMaterialController::class, 'index']); + + Route::get('/laporan/neraca-laba-rugi', [App\Http\Controllers\FinancialReportController::class, 'profitAndLoss']); + Route::get('/laporan/neraca-laba-rugi/export-pdf', [App\Http\Controllers\FinancialReportController::class, 'exportProfitAndLossPdf']); + Route::get('/laporan/buku-besar', [App\Http\Controllers\FinancialReportController::class, 'generalLedger']); + Route::get('/laporan/jurnal-umum', [App\Http\Controllers\FinancialReportController::class, 'generalJournal']); + Route::get('/laporan/perubahan-modal', [App\Http\Controllers\FinancialReportController::class, 'equityStatement']); + Route::get('/laporan/neraca-keuangan', [App\Http\Controllers\FinancialReportController::class, 'balanceSheet']); + Route::get('/laporan/arus-kas', [App\Http\Controllers\FinancialReportController::class, 'cashFlow']); + + }); + + // SHARED / GENERAL REPORTS + + Route::get('/laporan/pembelian', [App\Http\Controllers\PurchaseController::class, 'index']); + Route::get('/transaksi/pembelian/create', [App\Http\Controllers\PurchaseController::class, 'create']); + Route::get('/laporan/pembelian/export-pdf', [App\Http\Controllers\PurchaseController::class, 'exportPdf'])->middleware('can:admin-access'); + Route::post('/laporan/pembelian', [App\Http\Controllers\PurchaseController::class, 'store']); + Route::put('/laporan/pembelian/{id}', [App\Http\Controllers\PurchaseController::class, 'update']); + Route::delete('/laporan/pembelian/{id}', [App\Http\Controllers\PurchaseController::class, 'destroy']); + + Route::get('/laporan/penjualan', [App\Http\Controllers\SaleController::class, 'index']); + Route::get('/transaksi/penjualan/create', [App\Http\Controllers\SaleController::class, 'create']); + Route::get('/laporan/penjualan/export-pdf', [App\Http\Controllers\SaleController::class, 'exportPdf'])->middleware('can:admin-access'); + Route::post('/laporan/penjualan', [App\Http\Controllers\SaleController::class, 'store']); + Route::put('/laporan/penjualan/{id}', [App\Http\Controllers\SaleController::class, 'update']); + Route::delete('/laporan/penjualan/{id}', [App\Http\Controllers\SaleController::class, 'destroy']); + + // DEBUG ROUTE - hapus setelah selesai debug + Route::get('/debug-stok', function () { + $rawMaterials = \App\Models\RawMaterial::all()->map(fn($rm) => [ + 'id' => $rm->id, + 'name' => $rm->name, + 'unit' => $rm->unit, + 'stock_quantity' => $rm->stock_quantity, + ]); + + $recipes = \App\Models\ProductRecipe::with(['product', 'rawMaterial'])->get()->map(fn($r) => [ + 'product' => $r->product?->name, + 'raw_material' => $r->rawMaterial?->name, + 'quantity_needed' => $r->quantity_needed, + ]); + + $purchases = \App\Models\Purchase::orderBy('id', 'desc')->limit(10)->get()->map(fn($p) => [ + 'id' => $p->id, + 'item' => $p->item, + 'quantity' => $p->quantity, + 'type' => $p->type, + 'raw_material_id'=> $p->raw_material_id, + 'branch' => $p->branch, + 'date' => $p->date, + ]); + + $stocks = \App\Models\Stock::with('product')->get()->map(fn($s) => [ + 'product' => $s->product?->name, + 'branch' => $s->branch, + 'quantity' => $s->quantity, + ]); + + return response()->json([ + 'raw_materials' => $rawMaterials, + 'product_recipes' => $recipes, + 'recent_purchases' => $purchases, + 'stocks' => $stocks, + ], 200, [], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); + }); +}); + diff --git a/storage/app/.gitignore b/storage/app/.gitignore new file mode 100644 index 0000000..8f4803c --- /dev/null +++ b/storage/app/.gitignore @@ -0,0 +1,3 @@ +* +!public/ +!.gitignore diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore new file mode 100644 index 0000000..05c4471 --- /dev/null +++ b/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore new file mode 100644 index 0000000..01e4a6c --- /dev/null +++ b/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 0000000..547152f --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..1eafba6 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/tests/Feature/IntegrationPurchaseToSaleTest.php b/tests/Feature/IntegrationPurchaseToSaleTest.php new file mode 100644 index 0000000..e587117 --- /dev/null +++ b/tests/Feature/IntegrationPurchaseToSaleTest.php @@ -0,0 +1,265 @@ + 'Cabang 1']); + $admin = User::factory()->create(['role' => 'admin', 'branch' => $branch->name]); + + $product = Product::create([ + 'name' => 'Kopi', + 'category' => 'minuman', + 'purchase_price' => 3000, + 'selling_price' => 5000, + 'branch' => $branch->name, + ]); + + Stock::create([ + 'product_id' => $product->id, + 'branch' => $branch->name, + 'quantity' => 3, + 'unit' => 'Pcs', + ]); + + $response = $this->actingAs($admin)->get('/laporan/perubahan-modal'); + $response->assertOk(); + $response->assertViewHas('data', function ($data) { + return $data['modal_awal'] == 15000 && $data['modal_akhir'] == 15000; + }); + + $balanceResponse = $this->actingAs($admin)->get('/laporan/neraca-keuangan'); + $balanceResponse->assertOk(); + $balanceResponse->assertViewHas('data', function ($data) { + return $data['modal_akhir'] == 15000; + }); + } + + public function test_sale_creates_journal_entries_and_reports_reflect_sales_data() + { + $branch = Branch::create(['name' => 'Cabang 1']); + $admin = User::factory()->create(['role' => 'admin', 'branch' => $branch->name]); + + $product = Product::create([ + 'name' => 'Kopi', + 'category' => 'minuman', + 'purchase_price' => 4000, + 'selling_price' => 5000, + 'branch' => $branch->name, + ]); + + Stock::create([ + 'product_id' => $product->id, + 'branch' => $branch->name, + 'quantity' => 2, + 'unit' => 'Pcs', + ]); + + $response = $this->actingAs($admin)->post('/laporan/penjualan', [ + 'date' => now()->toDateString(), + 'product_id' => $product->id, + 'quantity' => 1, + 'total_price' => 5000, + 'branch' => $branch->name, + ]); + + $response->assertSessionHasNoErrors(); + $this->assertDatabaseCount('journal_entries', 1); + $this->assertDatabaseHas('journal_entries', ['reference_type' => 'Sale']); + + $pnlResponse = $this->actingAs($admin)->get('/laporan/neraca-laba-rugi'); + $pnlResponse->assertOk(); + $pnlResponse->assertViewHas('dataTotal', function ($data) { + return $data['penjualan'] == 5000 && $data['pembelian'] == 4000 && $data['laba_kotor'] == 1000; + }); + + $cashFlowResponse = $this->actingAs($admin)->get('/laporan/arus-kas'); + $cashFlowResponse->assertOk(); + $cashFlowResponse->assertViewHas('data', function ($data) { + return $data['penerimaan_penjualan'] == 5000 && $data['arus_kas_operasi'] == 5000; + }); + } + + public function test_purchase_creates_raw_material_stock_and_product_stock_then_sale_reduces_stocks() + { + // Create branch and user + $branch = Branch::create(['name' => 'Cabang 1']); + $admin = User::factory()->create(['role' => 'admin', 'branch' => $branch->name]); + + // Create raw material + $rm = RawMaterial::create(['name' => 'Tepung', 'unit' => 'gram', 'stock_quantity' => 0, 'branch' => $branch->name]); + + // Create product that uses 100 grams per unit + $product = Product::create([ + 'name' => 'Roti', + 'category' => 'makanan', + 'purchase_price' => 1000, + 'selling_price' => 2000, + 'branch' => $branch->name, + ]); + + ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => $rm->id, + 'quantity_needed' => 100, + ]); + + // Ensure no product stock initially + $this->assertDatabaseMissing('stocks', ['product_id' => $product->id, 'branch' => $branch->name, 'quantity' => 1]); + + // Simulate purchase of 1000 grams (1 kilogram) + $response = $this->actingAs($admin)->post('/laporan/pembelian', [ + 'date' => now()->toDateString(), + 'item' => 'Beli Tepung', + 'quantity' => '1000 gram', + 'total_price' => 100000, + 'type' => 'raw_material', + 'raw_material_id' => $rm->id, + 'branch' => $branch->name, + ]); + + $response->assertSessionHasNoErrors(); + + $rm->refresh(); + // 1000 grams purchased + $this->assertEquals(1000, $rm->stock_quantity); + + // After recalculation, product stock should be floor(1000/100) = 10 + $this->assertDatabaseHas('stocks', ['product_id' => $product->id, 'branch' => $branch->name, 'quantity' => 10]); + + // Simulate sale of 2 units + $response2 = $this->actingAs($admin)->post('/laporan/penjualan', [ + 'date' => now()->toDateString(), + 'product_id' => $product->id, + 'quantity' => 2, + 'total_price' => 4000, + 'branch' => $branch->name, + ]); + + $response2->assertSessionHasNoErrors(); + + $rm->refresh(); + // Raw material should be reduced by 2 * 100 = 200 grams -> remaining 800 + $this->assertEquals(800, $rm->stock_quantity); + + // Product stock recalculated should be floor(800/100) = 8 + $this->assertDatabaseHas('stocks', ['product_id' => $product->id, 'branch' => $branch->name, 'quantity' => 8]); + } + + public function test_purchase_of_liters_keeps_stock_in_liters() + { + $branch = Branch::create(['name' => 'Cabang 1']); + $admin = User::factory()->create(['role' => 'admin', 'branch' => $branch->name]); + + $rm = RawMaterial::create(['name' => 'Air Galon', 'unit' => 'Liter', 'stock_quantity' => 0, 'branch' => $branch->name]); + + $response = $this->actingAs($admin)->post('/laporan/pembelian', [ + 'date' => now()->toDateString(), + 'item' => 'Beli Air Galon', + 'quantity' => '30 Liter', + 'total_price' => 300000, + 'type' => 'raw_material', + 'raw_material_id' => $rm->id, + 'branch' => $branch->name, + ]); + + $response->assertSessionHasNoErrors(); + + $rm->refresh(); + $this->assertEquals(30, $rm->stock_quantity); + } + + public function test_sale_of_es_teh_reduces_tea_and_gallon_raw_materials() + { + $branch = Branch::create(['name' => 'Cabang 1']); + $admin = User::factory()->create(['role' => 'admin', 'branch' => $branch->name]); + + $teh = RawMaterial::create(['name' => 'Teh', 'unit' => 'Gram', 'stock_quantity' => 100, 'branch' => $branch->name]); + $airGalon = RawMaterial::create(['name' => 'Air Galon', 'unit' => 'Liter', 'stock_quantity' => 10, 'branch' => $branch->name]); + + $product = Product::create([ + 'name' => 'Es Teh', + 'category' => 'minuman', + 'purchase_price' => 2000, + 'selling_price' => 5000, + 'branch' => $branch->name, + ]); + + ProductRecipe::create([ 'product_id' => $product->id, 'raw_material_id' => $teh->id, 'quantity_needed' => 10 ]); + ProductRecipe::create([ 'product_id' => $product->id, 'raw_material_id' => $airGalon->id, 'quantity_needed' => 1 ]); + + Stock::create(['product_id' => $product->id, 'branch' => $branch->name, 'quantity' => 10, 'unit' => 'Pcs']); + + $response = $this->actingAs($admin)->post('/laporan/penjualan', [ + 'date' => now()->toDateString(), + 'product_id' => $product->id, + 'quantity' => 1, + 'total_price' => 5000, + 'branch' => $branch->name, + ]); + + $response->assertSessionHasNoErrors(); + + $teh->refresh(); + $airGalon->refresh(); + $this->assertEquals(90, $teh->stock_quantity); + $this->assertEquals(9, $airGalon->stock_quantity); + $this->assertDatabaseHas('stocks', ['product_id' => $product->id, 'branch' => $branch->name, 'quantity' => 9]); + } + + public function test_sale_reduces_product_stock_for_recipe_based_product() + { + $branch = Branch::create(['name' => 'Cabang 1']); + $admin = User::factory()->create(['role' => 'admin', 'branch' => $branch->name]); + + $rm = RawMaterial::create(['name' => 'Teh', 'unit' => 'gram', 'stock_quantity' => 200, 'branch' => $branch->name]); + $product = Product::create([ + 'name' => 'Es Teh', + 'category' => 'minuman', + 'purchase_price' => 2000, + 'selling_price' => 5000, + 'branch' => $branch->name, + ]); + + ProductRecipe::create([ + 'product_id' => $product->id, + 'raw_material_id' => $rm->id, + 'quantity_needed' => 20, + ]); + + Stock::create([ + 'product_id' => $product->id, + 'branch' => $branch->name, + 'quantity' => 10, + 'unit' => 'Pcs', + ]); + + $response = $this->actingAs($admin)->post('/laporan/penjualan', [ + 'date' => now()->toDateString(), + 'product_id' => $product->id, + 'quantity' => 1, + 'total_price' => 5000, + 'branch' => $branch->name, + ]); + + $response->assertSessionHasNoErrors(); + + $rm->refresh(); + $this->assertEquals(180, $rm->stock_quantity); + $this->assertDatabaseHas('stocks', ['product_id' => $product->id, 'branch' => $branch->name, 'quantity' => 9]); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} diff --git a/update_recipe.php b/update_recipe.php new file mode 100644 index 0000000..35189b5 --- /dev/null +++ b/update_recipe.php @@ -0,0 +1,14 @@ +make(Illuminate\Contracts\Console\Kernel::class); +$kernel->bootstrap(); + +$recipe = \App\Models\ProductRecipe::where('product_id', 6)->where('raw_material_id', 4)->first(); +if($recipe) { + $recipe->quantity_needed = 0.5; + $recipe->save(); + echo "Recipe updated: Teh Kotak quantity_needed = 0.5\n"; +} else { + echo "Recipe not found\n"; +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..421b569 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + ], +});