diff --git a/README.md b/README.md index c2000de1..50f0c6b6 100644 --- a/README.md +++ b/README.md @@ -188,8 +188,8 @@ return [ |-------------------------------------------------------------------------- | | Here you can specify the options of the http client. For example, in a - | local development environment you may want to disable the SSL - | certificate integrity check. + | local development environment you may want to disable the SSL + | certificate integrity check. | | An example of a http option: | 'verify' => false @@ -239,6 +239,7 @@ These checks are available in the package. You can add or remove checks in the c ## Usage ### Running the scanner in a local environment + If you are using auto signed SSL certificates in your local development environment, you may want to disable the SSL certificate integrity check. You can do this by adding the following option to the `http_options` array in the config file: ```php @@ -267,6 +268,14 @@ To check the SEO score of your routes, run the following command: php artisan seo:scan ``` +If you want to queue the scan and trigger it manually you can dispatch the 'Scan' job: + +```php +use Vormkracht10\LaravelSeo\Jobs\Scan; + +Scan::dispatch(); +``` + ### Scanning a single route Want to get the score of a specific url? Run the following command: diff --git a/composer.json b/composer.json index 2256adfa..fc84ea4a 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5" }, "autoload": { "psr-4": { diff --git a/src/Jobs/Scan.php b/src/Jobs/Scan.php new file mode 100644 index 00000000..640f79a8 --- /dev/null +++ b/src/Jobs/Scan.php @@ -0,0 +1,24 @@ +markTestSkipped('This test is skipped because we need to find a way to fake the image size.'); + $check = new ImageSizeCheck(); $crawler = new Crawler();