Merge branch 'MDL-82824-main' of https://github.com/andrewnicols/moodle
This commit is contained in:
@@ -16,10 +16,6 @@
|
||||
|
||||
namespace factor_webauthn;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->libdir . '/webauthn/src/WebAuthn.php');
|
||||
|
||||
use lbuchs\WebAuthn\Binary\ByteBuffer;
|
||||
use lbuchs\WebAuthn\WebAuthn;
|
||||
use lbuchs\WebAuthn\WebAuthnException;
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"homepage": "http://aws.amazon.com/sdkforphp",
|
||||
"description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project",
|
||||
"keywords": ["aws","amazon","sdk","s3","ec2","dynamodb","cloud","glacier"],
|
||||
"type": "library",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Amazon Web Services",
|
||||
"homepage": "http://aws.amazon.com"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
|
||||
"issues": "https://github.com/aws/aws-sdk-php/issues"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5",
|
||||
"guzzlehttp/guzzle": "^6.5.8 || ^7.4.5",
|
||||
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
|
||||
"guzzlehttp/promises": "^1.4.0",
|
||||
"mtdowling/jmespath.php": "^2.6",
|
||||
"ext-pcre": "*",
|
||||
"ext-json": "*",
|
||||
"ext-simplexml": "*",
|
||||
"aws/aws-crt-php": "^1.0.4",
|
||||
"psr/http-message": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"composer/composer" : "^1.10.22",
|
||||
"ext-openssl": "*",
|
||||
"ext-dom": "*",
|
||||
"ext-pcntl": "*",
|
||||
"ext-sockets": "*",
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.6.3 || ^9.5",
|
||||
"behat/behat": "~3.0",
|
||||
"doctrine/cache": "~1.4",
|
||||
"aws/aws-php-sns-message-validator": "~1.0",
|
||||
"nette/neon": "^2.3",
|
||||
"andrewsville/php-token-reflection": "^1.4",
|
||||
"psr/cache": "^1.0",
|
||||
"psr/simple-cache": "^1.0",
|
||||
"paragonie/random_compat": ">= 2",
|
||||
"sebastian/comparator": "^1.2.3 || ^4.0",
|
||||
"yoast/phpunit-polyfills": "^1.0",
|
||||
"dms/phpunit-arraysubset-asserts": "^0.4.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages",
|
||||
"ext-curl": "To send requests using cURL",
|
||||
"ext-sockets": "To use client-side monitoring",
|
||||
"doctrine/cache": "To use the DoctrineCacheAdapter",
|
||||
"aws/aws-php-sns-message-validator": "To validate incoming SNS notifications"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Aws\\": "src/"
|
||||
},
|
||||
"files": ["src/functions.php"]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Aws\\Test\\": "tests/"
|
||||
},
|
||||
"classmap": ["build/"]
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+42
-36
@@ -99,58 +99,63 @@ class component {
|
||||
/** @var array associative array of PSR-0 namespaces and corresponding paths. */
|
||||
protected static $psr0namespaces = [
|
||||
'Mustache' => 'lib/mustache/src/Mustache',
|
||||
'CFPropertyList' => 'lib/plist/classes/CFPropertyList',
|
||||
];
|
||||
/** @var array<string|array<string>> associative array of PRS-4 namespaces and corresponding paths. */
|
||||
protected static $psr4namespaces = [
|
||||
\Html2Text::class => 'lib/html2text/src',
|
||||
\MaxMind::class => 'lib/maxmind/MaxMind',
|
||||
\GeoIp2::class => 'lib/maxmind/GeoIp2',
|
||||
\Sabberworm\CSS::class => 'lib/php-css-parser',
|
||||
\MoodleHQ\RTLCSS::class => 'lib/rtlcss',
|
||||
\ScssPhp\ScssPhp::class => 'lib/scssphp',
|
||||
\OpenSpout::class => 'lib/openspout/src',
|
||||
\MatthiasMullie\Minify::class => 'lib/minify/matthiasmullie-minify/src/',
|
||||
\MatthiasMullie\PathConverter::class => 'lib/minify/matthiasmullie-pathconverter/src/',
|
||||
\IMSGlobal\LTI::class => 'lib/ltiprovider/src',
|
||||
\Packback\Lti1p3::class => 'lib/lti1p3/src',
|
||||
\Phpml::class => 'lib/mlbackend/php/phpml/src/Phpml',
|
||||
\PHPMailer\PHPMailer::class => 'lib/phpmailer/src',
|
||||
\RedeyeVentures\GeoPattern::class => 'lib/geopattern-php/GeoPattern',
|
||||
\Aws::class => 'lib/aws-sdk/src',
|
||||
\CFPropertyList::class => 'lib/plist/src/CFPropertyList',
|
||||
\Complex::class => 'lib/phpspreadsheet/markbaker/classes/src',
|
||||
\DI::class => 'lib/php-di/php-di/src',
|
||||
\GeoIp2::class => 'lib/maxmind/GeoIp2/src',
|
||||
\FastRoute::class => 'lib/nikic/fast-route/src',
|
||||
\Firebase\JWT::class => 'lib/php-jwt/src',
|
||||
\ZipStream::class => 'lib/zipstream/src/',
|
||||
\GuzzleHttp::class => 'lib/guzzlehttp/guzzle/src',
|
||||
\GuzzleHttp\Promise::class => 'lib/guzzlehttp/promises/src',
|
||||
\GuzzleHttp\Psr7::class => 'lib/guzzlehttp/psr7/src',
|
||||
\Html2Text::class => 'lib/html2text/src',
|
||||
\IMSGlobal\LTI::class => 'lib/ltiprovider/src',
|
||||
\Invoker::class => 'lib/php-di/invoker/src',
|
||||
\JmesPath::class => 'lib/jmespath/src',
|
||||
\Kevinrob\GuzzleCache::class => 'lib/guzzlehttp/kevinrob/guzzlecache/src',
|
||||
\Laravel\SerializableClosure::class => 'lib/laravel/serializable-closure/src',
|
||||
\lbuchs\WebAuthn::class => 'lib/webauthn/src',
|
||||
\libphonenumber::class => 'lib/giggsey/libphonenumber-for-php-lite/src',
|
||||
\Matrix::class => 'lib/phpspreadsheet/markbaker/classes/src',
|
||||
\MatthiasMullie\Minify::class => 'lib/minify/matthiasmullie-minify/src',
|
||||
\MatthiasMullie\PathConverter::class => 'lib/minify/matthiasmullie-pathconverter/src',
|
||||
\MaxMind\Db::class => 'lib/maxmind/MaxMind/src/MaxMind/Db',
|
||||
\Michelf::class => 'lib/markdown/Michelf',
|
||||
\MoodleHQ::class => [
|
||||
'lib/rtlcss/src/MoodleHQ',
|
||||
],
|
||||
\MyCLabs\Enum::class => 'lib/php-enum/src',
|
||||
\PhpXmlRpc::class => 'lib/phpxmlrpc',
|
||||
\OpenSpout::class => 'lib/openspout/src',
|
||||
\Packback\Lti1p3::class => 'lib/lti1p3/src',
|
||||
\PHPMailer\PHPMailer::class => 'lib/phpmailer/src',
|
||||
\PhpOffice\PhpSpreadsheet::class => 'lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet',
|
||||
\PhpXmlRpc::class => 'lib/phpxmlrpc/src',
|
||||
\Phpml::class => 'lib/mlbackend/php/phpml/src/Phpml',
|
||||
\Psr\Clock::class => 'lib/psr/clock/src',
|
||||
\Psr\Container::class => 'lib/psr/container/src',
|
||||
\Psr\EventDispatcher::class => 'lib/psr/event-dispatcher/src',
|
||||
\Psr\Http\Client::class => 'lib/psr/http-client/src',
|
||||
\Psr\Http\Message::class => [
|
||||
'lib/psr/http-message/src',
|
||||
'lib/psr/http-factory/src',
|
||||
'lib/psr/http-message/src',
|
||||
],
|
||||
\Psr\Http\Server::class => [
|
||||
"lib/psr/http-server-handler/src",
|
||||
"lib/psr/http-server-middleware/src",
|
||||
],
|
||||
\Psr\EventDispatcher::class => 'lib/psr/event-dispatcher/src',
|
||||
\Psr\Clock::class => 'lib/psr/clock/src',
|
||||
\Psr\Container::class => 'lib/psr/container/src',
|
||||
\Psr\Log::class => "lib/psr/log/src",
|
||||
\Psr\SimpleCache::class => 'lib/psr/simple-cache/src',
|
||||
\GuzzleHttp\Psr7::class => 'lib/guzzlehttp/psr7/src',
|
||||
\GuzzleHttp\Promise::class => 'lib/guzzlehttp/promises/src',
|
||||
\GuzzleHttp::class => 'lib/guzzlehttp/guzzle/src',
|
||||
\Kevinrob\GuzzleCache::class => 'lib/guzzlehttp/kevinrob/guzzlecache/src',
|
||||
\Aws::class => 'lib/aws-sdk/src',
|
||||
\JmesPath::class => 'lib/jmespath/src',
|
||||
\Laravel\SerializableClosure::class => 'lib/laravel/serializable-closure/src',
|
||||
\DI::class => 'lib/php-di/php-di/src',
|
||||
\Complex::class => 'lib/phpspreadsheet/markbaker/classes/src',
|
||||
\Matrix::class => 'lib/phpspreadsheet/markbaker/classes/src',
|
||||
\PhpOffice\PhpSpreadsheet::class => 'lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet',
|
||||
\Invoker::class => 'lib/php-di/invoker/src',
|
||||
\FastRoute::class => 'lib/nikic/fast-route/src',
|
||||
\RedeyeVentures::class => 'lib/geopattern-php/src',
|
||||
\Sabberworm\CSS::class => 'lib/php-css-parser/src',
|
||||
\ScssPhp\ScssPhp::class => 'lib/scssphp/src',
|
||||
\SimplePie::class => 'lib/simplepie/src',
|
||||
\Slim::class => 'lib/slim/slim/Slim',
|
||||
\libphonenumber::class => 'lib/giggsey/libphonenumber-for-php-lite/src',
|
||||
\Spatie\Cloneable::class => 'lib/spatie/php-cloneable/src',
|
||||
\ZipStream::class => 'lib/zipstream/src',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -166,8 +171,9 @@ class component {
|
||||
'lib/aws-sdk/src/functions.php',
|
||||
'lib/guzzlehttp/guzzle/src/functions_include.php',
|
||||
'lib/jmespath/src/JmesPath.php',
|
||||
'lib/nikic/fast-route/src/functions.php',
|
||||
'lib/php-di/php-di/src/functions.php',
|
||||
'lib/ralouphi/getallheaders/src/getallheaders.php',
|
||||
'lib/ralouphie/getallheaders/src/getallheaders.php',
|
||||
'lib/symfony/deprecation-contracts/function.php',
|
||||
];
|
||||
|
||||
|
||||
@@ -145,11 +145,6 @@ class router {
|
||||
protected function create_app(
|
||||
string $basepath = '',
|
||||
): void {
|
||||
global $CFG;
|
||||
|
||||
// PHP Does not support autoloading functions.
|
||||
require_once("{$CFG->libdir}/nikic/fast-route/src/functions.php");
|
||||
|
||||
// Create an App using the DI Bridge.
|
||||
$this->app = router\bridge::create();
|
||||
|
||||
|
||||
@@ -175,13 +175,9 @@ abstract class route_testcase extends \advanced_testcase {
|
||||
* @return App
|
||||
*/
|
||||
protected function get_simple_app(): App {
|
||||
global $CFG;
|
||||
require_once("{$CFG->libdir}/nikic/fast-route/src/functions.php");
|
||||
$app = bridge::create(
|
||||
return bridge::create(
|
||||
container: \core\di::get_container(),
|
||||
);
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "redeyeventures/geopattern",
|
||||
"description": "Generate beautiful SVG patterns.",
|
||||
"type": "library",
|
||||
"keywords": ["svg", "pattern", "geometric", "background"],
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Anand Capur",
|
||||
"email": "[email protected]",
|
||||
"homepage": "http://redeyeventures.com"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/redeyeventures/geopattern-php",
|
||||
"issues": "https://github.com/redeyeventures/geopattern-php/issues"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RedeyeVentures\\": "src/"
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "3.7.*"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "google/apiclient",
|
||||
"type": "library",
|
||||
"description": "Client library for Google APIs",
|
||||
"keywords": ["google"],
|
||||
"homepage": "http://developers.google.com/api-client-library/php",
|
||||
"license": "Apache-2.0",
|
||||
"require": {
|
||||
"php": ">=5.2.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "3.7.*",
|
||||
"squizlabs/php_codesniffer": "~2.3"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.1.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "packbackbooks/lti-1p3-tool",
|
||||
"type": "library",
|
||||
"description": "A library used for building IMS-certified LTI 1.3 tool providers in PHP.",
|
||||
"license": "Apache-2.0",
|
||||
"keywords": [
|
||||
"lti"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Davo Hynds",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
{
|
||||
"name": "Eric Tendian",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
{
|
||||
"name": "Martin Lenord",
|
||||
"email": "[email protected]"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"firebase/php-jwt": "^6.6",
|
||||
"guzzlehttp/guzzle": "^7.0",
|
||||
"phpseclib/phpseclib": "^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^1.4",
|
||||
"nesbot/carbon": "^2.43",
|
||||
"laravel/pint": "^1.0",
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"phpunit/phpunit": "^9.0|^10.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Packback\\Lti1p3\\": "src"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit",
|
||||
"lint": [
|
||||
"pint --test",
|
||||
"phpstan analyse"
|
||||
],
|
||||
"lint-fix": "pint -v"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "imsglobal/lti",
|
||||
"version" : "3.0.2",
|
||||
"description": "LTI Tool Provider Library",
|
||||
"keywords": ["lti"],
|
||||
"homepage": "https://www.imsglobal.org/lti",
|
||||
"type": "library",
|
||||
"license": "Apache-2.0",
|
||||
"authors":[
|
||||
{
|
||||
"name": "Stephen Vickers",
|
||||
"email": "[email protected]"
|
||||
}
|
||||
],
|
||||
"require":{
|
||||
"php": ">=5.6.0"
|
||||
},
|
||||
"autoload":{
|
||||
"psr-4": {
|
||||
"IMSGlobal\\LTI\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"name": "michelf/php-markdown",
|
||||
"type": "library",
|
||||
"description": "PHP Markdown",
|
||||
"homepage": "https://michelf.ca/projects/php-markdown/",
|
||||
"keywords": ["markdown"],
|
||||
"license": "BSD-3-Clause",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Michel Fortin",
|
||||
"email": "[email protected]",
|
||||
"homepage": "https://michelf.ca/",
|
||||
"role": "Developer"
|
||||
},
|
||||
{
|
||||
"name": "John Gruber",
|
||||
"homepage": "https://daringfireball.net/"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": { "Michelf\\": "Michelf/" }
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.0",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"phpstan/phpstan": ">=1.0",
|
||||
"phpstan/phpstan-phpunit": ">=1.0"
|
||||
},
|
||||
|
||||
"scripts": {
|
||||
"tests": "vendor/bin/phpunit test/",
|
||||
"phpstan": [
|
||||
"vendor/bin/phpstan analyse Michelf/ --level=5",
|
||||
"vendor/bin/phpstan analyse -c test/phpstan.neon test/ --level=5"
|
||||
],
|
||||
"codestyle": "vendor/bin/php-cs-fixer fix Michelf --dry-run --verbose --show-progress=none",
|
||||
"codestyle-fix": "vendor/bin/php-cs-fixer fix Michelf"
|
||||
},
|
||||
|
||||
"archive": {
|
||||
"exclude": [
|
||||
"/.github/",
|
||||
"/test/",
|
||||
"/.editorconfig",
|
||||
"/.gitignore",
|
||||
"/.scrutinizer.yml",
|
||||
"/.travis.yml",
|
||||
"/phpunit.xml.dist"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,8 @@ Description of Markdown Extra import into Moodle
|
||||
|
||||
Procedure:
|
||||
* download latest version from https://github.com/michelf/php-markdown/tags
|
||||
* copy the classes and Readme.md file to lib/markdown/* , Note .inc files need not be copied.
|
||||
* copy the classes file to lib/markdown/Michelf/* , Note .inc files need not be copied.
|
||||
* copy the readme file to lib/markdown/.
|
||||
* update function markdown_to_html() in lib/weblib.php if necessary,
|
||||
note that we require the php files manually for performance reasons
|
||||
* run phpunit tests (all PHP versions)
|
||||
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* PSR-4 autoloader implementation for the MaxMind\DB namespace.
|
||||
* First we define the 'mmdb_autoload' function, and then we register
|
||||
* it with 'spl_autoload_register' so that PHP knows to use it.
|
||||
*
|
||||
* @param mixed $class
|
||||
*/
|
||||
|
||||
/**
|
||||
* Automatically include the file that defines <code>class</code>.
|
||||
*
|
||||
* @param string $class
|
||||
* the name of the class to load
|
||||
*/
|
||||
function mmdb_autoload($class): void
|
||||
{
|
||||
/*
|
||||
* A project-specific mapping between the namespaces and where
|
||||
* they're located. By convention, we include the trailing
|
||||
* slashes. The one-element array here simply makes things easy
|
||||
* to extend in the future if (for example) the test classes
|
||||
* begin to use one another.
|
||||
*/
|
||||
$namespace_map = ['MaxMind\\Db\\' => __DIR__ . '/src/MaxMind/Db/'];
|
||||
|
||||
foreach ($namespace_map as $prefix => $dir) {
|
||||
// First swap out the namespace prefix with a directory...
|
||||
$path = str_replace($prefix, $dir, $class);
|
||||
|
||||
// replace the namespace separator with a directory separator...
|
||||
$path = str_replace('\\', '/', $path);
|
||||
|
||||
// and finally, add the PHP file extension to the result.
|
||||
$path .= '.php';
|
||||
|
||||
// $path should now contain the path to a PHP file defining $class
|
||||
if (file_exists($path)) {
|
||||
include $path;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spl_autoload_register('mmdb_autoload');
|
||||
@@ -24,8 +24,9 @@ unzip vX.Y.Z.zip
|
||||
unzip vX.Y.Z.zip
|
||||
|
||||
3) Move the source code directories into place
|
||||
rm -rf lib/maxmind/GeoIp2/src lib/maxmind/MaxMind/src
|
||||
mv GeoIP2-php-X.Y.Z/src/ /path/to/moodle/lib/maxmind/GeoIp2/
|
||||
mv MaxMind-DB-Reader-php-X.Y.Z/src/MaxMind/ /path/to/moodle/lib/maxmind/MaxMind/
|
||||
mv MaxMind-DB-Reader-php-X.Y.Z/src/ /path/to/moodle/lib/maxmind/MaxMind/
|
||||
|
||||
4) Update other MaxMind related files:
|
||||
mv GeoIP2-php-X.Y.Z/CHANGELOG.md /path/to/moodle/lib/maxmind/GeoIp2/
|
||||
@@ -37,7 +38,6 @@ mv MaxMind-DB-Reader-php-X.Y.Z/LICENSE /path/to/moodle/lib/maxmind/MaxMind/
|
||||
mv MaxMind-DB-Reader-php-X.Y.Z/CHANGELOG.md /path/to/moodle/lib/maxmind/MaxMind/
|
||||
mv MaxMind-DB-Reader-php-X.Y.Z/README.md /path/to/moodle/lib/maxmind/MaxMind/
|
||||
mv MaxMind-DB-Reader-php-X.Y.Z/composer.json /path/to/moodle/lib/maxmind/MaxMind/
|
||||
mv MaxMind-DB-Reader-php-X.Y.Z/autoload.php /path/to/moodle/lib/maxmind/MaxMind/
|
||||
|
||||
5) Run unit tests on iplookup/tests/geoip_test.php.
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "matthiasmullie/minify",
|
||||
"type": "library",
|
||||
"description": "CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.",
|
||||
"keywords": ["minify", "minifier", "css", "js", "javascript"],
|
||||
"homepage": "https://github.com/matthiasmullie/minify",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matthias Mullie",
|
||||
"homepage": "https://www.mullie.eu",
|
||||
"email": "[email protected]",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"ext-pcre": "*",
|
||||
"matthiasmullie/path-converter": "~1.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": ">=2.0",
|
||||
"matthiasmullie/scrapbook": ">=1.3",
|
||||
"phpunit/phpunit": ">=4.8",
|
||||
"squizlabs/php_codesniffer": ">=3.0"
|
||||
},
|
||||
"suggest": {
|
||||
"psr/cache-implementation": "Cache implementation to use with Minify::cache"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"MatthiasMullie\\Minify\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"MatthiasMullie\\Minify\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/minifycss",
|
||||
"bin/minifyjs"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "matthiasmullie/path-converter",
|
||||
"type": "library",
|
||||
"description": "Relative path converter",
|
||||
"keywords": ["relative", "path", "converter", "paths"],
|
||||
"homepage": "http://github.com/matthiasmullie/path-converter",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matthias Mullie",
|
||||
"homepage": "http://www.mullie.eu",
|
||||
"email": "[email protected]",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"ext-pcre": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~4.8"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"MatthiasMullie\\PathConverter\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "mustache/mustache",
|
||||
"description": "A Mustache implementation in PHP.",
|
||||
"keywords": ["templating", "mustache"],
|
||||
"homepage": "https://github.com/bobthecow/mustache.php",
|
||||
"type": "library",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Justin Hileman",
|
||||
"email": "[email protected]",
|
||||
"homepage": "http://justinhileman.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.2.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~3.7|~4.0|~5.0",
|
||||
"friendsofphp/php-cs-fixer": "~1.11"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": { "Mustache": "src/" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"name": "openspout/openspout",
|
||||
"description": "PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way",
|
||||
"license": "MIT",
|
||||
"type": "library",
|
||||
"keywords": [
|
||||
"php",
|
||||
"read",
|
||||
"write",
|
||||
"csv",
|
||||
"xlsx",
|
||||
"ods",
|
||||
"odf",
|
||||
"open",
|
||||
"office",
|
||||
"excel",
|
||||
"spreadsheet",
|
||||
"scale",
|
||||
"memory",
|
||||
"stream",
|
||||
"ooxml"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Adrien Loison",
|
||||
"email": "[email protected]"
|
||||
}
|
||||
],
|
||||
"homepage": "https://github.com/openspout/openspout",
|
||||
"require": {
|
||||
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
|
||||
"ext-dom": "*",
|
||||
"ext-fileinfo": "*",
|
||||
"ext-filter": "*",
|
||||
"ext-libxml": "*",
|
||||
"ext-xmlreader": "*",
|
||||
"ext-zip": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-zlib": "*",
|
||||
"friendsofphp/php-cs-fixer": "^3.46.0",
|
||||
"infection/infection": "^0.27.9",
|
||||
"phpbench/phpbench": "^1.2.15",
|
||||
"phpstan/phpstan": "^1.10.55",
|
||||
"phpstan/phpstan-phpunit": "^1.3.15",
|
||||
"phpstan/phpstan-strict-rules": "^1.5.2",
|
||||
"phpunit/phpunit": "^10.5.5"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-iconv": "To handle non UTF-8 CSV files (if \"php-mbstring\" is not already installed or is too limited)",
|
||||
"ext-mbstring": "To handle non UTF-8 CSV files (if \"iconv\" is not already installed)"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"OpenSpout\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"OpenSpout\\Benchmarks\\": "benchmarks/"
|
||||
},
|
||||
"classmap": [
|
||||
"tests/"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"infection/extension-installer": true
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.3.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"name": "sabberworm/php-css-parser",
|
||||
"type": "library",
|
||||
"description": "Parser for CSS Files written in PHP",
|
||||
"keywords": [
|
||||
"parser",
|
||||
"css",
|
||||
"stylesheet"
|
||||
],
|
||||
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Raphael Schweikert"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6.20",
|
||||
"ext-iconv": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.36",
|
||||
"codacy/coverage": "^1.4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "for parsing UTF-8 CSS"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Sabberworm\\CSS\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Sabberworm\\CSS\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"ci": [
|
||||
"@ci:static"
|
||||
],
|
||||
"ci:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots bin src tests",
|
||||
"ci:php:sniffer": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests",
|
||||
"ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon",
|
||||
"ci:static": [
|
||||
"@ci:php:fixer",
|
||||
"@ci:php:sniffer",
|
||||
"@ci:php:stan"
|
||||
],
|
||||
"fix:php": [
|
||||
"@fix:php:fixer",
|
||||
"@fix:php:sniffer"
|
||||
],
|
||||
"fix:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix bin src tests",
|
||||
"fix:php:sniffer": "@php ./.phive/phpcbf.phar --standard=config/phpcs.xml bin src tests",
|
||||
"phpstan:baseline": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon"
|
||||
},
|
||||
"scripts-descriptions": {
|
||||
"ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).",
|
||||
"ci:php:fixer": "Checks the code style with PHP CS Fixer.",
|
||||
"ci:php:sniffer": "Checks the code style with PHP_CodeSniffer.",
|
||||
"ci:php:stan": "Checks the types with PHPStan.",
|
||||
"ci:static": "Runs all static code analysis checks for the code.",
|
||||
"fix:php": "Autofixes all autofixable issues in the PHP code.",
|
||||
"fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.",
|
||||
"fix:php:sniffer": "Fixes autofixable issues found by PHP_CodeSniffer.",
|
||||
"phpstand:baseline": "Updates the PHPStan baseline file to match the code."
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user