Skip to content

Commit

Permalink
migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-stack committed Jul 19, 2022
1 parent df4cef2 commit a045760
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 48 deletions.
34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
# Outscraper SDK in PHP
# Outscraper PHP Library

PHP SDK that allows using [Outscraper's services](https://outscraper.com/services/) and [Outscraper's API](https://app.outscraper.com/api-docs).

## List of Supported Services
- [Google Maps Scraper](https://outscraper.com/google-maps-scraper/)
- [Google Maps Reviews Scraper](https://outscraper.com/google-maps-reviews-scraper/)
- [Google Maps Photos Scraper](https://outscraper.com/google-maps-photos-scraper/)
- [Google Play Reviews Scraper](https://outscraper.com/google-maps-photos-scraper/)
- [Emails & Contacts Scraper](https://outscraper.com/emails-scraper/)
The library provides convenient access to the [Outscraper API](https://app.outscraper.com/api-docs) from applications written in the PHP language. Allows using [Outscraper's services](https://outscraper.com/services/) from your code.

[API Docs](https://app.outscraper.com/api-docs)

## Installation

The Google Maps scraper PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:
### Composer

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```bash
composer require outscraper/outscraper
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```sh
composer require outscraper/google-maps-scraper-php
```php
require_once('vendor/autoload.php');
```

[Link to the php package page](https://packagist.org/packages/outscraper/google-maps-scraper-php)
### Manual Installation

If you do not wish to use Composer, you can download the [latest release](https://github.com/outscraper/outscraper-php/releases). Then, to use the bindings, include the `init.php` file.

```php
require_once('/path/to/outscraper-php/init.php');
```
[Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper)

## Google Maps Scraper

Expand Down
29 changes: 15 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
{
"name": "outscraper/google-maps-scraper-php",
"description": "PHP SDK that allows scraping Google Maps and Google Reviews via Outscraper API.",
"name": "outscraper/outscraper",
"description": "PHP bindings for the Outscraper API",
"require": {
"php": ">=7.4"
},
"keywords": [
"Google",
"Outscrpaer",
"Google Maps",
"Google Reviews",
"Google Maps scraper",
"Google Reviews scraper",
"outscraper",
"google Maps",
"google maps scraper",
"google reviews scraper",
"scrape google maps",
"Google Places"
"google",
"scraper",
"extractor",
"webscraper"
],
"homepage": "https://github.com/outscraper/google-maps-scraper-php",
"homepage": "https://outscraper.com/",
"license": "MIT",
"authors": [
{
"name": "Vlad",
"name": "Outscraper",
"role": "Developer",
"email": "vlad@outscraper.com"
"email": "support@outscraper.com"
}
],
"support": {
"issues": "https://github.com/outscraper/google-maps-scraper-php/issues"
"issues": "https://github.com/outscraper/outscraper-php/issues"
},
"autoload": {
"files": [
"google-maps-scraper.php"
"outscraper.php"
]
}
}
35 changes: 35 additions & 0 deletions examples/Emails And Contacts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Emails And Contacts Scraper With PHP

Allows finding email addresses, social links, and phones from domains via [Outscraper API](https://app.outscraper.com/api-docs#tag/Emails-and-Contacts).

## Installation

### Composer

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```bash
composer require outscraper/outscraper
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```php
require_once('vendor/autoload.php');
```

### Manual Installation

If you do not wish to use Composer, you can download the [latest release](https://github.com/outscraper/outscraper-php/releases). Then, to use the bindings, include the `init.php` file.

```php
require_once('/path/to/outscraper-php/init.php');
```
[Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper)

## Usage

```php
# Search contacts from website:
result = client.emails_and_contacts(['outscraper.com'])
```
3 changes: 3 additions & 0 deletions init.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

require __DIR__ . '/outscraper.php';
Loading

0 comments on commit a045760

Please sign in to comment.