diff --git a/app/Http/Controllers/Bo/AppUserController.php b/app/Http/Controllers/Bo/AppUserController.php
index 56c117c..59de9a6 100644
--- a/app/Http/Controllers/Bo/AppUserController.php
+++ b/app/Http/Controllers/Bo/AppUserController.php
@@ -5,13 +5,26 @@ namespace App\Http\Controllers\Bo;
use App\Http\Controllers\Controller;
use App\Http\Requests\Bo\AppUser\StoreAppUserRequest;
use App\Http\Requests\Bo\AppUser\UpdateAppUserRequest;
+use App\Http\Requests\Bo\ImportRequest;
+use App\Imports\AppUserImport;
use App\Models\AppUser;
+use App\Models\Directory;
+use App\Traits\Controllers\ChangesModelOrder;
+use Illuminate\Database\Eloquent\Collection;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
+use Maatwebsite\Excel\Facades\Excel;
class AppUserController extends Controller
{
+ use ChangesModelOrder;
+
+ /**
+ * @var string
+ */
+ protected $nameDirectory = "";
+
/**
* Display a listing of the resource.
*
@@ -49,7 +62,9 @@ class AppUserController extends Controller
*/
public function create()
{
- return view('bo.pages.app-users.create');
+ $directories = $this->renderDirectories(Directory::where('needAuthorization', 1)->get());
+
+ return view('bo.pages.app-users.create', compact('directories'));
}
/**
@@ -63,11 +78,9 @@ class AppUserController extends Controller
return DB::transaction(function () use ($request) {
$app_user = new AppUser();
$app_user->fill($request->validated());
- if (!isset($request->validated()['status'])) {
- $app_user->status = 0;
- }
if ($app_user->saveOrFail()) {
+ $app_user->directories()->sync(collect($request->directories)->pluck('id'));
return redirect()
->route('bo.app-users.edit', $app_user)
->with('success', trans(
@@ -93,8 +106,12 @@ class AppUserController extends Controller
*/
public function edit(AppUser $app_user)
{
+ $directories = $this->renderDirectories(Directory::where('needAuthorization', 1)->get());
+ $app_user->directories = $this->renderDirectories($app_user->directories);
+
return view('bo.pages.app-users.edit', [
'app_userModel' => $app_user,
+ 'directories' => $directories
]);
}
@@ -107,15 +124,14 @@ class AppUserController extends Controller
*/
public function update(UpdateAppUserRequest $request, AppUser $app_user)
{
+ $app_user->directories()->sync(collect($request->directories)->pluck('id'));
$params = $request->validated();
if (\is_null($params['password'])) {
unset($params['password']);
}
return DB::transaction(function () use ($params, $app_user) {
$app_user->fill($params);
- if (!isset($params['status'])) {
- $app_user->status = !$app_user->status;
- }
+
if ($app_user->saveOrFail()) {
return redirect()
->route('bo.app-users.edit', $app_user)
@@ -153,8 +169,57 @@ class AppUserController extends Controller
return redirect()
->back()
->with('error', trans(
- ':model n\'a pas été supprimée',
+ ':model n\'a pas été supprimé',
['model' => Str::singular(trans('models.classes.app_users'))]
));
}
+
+ /**
+ * Render directories.
+ *
+ * @param Collection $directories
+ * @return array
+ */
+ private function renderDirectories(Collection $directories)
+ {
+ foreach ($directories as $k => $directory) {
+ $this->nameDirectory = "";
+ $directories[$k]->name = $this->renameDirectory($directory);
+ }
+ return $directories;
+ }
+
+ /**
+ * Rename directory.
+ *
+ * @param Directory $directory
+ * @return array
+ */
+ private function renameDirectory(Directory $directory)
+ {
+ if (strlen($this->nameDirectory)) {
+ $this->nameDirectory = $directory->name . " / " . $this->nameDirectory;
+ } else {
+ $this->nameDirectory = $directory->name;
+ }
+ if (isset($directory->parent)) {
+ $this->renameDirectory($directory->parent);
+ }
+ return $this->nameDirectory;
+ }
+
+ /**
+ * Mass import by CSV.
+ * matricule;lastname;firstname;email
+ * default role = user
+ *
+ * @param \App\Http\Requests\Bo\ImportRequest $request
+ * @return \Illuminate\Http\RedirectResponse
+ */
+ public function import(ImportRequest $request)
+ {
+ Excel::import(new AppUserImport(), $request->import, null, \Maatwebsite\Excel\Excel::CSV);
+
+ return redirect()->route('bo.app-users.index')->with('success', 'Import terminé.');
+ }
}
diff --git a/app/Http/Requests/Bo/AppUser/StoreAppUserRequest.php b/app/Http/Requests/Bo/AppUser/StoreAppUserRequest.php
index cfd988b..9d87f0f 100644
--- a/app/Http/Requests/Bo/AppUser/StoreAppUserRequest.php
+++ b/app/Http/Requests/Bo/AppUser/StoreAppUserRequest.php
@@ -18,6 +18,19 @@ class StoreAppUserRequest extends FormRequest
return auth('backend')->check();
}
+ /**
+ * Prepare the data for validation.
+ *
+ * @return void
+ */
+ protected function prepareForValidation()
+ {
+ $this->merge([
+ 'status' => $this->status ? true : false,
+ 'authorizedFolders' => $this->authorizedFolders ? $this->authorizedFolders : [],
+ ]);
+ }
+
/**
* Get the validation rules that apply to the request.
*
@@ -29,13 +42,13 @@ class StoreAppUserRequest extends FormRequest
'lastname' => 'required|min:3|max:255',
'firstname' => 'required|min:3|max:255',
'email' => 'required|min:3|max:255|email:rfc,dns|unique:app_users,email',
- 'password' => 'min:8',
- 'authorizedFolders' => 'json|required',
+ 'password' => 'required|nullable|required_with:password_confirmation|confirmed|min:8|max:255',
+ 'authorizedFolders' => 'present|array',
'role' => [
'required',
new EnumIsValidRule(AppUserRolesEnum::class)
],
- 'status' => 'sometimes'
+ 'status' => 'required|boolean'
];
}
diff --git a/app/Http/Requests/Bo/AppUser/UpdateAppUserRequest.php b/app/Http/Requests/Bo/AppUser/UpdateAppUserRequest.php
index a5912c6..eca872a 100644
--- a/app/Http/Requests/Bo/AppUser/UpdateAppUserRequest.php
+++ b/app/Http/Requests/Bo/AppUser/UpdateAppUserRequest.php
@@ -25,8 +25,7 @@ class UpdateAppUserRequest extends StoreAppUserRequest
'email:rfc,dns',
Rule::unique('app_users', 'email')->ignore($this->route('app_user')->id),
],
- 'password' => 'nullable|min:8',
- 'authorizedFolders' => 'json|required',
+ 'password' => 'sometimes|nullable|required_with:password_confirmation|confirmed|min:8|max:255',
'role' => [
'required',
new EnumIsValidRule(AppUserRolesEnum::class)
diff --git a/app/Http/Requests/Bo/ImportRequest.php b/app/Http/Requests/Bo/ImportRequest.php
new file mode 100644
index 0000000..5cd5f78
--- /dev/null
+++ b/app/Http/Requests/Bo/ImportRequest.php
@@ -0,0 +1,46 @@
+ [
+ 'required',
+ 'file',
+ 'mimes:csv,txt',
+ // phpcs:ignore Generic.Files.LineLength.TooLong
+ 'mimetypes:text/csv,text/plain,application/csv,text/comma-separated-values,text/anytext,application/octet-stream,application/txt',
+ // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
+ function ($attribute, $value, $fail) {
+ if (
+ $this->import->getClientMimeType() !== 'text/csv'
+ && $this->import->getClientMimeType() !== 'application/vnd.ms-excel'
+ ) {
+ $fail(__('Le fichier doit être d\'un mime type text/csv ou application/vnd.ms-excel'));
+ }
+ }
+ ]
+ ];
+ }
+}
diff --git a/app/Imports/AppUserImport.php b/app/Imports/AppUserImport.php
new file mode 100644
index 0000000..2ff0147
--- /dev/null
+++ b/app/Imports/AppUserImport.php
@@ -0,0 +1,55 @@
+ ";"
+ ];
+ }
+
+ /**
+ * @param array $row
+ *
+ * @return \Illuminate\Database\Eloquent\Model|null
+ */
+ public function model(array $row)
+ {
+ if (!isset($row[0]) || !isset($row[1]) || !isset($row[2]) || !isset($row[3])) {
+ return null;
+ }
+ $user = new AppUser([
+ 'email' => $row[3],
+ 'lastname' => ucfirst(strtolower($row[1])),
+ 'firstname' => ucfirst(strtolower($row[2])),
+ 'password' => Str::random(10),
+ 'status' => 1,
+ 'role' => AppUserRolesEnum::user(),
+ ]);
+
+ $user->saveOrFail();
+
+ return $user;
+ }
+}
diff --git a/app/Models/AppUser.php b/app/Models/AppUser.php
index 81cc2d3..61c2623 100644
--- a/app/Models/AppUser.php
+++ b/app/Models/AppUser.php
@@ -3,24 +3,27 @@
namespace App\Models;
use App\Enums\AppUserRolesEnum;
+use App\Lib\Helpers\ToolboxHelper;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;
use Kwaadpepper\Enum\Traits\CastsEnums;
+/**
+ * @property integer $id
+ * @property string $lastname
+ * @property string $firstname
+ * @property string $email
+ * @property string $password
+ * @property integer $role
+ * @property boolean $status
+ * @property integer $order
+ */
class AppUser extends Model
{
use HasFactory;
use CastsEnums;
- /**
- * cast enum
- * @var string[]
- */
- protected $enumCasts = [
- 'role' => AppUserRolesEnum::class
- ];
-
/**
* fillable
* @var string[]
@@ -30,11 +33,21 @@ class AppUser extends Model
'firstname',
'email',
'password',
- 'authorizedFolders',
'role',
'status',
+ 'order',
];
+ /**
+ * cast enum
+ * @var string[]
+ */
+ protected $enumCasts = [
+ 'role' => AppUserRolesEnum::class
+ ];
+
+ // * EVENTS
+
/**
* Perform any actions required after the model boots.
*
@@ -43,16 +56,53 @@ class AppUser extends Model
protected static function booted()
{
static::creating(function (self $model) {
- $model->lastname = strtoupper($model->lastname);
- $model->firstname = ucfirst(strtolower($model->firstname));
- $model->password = Hash::make($model->password);
+ self::assertFieldIsUnique('email', $model->email);
+ self::setOrder($model);
+ $model->password = Hash::make($model->password);
});
static::updating(function (self $model) {
- $model->lastname = strtoupper($model->lastname);
- $model->firstname = ucfirst(strtolower($model->firstname));
if (Hash::needsRehash($model->password)) {
$model->password = Hash::make($model->password);
}
});
}
+
+ // * METHODS
+
+ /**
+ * Asserts using validation that the field is unique.
+ *
+ * @param string $nameField
+ * @param string $valueField
+ * @param integer|null $id
+ * @return void
+ */
+ private static function assertFieldIsUnique(string $nameField, string $valueField, ?int $id = null)
+ {
+ $table = (new self())->getTable();
+ ToolboxHelper::assertFieldIsUnique($table, $nameField, $valueField, $id);
+ }
+
+ /**
+ * Set order after the last element of the list.
+ *
+ * @param \Illuminate\Database\Eloquent\Model $model
+ * @return void
+ */
+ private static function setOrder(Model $model): void
+ {
+ $model->order = \intval(self::query()->max('order')) + 1;
+ }
+
+ // * RELATIONSHIPS
+
+ /**
+ * MorphToMany Directories
+ *
+ * @return \Illuminate\Database\Eloquent\Relations\MorphToMany
+ */
+ public function directories()
+ {
+ return $this->morphToMany(Directory::class, 'taggable');
+ }
}
diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php
index c9ac887..b3f993e 100644
--- a/app/Providers/RouteServiceProvider.php
+++ b/app/Providers/RouteServiceProvider.php
@@ -2,6 +2,7 @@
namespace App\Providers;
+use App\Models\AppUser;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
@@ -35,6 +36,8 @@ class RouteServiceProvider extends ServiceProvider
->namespace($this->namespace)
->group(base_path('routes/web-bo.php'));
});
+
+ Route::model('appuser', AppUser::class);
}
/**
diff --git a/composer.json b/composer.json
index 58222e3..c16709e 100644
--- a/composer.json
+++ b/composer.json
@@ -24,6 +24,7 @@
"laravel/ui": "^3.4",
"ldc/web-admin-secure-laravel": "^1.0",
"ldc/web-status-checker-laravel": "^1.0",
+ "maatwebsite/excel": "^3.1",
"mews/purifier": "^3.3",
"sentry/sentry-laravel": "^3.2",
"spatie/laravel-mix-preload": "^1.3"
@@ -89,7 +90,8 @@
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
+ "dealerdirect/phpcodesniffer-composer-installer": true,
+ "php-http/discovery": true
},
"gitlab-domains": [
"lab.s-web.fr"
diff --git a/composer.lock b/composer.lock
index 944a13c..10f802b 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "5e4cbf9854520a1c0f5c76d670901d0d",
+ "content-hash": "c367b4aa61b358b61bfe2b48a3a4e6ef",
"packages": [
{
"name": "asm89/stack-cors",
@@ -188,6 +188,87 @@
],
"time": "2022-02-21T13:15:14+00:00"
},
+ {
+ "name": "composer/semver",
+ "version": "3.3.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/semver.git",
+ "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9",
+ "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^1.4",
+ "symfony/phpunit-bridge": "^4.2 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "3.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Semver\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nils Adermann",
+ "email": "naderman@naderman.de",
+ "homepage": "http://www.naderman.de"
+ },
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ },
+ {
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com",
+ "homepage": "http://robbast.nl"
+ }
+ ],
+ "description": "Semver library that offers utilities, version constraint parsing and validation.",
+ "keywords": [
+ "semantic",
+ "semver",
+ "validation",
+ "versioning"
+ ],
+ "support": {
+ "irc": "irc://irc.freenode.org/composer",
+ "issues": "https://github.com/composer/semver/issues",
+ "source": "https://github.com/composer/semver/tree/3.3.2"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-04-01T19:23:25+00:00"
+ },
{
"name": "diglactic/laravel-breadcrumbs",
"version": "v6.1.1",
@@ -560,23 +641,30 @@
},
{
"name": "ezyang/htmlpurifier",
- "version": "v4.13.0",
+ "version": "v4.16.0",
"source": {
"type": "git",
"url": "https://github.com/ezyang/htmlpurifier.git",
- "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75"
+ "reference": "523407fb06eb9e5f3d59889b3978d5bfe94299c8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
- "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
+ "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/523407fb06eb9e5f3d59889b3978d5bfe94299c8",
+ "reference": "523407fb06eb9e5f3d59889b3978d5bfe94299c8",
"shasum": ""
},
"require": {
- "php": ">=5.2"
+ "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0"
},
"require-dev": {
- "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
+ "cerdic/css-tidy": "^1.7 || ^2.0",
+ "simpletest/simpletest": "dev-master"
+ },
+ "suggest": {
+ "cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.",
+ "ext-bcmath": "Used for unit conversion and imagecrash protection",
+ "ext-iconv": "Converts text to and from non-UTF-8 encodings",
+ "ext-tidy": "Used for pretty-printing HTML"
},
"type": "library",
"autoload": {
@@ -608,9 +696,9 @@
],
"support": {
"issues": "https://github.com/ezyang/htmlpurifier/issues",
- "source": "https://github.com/ezyang/htmlpurifier/tree/master"
+ "source": "https://github.com/ezyang/htmlpurifier/tree/v4.16.0"
},
- "time": "2020-06-29T00:56:53+00:00"
+ "time": "2022-09-18T07:06:19+00:00"
},
{
"name": "facade/ignition-contracts",
@@ -1021,16 +1109,16 @@
},
{
"name": "guzzlehttp/psr7",
- "version": "2.4.3",
+ "version": "2.4.4",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
- "reference": "67c26b443f348a51926030c83481b85718457d3d"
+ "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/67c26b443f348a51926030c83481b85718457d3d",
- "reference": "67c26b443f348a51926030c83481b85718457d3d",
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",
+ "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",
"shasum": ""
},
"require": {
@@ -1120,7 +1208,7 @@
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
- "source": "https://github.com/guzzle/psr7/tree/2.4.3"
+ "source": "https://github.com/guzzle/psr7/tree/2.4.4"
},
"funding": [
{
@@ -1136,7 +1224,7 @@
"type": "tidelift"
}
],
- "time": "2022-10-26T14:07:24+00:00"
+ "time": "2023-03-09T13:19:02+00:00"
},
{
"name": "http-interop/http-factory-guzzle",
@@ -2309,30 +2397,292 @@
"time": "2022-04-17T13:12:02+00:00"
},
{
- "name": "mews/purifier",
- "version": "3.3.8",
+ "name": "maatwebsite/excel",
+ "version": "3.1.48",
"source": {
"type": "git",
- "url": "https://github.com/mewebstudio/Purifier.git",
- "reference": "164b420c4a80d2d0a89c1023f0aa9b3c0e3d6dc5"
+ "url": "https://github.com/SpartnerNL/Laravel-Excel.git",
+ "reference": "6d0fe2a1d195960c7af7bf0de760582da02a34b9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/mewebstudio/Purifier/zipball/164b420c4a80d2d0a89c1023f0aa9b3c0e3d6dc5",
- "reference": "164b420c4a80d2d0a89c1023f0aa9b3c0e3d6dc5",
+ "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/6d0fe2a1d195960c7af7bf0de760582da02a34b9",
+ "reference": "6d0fe2a1d195960c7af7bf0de760582da02a34b9",
"shasum": ""
},
"require": {
- "ezyang/htmlpurifier": "4.13.*",
- "illuminate/config": "^5.8|^6.0|^7.0|^8.0|^9.0",
- "illuminate/filesystem": "^5.8|^6.0|^7.0|^8.0|^9.0",
- "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0",
+ "composer/semver": "^3.3",
+ "ext-json": "*",
+ "illuminate/support": "5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0",
+ "php": "^7.0|^8.0",
+ "phpoffice/phpspreadsheet": "^1.18",
+ "psr/simple-cache": "^1.0|^2.0|^3.0"
+ },
+ "require-dev": {
+ "orchestra/testbench": "^6.0|^7.0|^8.0",
+ "predis/predis": "^1.1"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "Maatwebsite\\Excel\\ExcelServiceProvider"
+ ],
+ "aliases": {
+ "Excel": "Maatwebsite\\Excel\\Facades\\Excel"
+ }
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Maatwebsite\\Excel\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Patrick Brouwers",
+ "email": "patrick@spartner.nl"
+ }
+ ],
+ "description": "Supercharged Excel exports and imports in Laravel",
+ "keywords": [
+ "PHPExcel",
+ "batch",
+ "csv",
+ "excel",
+ "export",
+ "import",
+ "laravel",
+ "php",
+ "phpspreadsheet"
+ ],
+ "support": {
+ "issues": "https://github.com/SpartnerNL/Laravel-Excel/issues",
+ "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.48"
+ },
+ "funding": [
+ {
+ "url": "https://laravel-excel.com/commercial-support",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/patrickbrouwers",
+ "type": "github"
+ }
+ ],
+ "time": "2023-02-22T21:01:38+00:00"
+ },
+ {
+ "name": "maennchen/zipstream-php",
+ "version": "2.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/maennchen/ZipStream-PHP.git",
+ "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58",
+ "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58",
+ "shasum": ""
+ },
+ "require": {
+ "myclabs/php-enum": "^1.5",
+ "php": ">= 7.1",
+ "psr/http-message": "^1.0",
+ "symfony/polyfill-mbstring": "^1.0"
+ },
+ "require-dev": {
+ "ext-zip": "*",
+ "guzzlehttp/guzzle": ">= 6.3",
+ "mikey179/vfsstream": "^1.6",
+ "phpunit/phpunit": ">= 7.5"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "ZipStream\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Paul Duncan",
+ "email": "pabs@pablotron.org"
+ },
+ {
+ "name": "Jonatan Männchen",
+ "email": "jonatan@maennchen.ch"
+ },
+ {
+ "name": "Jesse Donat",
+ "email": "donatj@gmail.com"
+ },
+ {
+ "name": "András Kolesár",
+ "email": "kolesar@kolesar.hu"
+ }
+ ],
+ "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.",
+ "keywords": [
+ "stream",
+ "zip"
+ ],
+ "support": {
+ "issues": "https://github.com/maennchen/ZipStream-PHP/issues",
+ "source": "https://github.com/maennchen/ZipStream-PHP/tree/2.1.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/maennchen",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/zipstream",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2020-05-30T13:11:16+00:00"
+ },
+ {
+ "name": "markbaker/complex",
+ "version": "3.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/MarkBaker/PHPComplex.git",
+ "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9",
+ "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "dev-master",
+ "phpcompatibility/php-compatibility": "^9.3",
+ "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
+ "squizlabs/php_codesniffer": "^3.7"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Complex\\": "classes/src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mark Baker",
+ "email": "mark@lange.demon.co.uk"
+ }
+ ],
+ "description": "PHP Class for working with complex numbers",
+ "homepage": "https://github.com/MarkBaker/PHPComplex",
+ "keywords": [
+ "complex",
+ "mathematics"
+ ],
+ "support": {
+ "issues": "https://github.com/MarkBaker/PHPComplex/issues",
+ "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2"
+ },
+ "time": "2022-12-06T16:21:08+00:00"
+ },
+ {
+ "name": "markbaker/matrix",
+ "version": "3.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/MarkBaker/PHPMatrix.git",
+ "reference": "728434227fe21be27ff6d86621a1b13107a2562c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c",
+ "reference": "728434227fe21be27ff6d86621a1b13107a2562c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "dev-master",
+ "phpcompatibility/php-compatibility": "^9.3",
+ "phpdocumentor/phpdocumentor": "2.*",
+ "phploc/phploc": "^4.0",
+ "phpmd/phpmd": "2.*",
+ "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
+ "sebastian/phpcpd": "^4.0",
+ "squizlabs/php_codesniffer": "^3.7"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Matrix\\": "classes/src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mark Baker",
+ "email": "mark@demon-angel.eu"
+ }
+ ],
+ "description": "PHP Class for working with matrices",
+ "homepage": "https://github.com/MarkBaker/PHPMatrix",
+ "keywords": [
+ "mathematics",
+ "matrix",
+ "vector"
+ ],
+ "support": {
+ "issues": "https://github.com/MarkBaker/PHPMatrix/issues",
+ "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1"
+ },
+ "time": "2022-12-02T22:17:43+00:00"
+ },
+ {
+ "name": "mews/purifier",
+ "version": "3.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/mewebstudio/Purifier.git",
+ "reference": "48e7bddc18140412d7cd815b6eea2fc7a141c432"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/mewebstudio/Purifier/zipball/48e7bddc18140412d7cd815b6eea2fc7a141c432",
+ "reference": "48e7bddc18140412d7cd815b6eea2fc7a141c432",
+ "shasum": ""
+ },
+ "require": {
+ "ezyang/htmlpurifier": "^4.16.0",
+ "illuminate/config": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
+ "illuminate/filesystem": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
+ "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
"php": "^7.2|^8.0"
},
"require-dev": {
"graham-campbell/testbench": "^3.2|^5.5.1",
"mockery/mockery": "^1.3.3",
- "phpunit/phpunit": "^8.0|^9.0"
+ "phpunit/phpunit": "^8.0|^9.0|^10.0"
},
"suggest": {
"laravel/framework": "To test the Laravel bindings",
@@ -2369,25 +2719,22 @@
"role": "Developer"
}
],
- "description": "Laravel 5/6/7 HtmlPurifier Package",
+ "description": "Laravel 5/6/7/8/9/10 HtmlPurifier Package",
"homepage": "https://github.com/mewebstudio/purifier",
"keywords": [
+ "Laravel Purifier",
+ "Laravel Security",
"Purifier",
"htmlpurifier",
- "laravel5 HtmlPurifier",
- "laravel5 Purifier",
- "laravel5 Security",
- "laravel6 HtmlPurifier",
- "laravel6 Purifier",
- "laravel6 Security",
+ "laravel HtmlPurifier",
"security",
"xss"
],
"support": {
"issues": "https://github.com/mewebstudio/Purifier/issues",
- "source": "https://github.com/mewebstudio/Purifier/tree/3.3.8"
+ "source": "https://github.com/mewebstudio/Purifier/tree/3.4.0"
},
- "time": "2022-07-20T12:14:06+00:00"
+ "time": "2023-03-14T08:28:28+00:00"
},
{
"name": "monolog/monolog",
@@ -2491,6 +2838,69 @@
],
"time": "2023-02-06T13:44:46+00:00"
},
+ {
+ "name": "myclabs/php-enum",
+ "version": "1.8.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/myclabs/php-enum.git",
+ "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483",
+ "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483",
+ "shasum": ""
+ },
+ "require": {
+ "ext-json": "*",
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.5",
+ "squizlabs/php_codesniffer": "1.*",
+ "vimeo/psalm": "^4.6.2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "MyCLabs\\Enum\\": "src/"
+ },
+ "classmap": [
+ "stubs/Stringable.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP Enum contributors",
+ "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
+ }
+ ],
+ "description": "PHP Enum implementation",
+ "homepage": "http://github.com/myclabs/php-enum",
+ "keywords": [
+ "enum"
+ ],
+ "support": {
+ "issues": "https://github.com/myclabs/php-enum/issues",
+ "source": "https://github.com/myclabs/php-enum/tree/1.8.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/mnapoli",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-08-04T09:53:51+00:00"
+ },
{
"name": "nesbot/carbon",
"version": "2.66.0",
@@ -2595,16 +3005,16 @@
},
{
"name": "nikic/php-parser",
- "version": "v4.15.3",
+ "version": "v4.15.4",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
+ "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
- "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
+ "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
"shasum": ""
},
"require": {
@@ -2645,9 +3055,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4"
},
- "time": "2023-01-16T22:05:37+00:00"
+ "time": "2023-03-05T19:49:14+00:00"
},
{
"name": "nyholm/psr7",
@@ -2868,38 +3278,44 @@
},
{
"name": "php-http/discovery",
- "version": "1.14.3",
+ "version": "1.15.2",
"source": {
"type": "git",
"url": "https://github.com/php-http/discovery.git",
- "reference": "31d8ee46d0215108df16a8527c7438e96a4d7735"
+ "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-http/discovery/zipball/31d8ee46d0215108df16a8527c7438e96a4d7735",
- "reference": "31d8ee46d0215108df16a8527c7438e96a4d7735",
+ "url": "https://api.github.com/repos/php-http/discovery/zipball/5cc428320191ac1d0b6520034c2dc0698628ced5",
+ "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5",
"shasum": ""
},
"require": {
+ "composer-plugin-api": "^1.0|^2.0",
"php": "^7.1 || ^8.0"
},
"conflict": {
"nyholm/psr7": "<1.0"
},
+ "provide": {
+ "php-http/async-client-implementation": "*",
+ "php-http/client-implementation": "*",
+ "psr/http-client-implementation": "*",
+ "psr/http-factory-implementation": "*",
+ "psr/http-message-implementation": "*"
+ },
"require-dev": {
+ "composer/composer": "^1.0.2|^2.0",
"graham-campbell/phpspec-skip-example-extension": "^5.0",
"php-http/httplug": "^1.0 || ^2.0",
"php-http/message-factory": "^1.0",
- "phpspec/phpspec": "^5.1 || ^6.1"
+ "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3",
+ "symfony/phpunit-bridge": "^6.2"
},
- "suggest": {
- "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories"
- },
- "type": "library",
+ "type": "composer-plugin",
"extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
+ "class": "Http\\Discovery\\Composer\\Plugin",
+ "plugin-optional": true
},
"autoload": {
"psr-4": {
@@ -2916,7 +3332,7 @@
"email": "mark.sagikazar@gmail.com"
}
],
- "description": "Finds installed HTTPlug implementations and PSR-7 message factories",
+ "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations",
"homepage": "http://php-http.org",
"keywords": [
"adapter",
@@ -2925,13 +3341,14 @@
"factory",
"http",
"message",
+ "psr17",
"psr7"
],
"support": {
"issues": "https://github.com/php-http/discovery/issues",
- "source": "https://github.com/php-http/discovery/tree/1.14.3"
+ "source": "https://github.com/php-http/discovery/tree/1.15.2"
},
- "time": "2022-07-11T14:04:40+00:00"
+ "time": "2023-02-11T08:28:41+00:00"
},
{
"name": "php-http/httplug",
@@ -3180,6 +3597,111 @@
},
"time": "2020-07-07T09:29:14+00:00"
},
+ {
+ "name": "phpoffice/phpspreadsheet",
+ "version": "1.25.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
+ "reference": "a317a09e7def49852400a4b3eca4a4b0790ceeb5"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/a317a09e7def49852400a4b3eca4a4b0790ceeb5",
+ "reference": "a317a09e7def49852400a4b3eca4a4b0790ceeb5",
+ "shasum": ""
+ },
+ "require": {
+ "ext-ctype": "*",
+ "ext-dom": "*",
+ "ext-fileinfo": "*",
+ "ext-gd": "*",
+ "ext-iconv": "*",
+ "ext-libxml": "*",
+ "ext-mbstring": "*",
+ "ext-simplexml": "*",
+ "ext-xml": "*",
+ "ext-xmlreader": "*",
+ "ext-xmlwriter": "*",
+ "ext-zip": "*",
+ "ext-zlib": "*",
+ "ezyang/htmlpurifier": "^4.15",
+ "maennchen/zipstream-php": "^2.1",
+ "markbaker/complex": "^3.0",
+ "markbaker/matrix": "^3.0",
+ "php": "^7.3 || ^8.0",
+ "psr/http-client": "^1.0",
+ "psr/http-factory": "^1.0",
+ "psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "dev-master",
+ "dompdf/dompdf": "^1.0 || ^2.0",
+ "friendsofphp/php-cs-fixer": "^3.2",
+ "mitoteam/jpgraph": "10.2.4",
+ "mpdf/mpdf": "8.1.1",
+ "phpcompatibility/php-compatibility": "^9.3",
+ "phpstan/phpstan": "^1.1",
+ "phpstan/phpstan-phpunit": "^1.0",
+ "phpunit/phpunit": "^8.5 || ^9.0",
+ "squizlabs/php_codesniffer": "^3.7",
+ "tecnickcom/tcpdf": "6.5"
+ },
+ "suggest": {
+ "dompdf/dompdf": "Option for rendering PDF with PDF Writer",
+ "ext-intl": "PHP Internationalization Functions",
+ "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers",
+ "mpdf/mpdf": "Option for rendering PDF with PDF Writer",
+ "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Maarten Balliauw",
+ "homepage": "https://blog.maartenballiauw.be"
+ },
+ {
+ "name": "Mark Baker",
+ "homepage": "https://markbakeruk.net"
+ },
+ {
+ "name": "Franck Lefevre",
+ "homepage": "https://rootslabs.net"
+ },
+ {
+ "name": "Erik Tilt"
+ },
+ {
+ "name": "Adrien Crivelli"
+ }
+ ],
+ "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
+ "homepage": "https://github.com/PHPOffice/PhpSpreadsheet",
+ "keywords": [
+ "OpenXML",
+ "excel",
+ "gnumeric",
+ "ods",
+ "php",
+ "spreadsheet",
+ "xls",
+ "xlsx"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues",
+ "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.25.2"
+ },
+ "time": "2022-09-25T17:21:01+00:00"
+ },
{
"name": "phpoption/phpoption",
"version": "1.9.1",
@@ -3616,16 +4138,16 @@
},
{
"name": "psy/psysh",
- "version": "v0.11.12",
+ "version": "v0.11.14",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
- "reference": "52cb7c47d403c31c0adc9bf7710fc355f93c20f7"
+ "reference": "8c2e264def7a8263a68ef6f0b55ce90b77d41e17"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/bobthecow/psysh/zipball/52cb7c47d403c31c0adc9bf7710fc355f93c20f7",
- "reference": "52cb7c47d403c31c0adc9bf7710fc355f93c20f7",
+ "url": "https://api.github.com/repos/bobthecow/psysh/zipball/8c2e264def7a8263a68ef6f0b55ce90b77d41e17",
+ "reference": "8c2e264def7a8263a68ef6f0b55ce90b77d41e17",
"shasum": ""
},
"require": {
@@ -3686,9 +4208,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
- "source": "https://github.com/bobthecow/psysh/tree/v0.11.12"
+ "source": "https://github.com/bobthecow/psysh/tree/v0.11.14"
},
- "time": "2023-01-29T21:24:40+00:00"
+ "time": "2023-03-28T03:41:01+00:00"
},
{
"name": "ralouphie/getallheaders",
@@ -3970,32 +4492,31 @@
},
{
"name": "sentry/sentry",
- "version": "3.13.1",
+ "version": "3.17.0",
"source": {
"type": "git",
"url": "https://github.com/getsentry/sentry-php.git",
- "reference": "71c86fe4699a7f1a40c7d985f3dc7667045152f0"
+ "reference": "95d2e932383cf684f77acff0d2a5aef5ad2f1933"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/71c86fe4699a7f1a40c7d985f3dc7667045152f0",
- "reference": "71c86fe4699a7f1a40c7d985f3dc7667045152f0",
+ "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/95d2e932383cf684f77acff0d2a5aef5ad2f1933",
+ "reference": "95d2e932383cf684f77acff0d2a5aef5ad2f1933",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/promises": "^1.4",
- "guzzlehttp/psr7": "^1.8.4|^2.1.1",
"jean85/pretty-package-versions": "^1.5|^2.0.4",
"php": "^7.2|^8.0",
"php-http/async-client-implementation": "^1.0",
"php-http/client-common": "^1.5|^2.0",
- "php-http/discovery": "^1.11, <1.15",
+ "php-http/discovery": "^1.15",
"php-http/httplug": "^1.1|^2.0",
"php-http/message": "^1.5",
"psr/http-factory": "^1.0",
- "psr/http-message-implementation": "^1.0",
+ "psr/http-factory-implementation": "^1.0",
"psr/log": "^1.0|^2.0|^3.0",
"symfony/options-resolver": "^3.4.43|^4.4.30|^5.0.11|^6.0",
"symfony/polyfill-php80": "^1.17"
@@ -4006,6 +4527,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19|3.4.*",
+ "guzzlehttp/psr7": "^1.8.4|^2.1.1",
"http-interop/http-factory-guzzle": "^1.0",
"monolog/monolog": "^1.6|^2.0|^3.0",
"nikic/php-parser": "^4.10.3",
@@ -4037,7 +4559,7 @@
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD-3-Clause"
+ "MIT"
],
"authors": [
{
@@ -4058,7 +4580,7 @@
],
"support": {
"issues": "https://github.com/getsentry/sentry-php/issues",
- "source": "https://github.com/getsentry/sentry-php/tree/3.13.1"
+ "source": "https://github.com/getsentry/sentry-php/tree/3.17.0"
},
"funding": [
{
@@ -4070,20 +4592,20 @@
"type": "custom"
}
],
- "time": "2023-02-10T10:17:57+00:00"
+ "time": "2023-03-26T21:54:06+00:00"
},
{
"name": "sentry/sentry-laravel",
- "version": "3.2.0",
+ "version": "3.3.2",
"source": {
"type": "git",
"url": "https://github.com/getsentry/sentry-laravel.git",
- "reference": "55ad9bd47766cec2d8978b8487c40e81a5a87d76"
+ "reference": "c502e8b9005990d03f5ec5cc852e98a27c26056d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/55ad9bd47766cec2d8978b8487c40e81a5a87d76",
- "reference": "55ad9bd47766cec2d8978b8487c40e81a5a87d76",
+ "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/c502e8b9005990d03f5ec5cc852e98a27c26056d",
+ "reference": "c502e8b9005990d03f5ec5cc852e98a27c26056d",
"shasum": ""
},
"require": {
@@ -4091,7 +4613,7 @@
"nyholm/psr7": "^1.0",
"php": "^7.2 | ^8.0",
"sentry/sdk": "^3.3",
- "sentry/sentry": "^3.12",
+ "sentry/sentry": "^3.16",
"symfony/psr-http-message-bridge": "^1.0 | ^2.0"
},
"conflict": {
@@ -4129,7 +4651,7 @@
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "Apache-2.0"
+ "MIT"
],
"authors": [
{
@@ -4151,7 +4673,7 @@
],
"support": {
"issues": "https://github.com/getsentry/sentry-laravel/issues",
- "source": "https://github.com/getsentry/sentry-laravel/tree/3.2.0"
+ "source": "https://github.com/getsentry/sentry-laravel/tree/3.3.2"
},
"funding": [
{
@@ -4163,7 +4685,7 @@
"type": "custom"
}
],
- "time": "2023-02-01T10:56:52+00:00"
+ "time": "2023-03-22T10:51:03+00:00"
},
{
"name": "spatie/laravel-mix-preload",
@@ -4311,16 +4833,16 @@
},
{
"name": "symfony/console",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9"
+ "reference": "3cd51fd2e6c461ca678f84d419461281bd87a0a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/c77433ddc6cdc689caf48065d9ea22ca0853fbd9",
- "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9",
+ "url": "https://api.github.com/repos/symfony/console/zipball/3cd51fd2e6c461ca678f84d419461281bd87a0a8",
+ "reference": "3cd51fd2e6c461ca678f84d419461281bd87a0a8",
"shasum": ""
},
"require": {
@@ -4385,12 +4907,12 @@
"homepage": "https://symfony.com",
"keywords": [
"cli",
- "command line",
+ "command-line",
"console",
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v5.4.21"
+ "source": "https://github.com/symfony/console/tree/v5.4.22"
},
"funding": [
{
@@ -4406,7 +4928,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-25T16:59:41+00:00"
+ "time": "2023-03-25T09:27:28+00:00"
},
{
"name": "symfony/css-selector",
@@ -4614,16 +5136,16 @@
},
{
"name": "symfony/event-dispatcher",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "f0ae1383a8285dfc6752b8d8602790953118ff5a"
+ "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f0ae1383a8285dfc6752b8d8602790953118ff5a",
- "reference": "f0ae1383a8285dfc6752b8d8602790953118ff5a",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f",
+ "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f",
"shasum": ""
},
"require": {
@@ -4679,7 +5201,7 @@
"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/v5.4.21"
+ "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.22"
},
"funding": [
{
@@ -4695,7 +5217,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-14T08:03:56+00:00"
+ "time": "2023-03-17T11:31:58+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
@@ -4841,16 +5363,16 @@
},
{
"name": "symfony/http-client",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client.git",
- "reference": "6b88914a7f1bf144df15904f60a19be78a67a3b2"
+ "reference": "4cd1b7e7ee846c8b22cb47cbc435344af9b2a8bf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-client/zipball/6b88914a7f1bf144df15904f60a19be78a67a3b2",
- "reference": "6b88914a7f1bf144df15904f60a19be78a67a3b2",
+ "url": "https://api.github.com/repos/symfony/http-client/zipball/4cd1b7e7ee846c8b22cb47cbc435344af9b2a8bf",
+ "reference": "4cd1b7e7ee846c8b22cb47cbc435344af9b2a8bf",
"shasum": ""
},
"require": {
@@ -4907,8 +5429,11 @@
],
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
"homepage": "https://symfony.com",
+ "keywords": [
+ "http"
+ ],
"support": {
- "source": "https://github.com/symfony/http-client/tree/v5.4.21"
+ "source": "https://github.com/symfony/http-client/tree/v5.4.22"
},
"funding": [
{
@@ -4924,7 +5449,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-17T21:35:35+00:00"
+ "time": "2023-03-24T15:16:26+00:00"
},
{
"name": "symfony/http-client-contracts",
@@ -5006,16 +5531,16 @@
},
{
"name": "symfony/http-foundation",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
- "reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf"
+ "reference": "05cd1acdd0e3ce8473aaba1d86c188321d85f313"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-foundation/zipball/3bb6ee5582366c4176d5ce596b380117c8200bbf",
- "reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf",
+ "url": "https://api.github.com/repos/symfony/http-foundation/zipball/05cd1acdd0e3ce8473aaba1d86c188321d85f313",
+ "reference": "05cd1acdd0e3ce8473aaba1d86c188321d85f313",
"shasum": ""
},
"require": {
@@ -5062,7 +5587,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/http-foundation/tree/v5.4.21"
+ "source": "https://github.com/symfony/http-foundation/tree/v5.4.22"
},
"funding": [
{
@@ -5078,20 +5603,20 @@
"type": "tidelift"
}
],
- "time": "2023-02-17T21:35:35+00:00"
+ "time": "2023-03-28T07:28:17+00:00"
},
{
"name": "symfony/http-kernel",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
- "reference": "09c19fc7e4218fbcf73fe0330eea38d66064b775"
+ "reference": "2d3a8be2c756353627398827c409af6f126c096d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-kernel/zipball/09c19fc7e4218fbcf73fe0330eea38d66064b775",
- "reference": "09c19fc7e4218fbcf73fe0330eea38d66064b775",
+ "url": "https://api.github.com/repos/symfony/http-kernel/zipball/2d3a8be2c756353627398827c409af6f126c096d",
+ "reference": "2d3a8be2c756353627398827c409af6f126c096d",
"shasum": ""
},
"require": {
@@ -5174,7 +5699,7 @@
"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/v5.4.21"
+ "source": "https://github.com/symfony/http-kernel/tree/v5.4.22"
},
"funding": [
{
@@ -5190,7 +5715,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-28T13:19:09+00:00"
+ "time": "2023-03-31T11:54:37+00:00"
},
{
"name": "symfony/mime",
@@ -6164,16 +6689,16 @@
},
{
"name": "symfony/process",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd"
+ "reference": "4b850da0cc3a2a9181c1ed407adbca4733dc839b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd",
- "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd",
+ "url": "https://api.github.com/repos/symfony/process/zipball/4b850da0cc3a2a9181c1ed407adbca4733dc839b",
+ "reference": "4b850da0cc3a2a9181c1ed407adbca4733dc839b",
"shasum": ""
},
"require": {
@@ -6206,7 +6731,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v5.4.21"
+ "source": "https://github.com/symfony/process/tree/v5.4.22"
},
"funding": [
{
@@ -6222,7 +6747,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-21T19:46:44+00:00"
+ "time": "2023-03-06T21:29:33+00:00"
},
{
"name": "symfony/psr-http-message-bridge",
@@ -6314,16 +6839,16 @@
},
{
"name": "symfony/routing",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
- "reference": "2ea0f3049076e8ef96eab203a809d6b2332f0361"
+ "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/routing/zipball/2ea0f3049076e8ef96eab203a809d6b2332f0361",
- "reference": "2ea0f3049076e8ef96eab203a809d6b2332f0361",
+ "url": "https://api.github.com/repos/symfony/routing/zipball/c2ac11eb34947999b7c38fb4c835a57306907e6d",
+ "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d",
"shasum": ""
},
"require": {
@@ -6384,7 +6909,7 @@
"url"
],
"support": {
- "source": "https://github.com/symfony/routing/tree/v5.4.21"
+ "source": "https://github.com/symfony/routing/tree/v5.4.22"
},
"funding": [
{
@@ -6400,7 +6925,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-16T09:33:00+00:00"
+ "time": "2023-03-14T14:59:20+00:00"
},
{
"name": "symfony/service-contracts",
@@ -6487,16 +7012,16 @@
},
{
"name": "symfony/string",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f"
+ "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/edac10d167b78b1d90f46a80320d632de0bd9f2f",
- "reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f",
+ "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62",
+ "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62",
"shasum": ""
},
"require": {
@@ -6553,7 +7078,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v5.4.21"
+ "source": "https://github.com/symfony/string/tree/v5.4.22"
},
"funding": [
{
@@ -6569,20 +7094,20 @@
"type": "tidelift"
}
],
- "time": "2023-02-22T08:00:55+00:00"
+ "time": "2023-03-14T06:11:53+00:00"
},
{
"name": "symfony/translation",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
- "reference": "6996affeea65705086939894b77110e9a7f80874"
+ "reference": "9a401392f01bc385aa42760eff481d213a0cc2ba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation/zipball/6996affeea65705086939894b77110e9a7f80874",
- "reference": "6996affeea65705086939894b77110e9a7f80874",
+ "url": "https://api.github.com/repos/symfony/translation/zipball/9a401392f01bc385aa42760eff481d213a0cc2ba",
+ "reference": "9a401392f01bc385aa42760eff481d213a0cc2ba",
"shasum": ""
},
"require": {
@@ -6650,7 +7175,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/translation/tree/v5.4.21"
+ "source": "https://github.com/symfony/translation/tree/v5.4.22"
},
"funding": [
{
@@ -6666,7 +7191,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-21T19:46:44+00:00"
+ "time": "2023-03-27T16:07:23+00:00"
},
{
"name": "symfony/translation-contracts",
@@ -6748,16 +7273,16 @@
},
{
"name": "symfony/var-dumper",
- "version": "v5.4.21",
+ "version": "v5.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74"
+ "reference": "e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/6c5ac3a1be8b849d59a1a77877ee110e1b55eb74",
- "reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74",
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4",
+ "reference": "e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4",
"shasum": ""
},
"require": {
@@ -6817,7 +7342,7 @@
"dump"
],
"support": {
- "source": "https://github.com/symfony/var-dumper/tree/v5.4.21"
+ "source": "https://github.com/symfony/var-dumper/tree/v5.4.22"
},
"funding": [
{
@@ -6833,7 +7358,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-23T10:00:28+00:00"
+ "time": "2023-03-25T09:27:28+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
@@ -7805,16 +8330,16 @@
},
{
"name": "filp/whoops",
- "version": "2.14.6",
+ "version": "2.15.1",
"source": {
"type": "git",
"url": "https://github.com/filp/whoops.git",
- "reference": "f7948baaa0330277c729714910336383286305da"
+ "reference": "e864ac957acd66e1565f25efda61e37791a5db0b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/filp/whoops/zipball/f7948baaa0330277c729714910336383286305da",
- "reference": "f7948baaa0330277c729714910336383286305da",
+ "url": "https://api.github.com/repos/filp/whoops/zipball/e864ac957acd66e1565f25efda61e37791a5db0b",
+ "reference": "e864ac957acd66e1565f25efda61e37791a5db0b",
"shasum": ""
},
"require": {
@@ -7864,7 +8389,7 @@
],
"support": {
"issues": "https://github.com/filp/whoops/issues",
- "source": "https://github.com/filp/whoops/tree/2.14.6"
+ "source": "https://github.com/filp/whoops/tree/2.15.1"
},
"funding": [
{
@@ -7872,7 +8397,7 @@
"type": "github"
}
],
- "time": "2022-11-02T16:23:29+00:00"
+ "time": "2023-03-06T18:09:13+00:00"
},
{
"name": "hamcrest/hamcrest-php",
@@ -7927,16 +8452,16 @@
},
{
"name": "kitloong/laravel-migrations-generator",
- "version": "v6.8.2",
+ "version": "v6.10.0",
"source": {
"type": "git",
"url": "https://github.com/kitloong/laravel-migrations-generator.git",
- "reference": "4d725cc55c8742c94015e2a620648f9a22c0a3ea"
+ "reference": "116f50fab918b7f1363a40ebd954ce250f6aedcd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/kitloong/laravel-migrations-generator/zipball/4d725cc55c8742c94015e2a620648f9a22c0a3ea",
- "reference": "4d725cc55c8742c94015e2a620648f9a22c0a3ea",
+ "url": "https://api.github.com/repos/kitloong/laravel-migrations-generator/zipball/116f50fab918b7f1363a40ebd954ce250f6aedcd",
+ "reference": "116f50fab918b7f1363a40ebd954ce250f6aedcd",
"shasum": ""
},
"require": {
@@ -7947,7 +8472,7 @@
"php": ">=7.1.3"
},
"require-dev": {
- "barryvdh/laravel-ide-helper": "^2.7",
+ "barryvdh/laravel-ide-helper": "^2.5",
"friendsofphp/php-cs-fixer": "^2.19.0|^3.1",
"mockery/mockery": "^1.0",
"nunomaduro/larastan": "^0.4|^0.5|^0.6|^0.7|^1.0|^2.0",
@@ -7990,7 +8515,7 @@
],
"support": {
"issues": "https://github.com/kitloong/laravel-migrations-generator/issues",
- "source": "https://github.com/kitloong/laravel-migrations-generator/tree/v6.8.2"
+ "source": "https://github.com/kitloong/laravel-migrations-generator/tree/v6.10.0"
},
"funding": [
{
@@ -7998,7 +8523,7 @@
"type": "custom"
}
],
- "time": "2023-03-07T14:37:40+00:00"
+ "time": "2023-03-26T07:37:00+00:00"
},
{
"name": "laravel/sail",
@@ -8134,16 +8659,16 @@
},
{
"name": "myclabs/deep-copy",
- "version": "1.11.0",
+ "version": "1.11.1",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614"
+ "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614",
- "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
+ "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
"shasum": ""
},
"require": {
@@ -8181,7 +8706,7 @@
],
"support": {
"issues": "https://github.com/myclabs/DeepCopy/issues",
- "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0"
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
},
"funding": [
{
@@ -8189,70 +8714,7 @@
"type": "tidelift"
}
],
- "time": "2022-03-03T13:19:32+00:00"
- },
- {
- "name": "myclabs/php-enum",
- "version": "1.8.4",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/php-enum.git",
- "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483",
- "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "php": "^7.3 || ^8.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.5",
- "squizlabs/php_codesniffer": "1.*",
- "vimeo/psalm": "^4.6.2"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "MyCLabs\\Enum\\": "src/"
- },
- "classmap": [
- "stubs/Stringable.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP Enum contributors",
- "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
- }
- ],
- "description": "PHP Enum implementation",
- "homepage": "http://github.com/myclabs/php-enum",
- "keywords": [
- "enum"
- ],
- "support": {
- "issues": "https://github.com/myclabs/php-enum/issues",
- "source": "https://github.com/myclabs/php-enum/tree/1.8.4"
- },
- "funding": [
- {
- "url": "https://github.com/mnapoli",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum",
- "type": "tidelift"
- }
- ],
- "time": "2022-08-04T09:53:51+00:00"
+ "time": "2023-03-08T13:26:56+00:00"
},
{
"name": "nunomaduro/collision",
@@ -8454,16 +8916,16 @@
},
{
"name": "phpstan/phpdoc-parser",
- "version": "1.15.3",
+ "version": "1.16.1",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
- "reference": "61800f71a5526081d1b5633766aa88341f1ade76"
+ "reference": "e27e92d939e2e3636f0a1f0afaba59692c0bf571"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/61800f71a5526081d1b5633766aa88341f1ade76",
- "reference": "61800f71a5526081d1b5633766aa88341f1ade76",
+ "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/e27e92d939e2e3636f0a1f0afaba59692c0bf571",
+ "reference": "e27e92d939e2e3636f0a1f0afaba59692c0bf571",
"shasum": ""
},
"require": {
@@ -8493,22 +8955,22 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
- "source": "https://github.com/phpstan/phpdoc-parser/tree/1.15.3"
+ "source": "https://github.com/phpstan/phpdoc-parser/tree/1.16.1"
},
- "time": "2022-12-20T20:56:55+00:00"
+ "time": "2023-02-07T18:11:17+00:00"
},
{
"name": "phpunit/php-code-coverage",
- "version": "9.2.25",
+ "version": "9.2.26",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "0e2b40518197a8c0d4b08bc34dfff1c99c508954"
+ "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/0e2b40518197a8c0d4b08bc34dfff1c99c508954",
- "reference": "0e2b40518197a8c0d4b08bc34dfff1c99c508954",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
+ "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
"shasum": ""
},
"require": {
@@ -8530,8 +8992,8 @@
"phpunit/phpunit": "^9.3"
},
"suggest": {
- "ext-pcov": "*",
- "ext-xdebug": "*"
+ "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": {
@@ -8564,7 +9026,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.25"
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26"
},
"funding": [
{
@@ -8572,7 +9034,7 @@
"type": "github"
}
],
- "time": "2023-02-25T05:32:00+00:00"
+ "time": "2023-03-06T12:58:08+00:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -8817,16 +9279,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "9.6.4",
+ "version": "9.6.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "9125ee085b6d95e78277dc07aa1f46f9e0607b8d"
+ "reference": "b65d59a059d3004a040c16a82e07bbdf6cfdd115"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9125ee085b6d95e78277dc07aa1f46f9e0607b8d",
- "reference": "9125ee085b6d95e78277dc07aa1f46f9e0607b8d",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b65d59a059d3004a040c16a82e07bbdf6cfdd115",
+ "reference": "b65d59a059d3004a040c16a82e07bbdf6cfdd115",
"shasum": ""
},
"require": {
@@ -8859,8 +9321,8 @@
"sebastian/version": "^3.0.2"
},
"suggest": {
- "ext-soap": "*",
- "ext-xdebug": "*"
+ "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"
@@ -8899,7 +9361,8 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.4"
+ "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.6"
},
"funding": [
{
@@ -8915,7 +9378,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-27T13:06:37+00:00"
+ "time": "2023-03-27T11:43:46+00:00"
},
{
"name": "psr/cache",
@@ -9932,32 +10395,32 @@
},
{
"name": "slevomat/coding-standard",
- "version": "8.8.0",
+ "version": "8.9.1",
"source": {
"type": "git",
"url": "https://github.com/slevomat/coding-standard.git",
- "reference": "59e25146a4ef0a7b194c5bc55b32dd414345db89"
+ "reference": "3d4fe0c803ae15829ef72d90d3d4eee3dd9f79b2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/59e25146a4ef0a7b194c5bc55b32dd414345db89",
- "reference": "59e25146a4ef0a7b194c5bc55b32dd414345db89",
+ "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/3d4fe0c803ae15829ef72d90d3d4eee3dd9f79b2",
+ "reference": "3d4fe0c803ae15829ef72d90d3d4eee3dd9f79b2",
"shasum": ""
},
"require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
"php": "^7.2 || ^8.0",
- "phpstan/phpdoc-parser": ">=1.15.2 <1.16.0",
+ "phpstan/phpdoc-parser": ">=1.16.0 <1.17.0",
"squizlabs/php_codesniffer": "^3.7.1"
},
"require-dev": {
"phing/phing": "2.17.4",
"php-parallel-lint/php-parallel-lint": "1.3.2",
- "phpstan/phpstan": "1.4.10|1.9.6",
- "phpstan/phpstan-deprecation-rules": "1.1.1",
- "phpstan/phpstan-phpunit": "1.0.0|1.3.3",
- "phpstan/phpstan-strict-rules": "1.4.4",
- "phpunit/phpunit": "7.5.20|8.5.21|9.5.27"
+ "phpstan/phpstan": "1.4.10|1.10.8",
+ "phpstan/phpstan-deprecation-rules": "1.1.3",
+ "phpstan/phpstan-phpunit": "1.0.0|1.3.10",
+ "phpstan/phpstan-strict-rules": "1.5.0",
+ "phpunit/phpunit": "7.5.20|8.5.21|9.6.5"
},
"type": "phpcodesniffer-standard",
"extra": {
@@ -9967,7 +10430,7 @@
},
"autoload": {
"psr-4": {
- "SlevomatCodingStandard\\": "SlevomatCodingStandard"
+ "SlevomatCodingStandard\\": "SlevomatCodingStandard/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -9981,7 +10444,7 @@
],
"support": {
"issues": "https://github.com/slevomat/coding-standard/issues",
- "source": "https://github.com/slevomat/coding-standard/tree/8.8.0"
+ "source": "https://github.com/slevomat/coding-standard/tree/8.9.1"
},
"funding": [
{
@@ -9993,7 +10456,7 @@
"type": "tidelift"
}
],
- "time": "2023-01-09T10:46:13+00:00"
+ "time": "2023-03-27T11:00:16+00:00"
},
{
"name": "squizlabs/php_codesniffer",
diff --git a/config/app.php b/config/app.php
index 2f82a88..8bd5c75 100644
--- a/config/app.php
+++ b/config/app.php
@@ -167,6 +167,8 @@ return [
* Package Service Providers...
*/
+ Maatwebsite\Excel\ExcelServiceProvider::class,
+
/*
* Application Service Providers...
*/
@@ -230,7 +232,6 @@ return [
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
-
+ 'Excel' => Maatwebsite\Excel\Facades\Excel::class,
],
-
];
diff --git a/config/excel.php b/config/excel.php
new file mode 100644
index 0000000..22de7bb
--- /dev/null
+++ b/config/excel.php
@@ -0,0 +1,349 @@
+ [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Chunk size
+ |--------------------------------------------------------------------------
+ |
+ | When using FromQuery, the query is automatically chunked.
+ | Here you can specify how big the chunk should be.
+ |
+ */
+
+ 'chunk_size' => 1000,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Pre-calculate formulas during export
+ |--------------------------------------------------------------------------
+ */
+
+ 'pre_calculate_formulas' => false,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Enable strict null comparison
+ |--------------------------------------------------------------------------
+ |
+ | When enabling strict null comparison empty cells ('') will
+ | be added to the sheet.
+ */
+
+ 'strict_null_comparison' => false,
+
+ /*
+ |--------------------------------------------------------------------------
+ | CSV Settings
+ |--------------------------------------------------------------------------
+ |
+ | Configure e.g. delimiter, enclosure and line ending for CSV exports.
+ |
+ */
+
+ 'csv' => [
+ 'delimiter' => ',',
+ 'enclosure' => '"',
+ 'line_ending' => PHP_EOL,
+ 'use_bom' => false,
+ 'include_separator_line' => false,
+ 'excel_compatibility' => false,
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Worksheet properties
+ |--------------------------------------------------------------------------
+ |
+ | Configure e.g. default title, creator, subject,...
+ |
+ */
+
+ 'properties' => [
+ 'creator' => '',
+ 'lastModifiedBy' => '',
+ 'title' => '',
+ 'description' => '',
+ 'subject' => '',
+ 'keywords' => '',
+ 'category' => '',
+ 'manager' => '',
+ 'company' => '',
+ ],
+ ],
+
+ 'imports' => [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Read Only
+ |--------------------------------------------------------------------------
+ |
+ | When dealing with imports, you might only be interested in the
+ | data that the sheet exists. By default we ignore all styles,
+ | however if you want to do some logic based on style data
+ | you can enable it by setting read_only to false.
+ |
+ */
+
+ 'read_only' => true,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Ignore Empty
+ |--------------------------------------------------------------------------
+ |
+ | When dealing with imports, you might be interested in ignoring
+ | rows that have null values or empty strings. By default rows
+ | containing empty strings or empty values are not ignored but can be
+ | ignored by enabling the setting ignore_empty to true.
+ |
+ */
+
+ 'ignore_empty' => false,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Heading Row Formatter
+ |--------------------------------------------------------------------------
+ |
+ | Configure the heading row formatter.
+ | Available options: none|slug|custom
+ |
+ */
+
+ 'heading_row' => [
+ 'formatter' => 'slug',
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | CSV Settings
+ |--------------------------------------------------------------------------
+ |
+ | Configure e.g. delimiter, enclosure and line ending for CSV imports.
+ |
+ */
+
+ 'csv' => [
+ 'delimiter' => ',',
+ 'enclosure' => '"',
+ 'escape_character' => '\\',
+ 'contiguous' => false,
+ 'input_encoding' => 'UTF-8',
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Worksheet properties
+ |--------------------------------------------------------------------------
+ |
+ | Configure e.g. default title, creator, subject,...
+ |
+ */
+
+ 'properties' => [
+ 'creator' => '',
+ 'lastModifiedBy' => '',
+ 'title' => '',
+ 'description' => '',
+ 'subject' => '',
+ 'keywords' => '',
+ 'category' => '',
+ 'manager' => '',
+ 'company' => '',
+ ],
+
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Extension detector
+ |--------------------------------------------------------------------------
+ |
+ | Configure here which writer/reader type should be used when the package
+ | needs to guess the correct type based on the extension alone.
+ |
+ */
+
+ 'extension_detector' => [
+ 'xlsx' => Excel::XLSX,
+ 'xlsm' => Excel::XLSX,
+ 'xltx' => Excel::XLSX,
+ 'xltm' => Excel::XLSX,
+ 'xls' => Excel::XLS,
+ 'xlt' => Excel::XLS,
+ 'ods' => Excel::ODS,
+ 'ots' => Excel::ODS,
+ 'slk' => Excel::SLK,
+ 'xml' => Excel::XML,
+ 'gnumeric' => Excel::GNUMERIC,
+ 'htm' => Excel::HTML,
+ 'html' => Excel::HTML,
+ 'csv' => Excel::CSV,
+ 'tsv' => Excel::TSV,
+
+ /*
+ |--------------------------------------------------------------------------
+ | PDF Extension
+ |--------------------------------------------------------------------------
+ |
+ | Configure here which Pdf driver should be used by default.
+ | Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
+ |
+ */
+
+ 'pdf' => Excel::DOMPDF,
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Value Binder
+ |--------------------------------------------------------------------------
+ |
+ | PhpSpreadsheet offers a way to hook into the process of a value being
+ | written to a cell. In there some assumptions are made on how the
+ | value should be formatted. If you want to change those defaults,
+ | you can implement your own default value binder.
+ |
+ | Possible value binders:
+ |
+ | [x] Maatwebsite\Excel\DefaultValueBinder::class
+ | [x] PhpOffice\PhpSpreadsheet\Cell\StringValueBinder::class
+ | [x] PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder::class
+ |
+ */
+
+ 'value_binder' => [
+ 'default' => Maatwebsite\Excel\DefaultValueBinder::class,
+ ],
+
+ 'cache' => [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Default cell caching driver
+ |--------------------------------------------------------------------------
+ |
+ | By default PhpSpreadsheet keeps all cell values in memory, however when
+ | dealing with large files, this might result into memory issues. If you
+ | want to mitigate that, you can configure a cell caching driver here.
+ | When using the illuminate driver, it will store each value in a the
+ | cache store. This can slow down the process, because it needs to
+ | store each value. You can use the "batch" store if you want to
+ | only persist to the store when the memory limit is reached.
+ |
+ | Drivers: memory|illuminate|batch
+ |
+ */
+
+ 'driver' => 'memory',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Batch memory caching
+ |--------------------------------------------------------------------------
+ |
+ | When dealing with the "batch" caching driver, it will only
+ | persist to the store when the memory limit is reached.
+ | Here you can tweak the memory limit to your liking.
+ |
+ */
+
+ 'batch' => [
+ 'memory_limit' => 60000,
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Illuminate cache
+ |--------------------------------------------------------------------------
+ |
+ | When using the "illuminate" caching driver, it will automatically use
+ | your default cache store. However if you prefer to have the cell
+ | cache on a separate store, you can configure the store name here.
+ | You can use any store defined in your cache config. When leaving
+ | at "null" it will use the default store.
+ |
+ */
+
+ 'illuminate' => [
+ 'store' => null,
+ ],
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Transaction Handler
+ |--------------------------------------------------------------------------
+ |
+ | By default the import is wrapped in a transaction. This is useful
+ | for when an import may fail and you want to retry it. With the
+ | transactions, the previous import gets rolled-back.
+ |
+ | You can disable the transaction handler by setting this to null.
+ | Or you can choose a custom made transaction handler here.
+ |
+ | Supported handlers: null|db
+ |
+ */
+
+ 'transactions' => [
+ 'handler' => 'db',
+ ],
+
+ 'temporary_files' => [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Local Temporary Path
+ |--------------------------------------------------------------------------
+ |
+ | When exporting and importing files, we use a temporary file, before
+ | storing reading or downloading. Here you can customize that path.
+ |
+ */
+
+ 'local_path' => storage_path('framework/laravel-excel'),
+
+ /*
+ |--------------------------------------------------------------------------
+ | Remote Temporary Disk
+ |--------------------------------------------------------------------------
+ |
+ | When dealing with a multi server setup with queues in which you
+ | cannot rely on having a shared local temporary path, you might
+ | want to store the temporary file on a shared disk. During the
+ | queue executing, we'll retrieve the temporary file from that
+ | location instead. When left to null, it will always use
+ | the local path. This setting only has effect when using
+ | in conjunction with queued imports and exports.
+ |
+ */
+
+ 'remote_disk' => null,
+ 'remote_prefix' => null,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Force Resync
+ |--------------------------------------------------------------------------
+ |
+ | When dealing with a multi server setup as above, it's possible
+ | for the clean up that occurs after entire queue has been run to only
+ | cleanup the server that the last AfterImportJob runs on. The rest of the server
+ | would still have the local temporary file stored on it. In this case your
+ | local storage limits can be exceeded and future imports won't be processed.
+ | To mitigate this you can set this config value to be true, so that after every
+ | queued chunk is processed the local temporary file is deleted on the server that
+ | processed it.
+ |
+ */
+
+ 'force_resync_remote' => null,
+ ],
+];
diff --git a/database/factories/AppUserFactory.php b/database/factories/AppUserFactory.php
new file mode 100644
index 0000000..249e4e1
--- /dev/null
+++ b/database/factories/AppUserFactory.php
@@ -0,0 +1,37 @@
+
+ */
+class AppUserFactory extends Factory
+{
+ /**
+ * The name of the factory's corresponding model.
+ *
+ * @var string
+ */
+ protected $model = AppUser::class;
+
+ /**
+ * Define the model's default state.
+ *
+ * @return array
+ */
+ public function definition()
+ {
+ return [
+ 'firstname' => $this->faker->unique()->firstname(),
+ 'lastname' => $this->faker->unique()->lastName(),
+ 'email' => $this->faker->unique()->safeEmail(),
+ 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',
+ 'status' => $this->faker->boolean(75),
+ 'role' => collect(AppUserRolesEnum::toArray())->random(),
+ ];
+ }
+}
diff --git a/database/migrations/2023_03_29_125343_update_app_users_table.php b/database/migrations/2023_03_29_125343_update_app_users_table.php
new file mode 100644
index 0000000..62d015c
--- /dev/null
+++ b/database/migrations/2023_03_29_125343_update_app_users_table.php
@@ -0,0 +1,34 @@
+integer('order')->after('role')->comment('Ordonnance des utilisateurs de l\'applications.');
+ $table->dropColumn('authorizedFolders');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('app_users', function (Blueprint $table) {
+ $table->dropColumn('order');
+ $table->text('authorizedFolders')->nullable();
+ });
+ }
+}
diff --git a/database/seeders/AppUserSeeder.php b/database/seeders/AppUserSeeder.php
new file mode 100644
index 0000000..d16004c
--- /dev/null
+++ b/database/seeders/AppUserSeeder.php
@@ -0,0 +1,24 @@
+make()->each(function (AppUser $directory) use (&$i) {
+ $directory->order = $i;
+ $directory->saveOrFail();
+ $i = $i + 1;
+ });
+ }
+}
diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php
index 6445def..fb0aa51 100644
--- a/database/seeders/DatabaseSeeder.php
+++ b/database/seeders/DatabaseSeeder.php
@@ -14,6 +14,7 @@ class DatabaseSeeder extends Seeder
public function run()
{
$this->call([
+ AppUserSeeder::class,
DirectorySeeder::class,
]);
}
diff --git a/database/seeders/DirectorySeeder.php b/database/seeders/DirectorySeeder.php
index ef7a945..6f0bb43 100644
--- a/database/seeders/DirectorySeeder.php
+++ b/database/seeders/DirectorySeeder.php
@@ -2,6 +2,7 @@
namespace Database\Seeders;
+use App\Models\AppUser;
use App\Models\Directory;
use Illuminate\Database\Seeder;
@@ -20,5 +21,13 @@ class DirectorySeeder extends Seeder
$directory->saveOrFail();
$i = $i + 1;
});
+
+ // Seeder for directory_authorizations table.
+ $directories = Directory::query()->where('needAuthorization', true)->get();
+ AppUser::each(function (AppUser $model) use ($directories) {
+ $offset = rand(1, 15);
+ $length = rand(1, 2);
+ $model->directories()->saveMany($directories->slice($offset, $length));
+ });
}
}
diff --git a/resources/lang/en/models.php b/resources/lang/en/models.php
index 0b0abd5..011065f 100644
--- a/resources/lang/en/models.php
+++ b/resources/lang/en/models.php
@@ -3,6 +3,7 @@
return [
'classes' => [
'dashboard' => 'Dashboard',
+ 'app_users' => 'Application\'s users',
'directories' => 'Directories',
'users' => 'Users'
]
diff --git a/resources/lang/fr/models.php b/resources/lang/fr/models.php
index 1bf5061..a0b2deb 100644
--- a/resources/lang/fr/models.php
+++ b/resources/lang/fr/models.php
@@ -3,6 +3,7 @@
return [
'classes' => [
'dashboard' => 'Tableau de bord',
+ 'app_users' => 'Application utilisateurs',
'directories' => 'Dossiers',
'users' => 'Utilisateurs'
]
diff --git a/resources/sass/bo/base/_common.scss b/resources/sass/bo/base/_common.scss
index fb53b14..a2a7dc3 100644
--- a/resources/sass/bo/base/_common.scss
+++ b/resources/sass/bo/base/_common.scss
@@ -1,5 +1,13 @@
.need-word-counter {
border-radius: 0 0 0.375rem 0.375rem;
+
+ &-password {
+ border-radius: 0 0 0 0.375rem !important;
+
+ &-btn {
+ border-radius: 0 0 0.375rem !important;
+ }
+ }
}
.table {
diff --git a/resources/ts/bo/components/PasswordVisibility.vue b/resources/ts/bo/components/PasswordVisibility.vue
new file mode 100644
index 0000000..611fcdd
--- /dev/null
+++ b/resources/ts/bo/components/PasswordVisibility.vue
@@ -0,0 +1,124 @@
+
+