Download the PHP package rem42/scraper without Composer

On this page you can find all versions of the php package rem42/scraper. 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 scraper

Scraper

Lightweight toolbox to build reusable "scrapers":

Badges

Packagist version Packagist download Packagist php version Github licence

Installation

Short introduction

The package centralizes the following logic:

  1. A Request (under src/Request/) defines the necessary data and exposes getters used in path variables.
  2. The attribute #[\Scraper\Scraper\Attribute\Scraper(...)] (on the Request) describes method, scheme, host, path.
  3. \Scraper\Scraper\Client::send() reads this attribute (via ExtractAttribute), builds the HTTP options (headers, query, body, json, auth) according to the interfaces implemented by the Request, then performs the HTTP call.
  4. The matching Api class (eg: FooApi) is instantiated and its execute() method returns the final object/array/string.

Quickstart (minimal example)

Schematic example (adapt according to your autoload/imports). Examples use use imports:

Important conventions

Tests / quality / style

PHP compatibility

composer.json requires php: ^8.4 — the code uses enums and recent types, so PHP 8.4+ is recommended.

Resources and documentation for agents

Non-exhaustive list of published scrapers

Contributing

See AGENTS.md for rules and patterns to follow. For PRs: green tests + highest phpstan level.


All versions of scraper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
symfony/http-client-contracts Version ^3.5
symfony/serializer-pack Version ^1.3
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 rem42/scraper contains the following files

Loading the files please wait ...