diff --git a/.env.example b/.env.example index 7de18aa1..38707995 100644 --- a/.env.example +++ b/.env.example @@ -7,8 +7,8 @@ DB_PASSWORD='database_password' # DATABASE_URL='mysql://database_user:database_password@database_host:database_port/database_name' # Optional database variables -# DB_HOST='localhost' -# DB_PREFIX='wp_' +DB_HOST='localhost' +DB_PREFIX='wp_' WP_ENV='development' WP_HOME='http://example.com' @@ -26,3 +26,24 @@ AUTH_SALT='generateme' SECURE_AUTH_SALT='generateme' LOGGED_IN_SALT='generateme' NONCE_SALT='generateme' + +# MAIL +SMTP_HOST= +SMTP_PORT= +SMTP_AUTH= +SMTP_USER= +SMTP_PASS= +SMTP_SECURE= +MAIL_FROM_NAME= +MAIL_FROM_ADDRESS= + +# CRON +DISABLE_WP_CRON=true + +# CRM +CRM_ENDPOINT= +CRM_TOKEN= +CRM_PASSWORD= + +# MATOMO +MATOMO_SITE_ID= diff --git a/.gitignore b/.gitignore index c309ecc1..b037f2ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,16 @@ # Application -web/app/plugins/* -!web/app/plugins/.gitkeep -web/app/mu-plugins/*/ -web/app/themes/twentytwentyfive/ -web/app/upgrade -web/app/uploads/* -!web/app/uploads/.gitkeep -web/app/cache/* +public/app/plugins/* +!public/app/plugins/.gitkeep +public/app/mu-plugins/*/ +public/app/themes/*/ +public/app/upgrade +public/app/uploads/* +!public/app/uploads/.gitkeep +public/app/cache/* # WordPress -web/wp -web/.htaccess +public/wp +public/.htaccess # Logs *.log diff --git a/composer.json b/composer.json index b248294b..663e73ba 100644 --- a/composer.json +++ b/composer.json @@ -1,33 +1,20 @@ { - "name": "roots/bedrock", + "name": "uwil/ldc", "type": "project", - "license": "MIT", - "description": "WordPress boilerplate with Composer, easier configuration, and an improved folder structure", - "homepage": "https://roots.io/bedrock/", - "authors": [ - { - "name": "Scott Walkinshaw", - "email": "scott.walkinshaw@gmail.com", - "homepage": "https://github.com/swalkinshaw" - }, - { - "name": "Ben Word", - "email": "ben@benword.com", - "homepage": "https://github.com/retlehs" - } - ], - "keywords": [ - "bedrock", "composer", "roots", "wordpress", "wp", "wp-config" - ], - "support": { - "issues": "https://github.com/roots/bedrock/issues", - "forum": "https://discourse.roots.io/category/bedrock" - }, + "description": "LDC.fr website", "repositories": [ { "type": "composer", "url": "https://wpackagist.org", "only": ["wpackagist-plugin/*", "wpackagist-theme/*"] + }, + { + "type": "composer", + "url": "https://lab.s-web.fr/api/v4/group/23/-/packages/composer/packages.json" + }, + { + "type": "composer", + "url": "https://connect.advancedcustomfields.com" } ], "require": { @@ -40,7 +27,15 @@ "roots/wordpress": "6.7.2", "roots/wp-config": "1.0.0", "roots/wp-password-bcrypt": "1.2.0", - "wpackagist-theme/twentytwentyfive": "^1.0" + "uwil/ldc-theme": "^1.0", + "ldc/ldccrmv4client": "^4.0", + "wpackagist-plugin/breadcrumb-navxt": "^7.4", + "wpengine/advanced-custom-fields-pro": "^6.3", + "wpackagist-plugin/ajax-load-more": "^7.3", + "uwil/admin-secure-wp": "^2.0", + "wpackagist-plugin/pagination": "^1.2", + "wpackagist-plugin/duplicate-post": "^4.5", + "wpackagist-plugin/webp-express": "^0.25.9" }, "require-dev": { "roave/security-advisories": "dev-latest", @@ -58,11 +53,19 @@ "prefer-stable": true, "extra": { "installer-paths": { - "web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"], - "web/app/plugins/{$name}/": ["type:wordpress-plugin"], - "web/app/themes/{$name}/": ["type:wordpress-theme"] + "public/app/mu-plugins/{$name}/": [ + "type:wordpress-muplugin", + "wpackagist-plugin/breadcrumb-navxt", + "wpengine/advanced-custom-fields-pro", + "wpackagist-plugin/ajax-load-more", + "wpackagist-plugin/webp-express", + "wpackagist-plugin/wp-pagenavi", + "wpackagist-plugin/duplicate-post" + ], + "public/app/plugins/{$name}/": ["type:wordpress-plugin"], + "public/app/themes/{$name}/": ["type:wordpress-theme"] }, - "wordpress-install-dir": "web/wp" + "wordpress-install-dir": "public/wp" }, "scripts": { "lint": "pint --test", diff --git a/composer.lock b/composer.lock index fb951610..e835e0c6 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": "2099ee438a5f0ac37dc987dc4968ac6c", + "content-hash": "05a3fa7d8cd6046274b4cb42b062067b", "packages": [ { "name": "composer/installers", @@ -152,6 +152,97 @@ ], "time": "2024-06-24T20:46:46+00:00" }, + { + "name": "doctrine/inflector", + "version": "2.0.10", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^11.0", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "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.0.10" + }, + "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": "2024-02-18T20:23:39+00:00" + }, { "name": "graham-campbell/result-type", "version": "v1.1.3", @@ -214,6 +305,388 @@ ], "time": "2024-07-20T21:45:45+00:00" }, + { + "name": "guzzlehttp/guzzle", + "version": "7.9.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0.3", + "guzzlehttp/psr7": "^2.7.0", + "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.9.2" + }, + "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": "2024-07-24T11:22:20+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455", + "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" + }, + "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.0.4" + }, + "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": "2024-10-17T10:06:22+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "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.39 || ^9.6.20" + }, + "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.7.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": "2024-07-18T11:15:46+00:00" + }, + { + "name": "ldc/ldccrmv4client", + "version": "4.0.9", + "source": { + "type": "git", + "url": "git@lab.s-web.fr:ldc-web/projets/crm-client.git", + "reference": "b54f61add50e93c68d26cadbe55d29216fcfc666" + }, + "dist": { + "type": "zip", + "url": "https://lab.s-web.fr/api/v4/projects/26/packages/composer/archives/ldc/ldccrmv4client.zip?sha=b54f61add50e93c68d26cadbe55d29216fcfc666", + "reference": "b54f61add50e93c68d26cadbe55d29216fcfc666", + "shasum": "" + }, + "require": { + "doctrine/inflector": "^2.0", + "ext-curl": "*", + "guzzlehttp/guzzle": "^7.4", + "php": "^8.2", + "respect/validation": "^2.2" + }, + "require-dev": { + "orchestra/testbench": "^8.10", + "phpunit/phpunit": "9.6", + "slevomat/coding-standard": "^8.10", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "LDC\\LDCCRM\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "LDC\\LDCCRM\\Tests\\": "tests" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jérémy Munsch", + "email": "jeremy.munsch@ldc.fr", + "homepage": "https://jeremydev.ovh" + } + ], + "description": "LDC CRM Client V4", + "homepage": "https://github.com/kwaadpepper", + "keywords": [ + "CRM", + "Client", + "LDC", + "Laravel" + ] + }, { "name": "oscarotero/env", "version": "v2.1.1", @@ -344,6 +817,332 @@ ], "time": "2024-07-20T21:41:07+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": "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": "respect/stringifier", + "version": "0.2.0", + "source": { + "type": "git", + "url": "https://github.com/Respect/Stringifier.git", + "reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Respect/Stringifier/zipball/e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59", + "reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.8", + "malukenho/docheader": "^0.1.7", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "autoload": { + "files": [ + "src/stringify.php" + ], + "psr-4": { + "Respect\\Stringifier\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Respect/Stringifier Contributors", + "homepage": "https://github.com/Respect/Stringifier/graphs/contributors" + } + ], + "description": "Converts any value to a string", + "homepage": "http://respect.github.io/Stringifier/", + "keywords": [ + "respect", + "stringifier", + "stringify" + ], + "support": { + "issues": "https://github.com/Respect/Stringifier/issues", + "source": "https://github.com/Respect/Stringifier/tree/0.2.0" + }, + "time": "2017-12-29T19:39:25+00:00" + }, + { + "name": "respect/validation", + "version": "2.4.0", + "source": { + "type": "git", + "url": "https://github.com/Respect/Validation.git", + "reference": "48b38bd91e0badbc2c4381dce726b09fd68850d9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Respect/Validation/zipball/48b38bd91e0badbc2c4381dce726b09fd68850d9", + "reference": "48b38bd91e0badbc2c4381dce726b09fd68850d9", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "respect/stringifier": "^0.2.0", + "symfony/polyfill-mbstring": "^1.2" + }, + "require-dev": { + "egulias/email-validator": "^3.0", + "giggsey/libphonenumber-for-php-lite": "^8.13", + "malukenho/docheader": "^1.0", + "mikey179/vfsstream": "^1.6", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.6", + "psr/http-message": "^1.0", + "respect/coding-standard": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "suggest": { + "egulias/email-validator": "Improves the Email rule if available", + "ext-bcmath": "Arbitrary Precision Mathematics", + "ext-fileinfo": "File Information", + "ext-mbstring": "Multibyte String Functions", + "giggsey/libphonenumber-for-php-lite": "Enables the phone rule if available" + }, + "type": "library", + "autoload": { + "psr-4": { + "Respect\\Validation\\": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Respect/Validation Contributors", + "homepage": "https://github.com/Respect/Validation/graphs/contributors" + } + ], + "description": "The most awesome validation engine ever created for PHP", + "homepage": "http://respect.github.io/Validation/", + "keywords": [ + "respect", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/Respect/Validation/issues", + "source": "https://github.com/Respect/Validation/tree/2.4.0" + }, + "time": "2025-01-07T00:34:58+00:00" + }, { "name": "roots/bedrock-autoloader", "version": "1.0.4", @@ -769,6 +1568,73 @@ ], "time": "2024-09-10T23:11:22+00:00" }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-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.5.1" + }, + "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": "2024-09-25T14:20:29+00:00" + }, { "name": "symfony/polyfill-ctype", "version": "v1.30.0", @@ -1008,6 +1874,40 @@ ], "time": "2024-05-31T15:07:36+00:00" }, + { + "name": "uwil/admin-secure-wp", + "version": "2.0.0", + "source": { + "type": "git", + "url": "git@lab.s-web.fr:ldc-web/projets/admin-secure-wp.git", + "reference": "e1fa99a4f10c2ee205714911f459da115b3034d0" + }, + "dist": { + "type": "zip", + "url": "https://lab.s-web.fr/api/v4/projects/101/packages/composer/archives/uwil/admin-secure-wp.zip?sha=e1fa99a4f10c2ee205714911f459da115b3034d0", + "reference": "e1fa99a4f10c2ee205714911f459da115b3034d0", + "shasum": "" + }, + "type": "wordpress-muplugin", + "description": "Sécurisation des BO via LDC Web." + }, + { + "name": "uwil/ldc-theme", + "version": "1.0.0", + "source": { + "type": "git", + "url": "git@lab.s-web.fr:ldc-web/projets/ldc-theme.git", + "reference": "480d559612c385038a797912f6be97af8832f718" + }, + "dist": { + "type": "zip", + "url": "https://lab.s-web.fr/api/v4/projects/232/packages/composer/archives/uwil/ldc-theme.zip?sha=480d559612c385038a797912f6be97af8832f718", + "reference": "480d559612c385038a797912f6be97af8832f718", + "shasum": "" + }, + "type": "wordpress-theme", + "description": "WP Theme for LDC.fr" + }, { "name": "vlucas/phpdotenv", "version": "v5.6.1", @@ -1093,22 +1993,110 @@ "time": "2024-07-20T21:52:34+00:00" }, { - "name": "wpackagist-theme/twentytwentyfive", - "version": "1.1", + "name": "wpackagist-plugin/ajax-load-more", + "version": "7.3.1", "source": { "type": "svn", - "url": "https://themes.svn.wordpress.org/twentytwentyfive/", - "reference": "1.1" + "url": "https://plugins.svn.wordpress.org/ajax-load-more/", + "reference": "tags/7.3.1" }, "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/theme/twentytwentyfive.1.1.zip" + "url": "https://downloads.wordpress.org/plugin/ajax-load-more.7.3.1.zip" }, "require": { "composer/installers": "^1.0 || ^2.0" }, - "type": "wordpress-theme", - "homepage": "https://wordpress.org/themes/twentytwentyfive/" + "type": "wordpress-plugin", + "homepage": "https://wordpress.org/plugins/ajax-load-more/" + }, + { + "name": "wpackagist-plugin/breadcrumb-navxt", + "version": "7.4.1", + "source": { + "type": "svn", + "url": "https://plugins.svn.wordpress.org/breadcrumb-navxt/", + "reference": "tags/7.4.1" + }, + "dist": { + "type": "zip", + "url": "https://downloads.wordpress.org/plugin/breadcrumb-navxt.7.4.1.zip" + }, + "require": { + "composer/installers": "^1.0 || ^2.0" + }, + "type": "wordpress-plugin", + "homepage": "https://wordpress.org/plugins/breadcrumb-navxt/" + }, + { + "name": "wpackagist-plugin/duplicate-post", + "version": "4.5", + "source": { + "type": "svn", + "url": "https://plugins.svn.wordpress.org/duplicate-post/", + "reference": "tags/4.5" + }, + "dist": { + "type": "zip", + "url": "https://downloads.wordpress.org/plugin/duplicate-post.4.5.zip" + }, + "require": { + "composer/installers": "^1.0 || ^2.0" + }, + "type": "wordpress-plugin", + "homepage": "https://wordpress.org/plugins/duplicate-post/" + }, + { + "name": "wpackagist-plugin/pagination", + "version": "1.2.6", + "source": { + "type": "svn", + "url": "https://plugins.svn.wordpress.org/pagination/", + "reference": "tags/1.2.6" + }, + "dist": { + "type": "zip", + "url": "https://downloads.wordpress.org/plugin/pagination.1.2.6.zip" + }, + "require": { + "composer/installers": "^1.0 || ^2.0" + }, + "type": "wordpress-plugin", + "homepage": "https://wordpress.org/plugins/pagination/" + }, + { + "name": "wpackagist-plugin/webp-express", + "version": "0.25.9", + "source": { + "type": "svn", + "url": "https://plugins.svn.wordpress.org/webp-express/", + "reference": "tags/0.25.9" + }, + "dist": { + "type": "zip", + "url": "https://downloads.wordpress.org/plugin/webp-express.0.25.9.zip" + }, + "require": { + "composer/installers": "^1.0 || ^2.0" + }, + "type": "wordpress-plugin", + "homepage": "https://wordpress.org/plugins/webp-express/" + }, + { + "name": "wpengine/advanced-custom-fields-pro", + "version": "6.3.12", + "dist": { + "type": "zip", + "url": "https://connect.advancedcustomfields.com/v2/plugins/composer_download?s=composer&p=pro&t=6.3.12" + }, + "require": { + "composer/installers": "~1.0 || ~2.0" + }, + "replace": { + "wpackagist-plugin/advanced-custom-fields": "self.version", + "wpengine/advanced-custom-fields": "self.version" + }, + "type": "wordpress-plugin" } ], "packages-dev": [ diff --git a/config/application.php b/config/application.php index 230039a0..4b1e903b 100644 --- a/config/application.php +++ b/config/application.php @@ -28,7 +28,7 @@ $root_dir = dirname(__DIR__); * * @var string */ -$webroot_dir = $root_dir . '/web'; +$webroot_dir = $root_dir . '/public'; /** * Use Dotenv to set required environment variables and load .env file in root @@ -156,6 +156,15 @@ if (file_exists($env_config)) { require_once $env_config; } +/** + * Custom config + */ +$custom_config = __DIR__ . '/custom.php'; + +if (file_exists($custom_config)) { + require_once $custom_config; +} + Config::apply(); /** diff --git a/config/custom.php b/config/custom.php new file mode 100644 index 00000000..94866c60 --- /dev/null +++ b/config/custom.php @@ -0,0 +1,42 @@ +