Download the PHP package uocnv/spatie-crawler-toolkit-for-laravel without Composer

On this page you can find all versions of the php package uocnv/spatie-crawler-toolkit-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spatie-crawler-toolkit-for-laravel

Spatie Crawler Toolkit for Laravel

PHP 8 should work, but is not extensively tested. Please report any issues you might find!

Total Downloads

A set of classes to use Spatie's crawler with Laravel. Aim is to simplify building crawler applications or adding a crawler to an existing Laravel project. At the moment the following helper classes are implemented:

Cache Crawl Queue

The CacheCrawlQueue allows use the pre-configured Cache in Laravel to store the queue. It stores any actions performed on the queue directly to avoid the need to manually store the queue. You can add it directly to your crawler:

With this you can stop the crawl and restart at any time. This requires a cache-driver being configured in your .env file.

Crawl Logger

The Crawl Logger is an observer you can add to your crawler to enable logging of crawl events:

You can export the configuration (see below) to tweak which events are logged.

Crawl Events

The toolkit contains an observer to send you Laravel events allowing you to react to crawl events. This covers the following events:

By default, no events are emitted. To enable events, you will need to add the event observer to your crawler:

An optional identifier can be passed to the crawl events to distinguish between different crawls:

Planned functionality

For any suggestions on how to enhance this, please raise an issue.

Requirements & Install

Requirements

Installation

Optionally, you can publish the configuration file:

Contributing

Please raise a PR or issue.

License

Released under the MIT license. Please see License File for more information.


All versions of spatie-crawler-toolkit-for-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
laravel/framework Version ^6.0|^7.0|^8.0
spatie/crawler Version ^6.0.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uocnv/spatie-crawler-toolkit-for-laravel contains the following files

Loading the files please wait ....