<commit_before>badawy/embedly
================
[![Latest Stable Version](https://poser.pugx.org/badawy/embedly/v/stable)](https://packagist.org/packages/badawy/embedly) [![Total Downloads](https://poser.pugx.org/badawy/embedly/downloads)](https://packagist.org/packages/badawy/embedly) [![Latest Unstable Version](https://poser.pugx.org/badawy/embedly/v/unstable)](https://packagist.org/packages/badawy/embedly) [![License](https://poser.pugx.org/badawy/embedly/license)](https://packagist.org/packages/badawy/embedly)

Custom Embedly Package for the Laravel 5.*



## Installation

1) Pull this package in through Composer.

```js

    {
        "require": {
            "badawy/embedly": "1.*"
        }
    }

```

2) Add the service provider to the providers array in your `config/app.php` file:

```php
        Badawy\Embedly\EmbedlyServiceProvider
```

3) Add the facade to your `config/app.php` file:

```php
        'Embedly' => Badawy\Embedly\Facades\Embedly
```

4) Copy the package config to your local config with the publish command:

```php
        php artisan vendor:publish
```

5) Add your api key in `config/embedly.php` file:

```php
        'key' => '<KEY>'
```


## Usage

You can extract or embed single URL or multiple URLs by pass them into an Array instead of String,

You can also pass an Array of your query arguments as second argument in both Extract and Embed (see examples)
<commit_msg>Laravel Style Matching / Publish<commit_after>badawy/embedly
================
[![Latest Stable Version](https://poser.pugx.org/badawy/embedly/v/stable)](https://packagist.org/packages/badawy/embedly) [![Total Downloads](https://poser.pugx.org/badawy/embedly/downloads)](https://packagist.org/packages/badawy/embedly) [![Latest Unstable Version](https://poser.pugx.org/badawy/embedly/v/unstable)](https://packagist.org/packages/badawy/embedly) [![License](https://poser.pugx.org/badawy/embedly/license)](https://packagist.org/packages/badawy/embedly)

Custom Embedly Package for the Laravel 5.*



## Installation

1) Pull this package in through Composer.

```js

    {
        "require": {
            "badawy/embedly": "1.*"
        }
    }

```

2) Add the service provider to the providers array in your `config/app.php` file:

```php
        Badawy\Embedly\EmbedlyServiceProvider::class,
```

3) Add the facade to your `config/app.php` file:

```php
        'Embedly' => Badawy\Embedly\Facades\Embedly::class,
```

4) Copy the package config to your local config with the publish command:

```php
        art vendor:publish --provider="Badawy\Embedly\EmbedlyServiceProvider"
```

5) Add your api key in `config/embedly.php` file:

```php
        'key' => '<KEY>'
```


## Usage

You can extract or embed single URL or multiple URLs by pass them into an Array instead of String,

You can also pass an Array of your query arguments as second argument in both Extract and Embed (see examples)

{'fraction_non_alphanumeric': 0.1504120879120879, 'fraction_numerical': 0.004807692307692308, 'mean_word_length': 3.855, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2780160', 'n_tokens_mistral': 994, 'n_tokens_neox': 946, 'n_words': 249}