PHPackages                             davmixcool/laravel-medium-articles - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. davmixcool/laravel-medium-articles

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

davmixcool/laravel-medium-articles
==================================

Laravel Medium Articles is a laravel package that allows you to easily embed Medium.com articles on your site. Embed articles as standard post formats or as scrolling galleries. We are powered by mediumable.

23[1 issues](https://github.com/davmixcool/laravel-medium-articles/issues)Blade

Since Jan 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/davmixcool/laravel-medium-articles)[ Packagist](https://packagist.org/packages/davmixcool/laravel-medium-articles)[ RSS](/packages/davmixcool-laravel-medium-articles/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Medium Articles
=======================

[](#laravel-medium-articles)

Laravel Medium Articles is a laravel package that allows you to easily embed Medium.com articles on your site. This package is powered by [Mediumable](https://mediumable.io).

[![GitHub license](https://camo.githubusercontent.com/1a1ebcbe30060b82c7ad2c6fda1ae5f940d7b6082c4adf30f62e81a869be004a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461766d6978636f6f6c2f6c61726176656c2d6d656469756d2d61727469636c65732e737667)](https://github.com/davmixcool/laravel-medium-articles/blob/master/LICENSE) [![GitHub issues](https://camo.githubusercontent.com/ca2398a8f18030d64309f23e098661662d712c4997c9972987c10ce8f1513bf8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6461766d6978636f6f6c2f6c61726176656c2d6d656469756d2d61727469636c65732e737667)](https://github.com/davmixcool/laravel-medium-articles/issues)

Features
--------

[](#features)

- Grid Post
- Carousel Post
- Lead Capture
- Customization

Requirements
------------

[](#requirements)

- PHP 5.4 and above

Steps:
------

[](#steps)

- [Install](#install)
- [Configuration](#configuration)
- [Usage](#usage)
- [Example](#example)
- [Maintainers](#maintainers)
- [License](#license)

### Install

[](#install)

**Composer**

Run the following to include this package via Composer

```
composer require davmixcool/laravel-medium-articles
```

#### Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

[](#laravel-55-uses-package-auto-discovery-so-doesnt-require-you-to-manually-add-the-serviceprovider)

Once download is complete, the next thing you have to do is include the service provider within `config/app.php`.

```
'providers' => [
        Davmixcool\Medium\MediumServiceProvider::class,
];
```

Then run `php artisan vendor:publish --provider="Davmixcool\Medium\MediumServiceProvider"` to get the config of Laravel Medium Articles.

### Configuration

[](#configuration)

Setup default medium widget in `medium.php` config. (Optional but recommended)

#### Render options:

[](#render-options)

OptionDescription`renderTo`By Default the widget is rendered to `laravel-medium-articles`. But you can specify your own custom element ID where you want to render the widget.`id`A random unique ID to identify the widget. This is very useful when you need to include multiple widgets on one page.`username`Your medium username.#### Layout customization options:

[](#layout-customization-options)

Customize the appearance of your widget.

OptionDescription`layout.type`The way you want your articles to be displayed.`layout.limit`The number of articles to show.`layout.column`Define how many columns you want.`layout.size`By default image size are set to big but you can choose a small picture preview size if you want to show article images at the left side. Options are: `big`, `small` and `off`.`layout.ratio`Define an aspect ratio for your article images. Default is `landscape` and options are: `landscape`, `original`, `square`.`layout.pagination`By default pagination is `off` but you can enable pagination to display a load more button. Options are: `on` and `off`.`layout.pagination_text`The text on the pagination button. Default is `See More Articles`. You can specify any text you want.#### Elements customization options:

[](#elements-customization-options)

Customize what your readers see.

OptionDescription`elements.title` By default article title is `on` but you can disable it. Options are: `on` and `off`.`elements.description`By default article description is `on` but you can disable it. Options are: `on` and `off`.`elements.author`By default article author is `on` but you can disable it. Options are: `on` and `off`.`elements.claps` By default article claps is `off` but you can enable it. Options are: `on` and `off`.`elements.fans`By default article fans is `off` but you can enable it. Options are: `on` and `off`.`elements.read_duration`By default article read duration is `off` but you can enable it. Options are: `on` and `off`.`elements.pubDate`By default article publication date is `on` but you can disable it. Options are: `on` and `off`.#### Target customization options:

[](#target-customization-options)

Choose the action you want to execute when a reader clicks on your article.

OptionDescription`target.value`The action you want to execute when a reader clicks on your article. Default is `external` which will redirect your reader to the article. Options are: `external` and `capture` which will open a modal to collect your reader email and name before they proceed to your post.`target.capture.style`The popup style to show. Default is `modal-default` which opens a normal modal. Options are: `modal-default` and `modal-full` which opens a modal to cover the entire window.`target.capture.email`By default capture email is `on` but you can disable it to not collect reader's email. Options are: `on` and `off`.`target.capture.name`By default capture name is `off` but you can enable it to collect reader's name. Options are: `on` and `off`.`target.capture.message`An info message to show to the reader on the modal before they proceed. Default is `Drop your details to proceed``target.capture.button_text`The text on the capture submit button. Default is `Proceed to Post``target.capture.webhook_status`By default capture webhook status is `false` but you can enable it to submit collected details to webhook url. Options are: `true` and `false`.`target.capture.webhook_url`The webhook url to submit collected details to. It can be Zapier, IFTTT or a Custom webhook.### Usage

[](#usage)

Once configuration is complete you can then add the below code where you want your articles to show;

```
@include('medium::widget')
```

The above will use the predefined configurations to prefill the generated widget. However, if you choose to define certain options on the fly or you choose to include multiple widgets on one page then you can use the code below.

```
@include('medium::widget', [
    'username' => 'iamdavidoti',
    'id'   => 27623742, //This id should be unique for each widget you include on a page.
])
```

You can alawys refer to the customization table to supply the customization parameters that you need to tweak.

### Example

[](#example)

```
    >

        Document

    		@include('medium::widget', [
			    'username' => 'iamdavidoti',
			    'id'   => 27623742,
			])

```

### Maintainers

[](#maintainers)

This package is maintained by [David Oti](http://github.com/davmixcool) and you!

### License

[](#license)

This package is licensed under the [MIT license](https://github.com/davmixcool/laravel-medium-articles/blob/master/LICENSE).

### Reference

[](#reference)

This package is powered by [Mediumable](https://mediumable.io).

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/58f0b7a6b4a01c486263394e1414b3296ded35a5b565213a77aa906410137beb?d=identicon)[davmixcool](/maintainers/davmixcool)

---

Top Contributors

[![davmixcool](https://avatars.githubusercontent.com/u/5640065?v=4)](https://github.com/davmixcool "davmixcool (6 commits)")

### Embed Badge

![Health badge](/badges/davmixcool-laravel-medium-articles/health.svg)

```
[![Health](https://phpackages.com/badges/davmixcool-laravel-medium-articles/health.svg)](https://phpackages.com/packages/davmixcool-laravel-medium-articles)
```

###  Alternatives

[spoonx/sxbootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

3010.7k1](/packages/spoonx-sxbootstrap)[liues1992/php-protobuf-generator

Google's protobuf generator for PHP

1112.6k2](/packages/liues1992-php-protobuf-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
