Simple HTML widget which displays a list of packages published at the main Composer repository packagist.org.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
src
.gitattributes
.gitignore
LICENSE
README.md
bower.json

README.md

Packagist Feed

Simple JavaScript-driven HTML widget for displaying list of published packages as defined in packagist.org.

Examples

Packagist Feed Example

See example. Online working demo is also available at www.htmldriven.com.

Installation

Installing the Packagist Feed is easy, simply download the source code and add link to it in your HTML:

<!-- packagist-feed CSS theme -->
<link rel="stylesheet" href="link/to/packagist.feed.css">

<!-- packagist-feed JS -->
<script type="text/javascript" src="link/to/packagist.feed.js"></script>

Note the example above expects you already linked bootstrap CSS.

Usage

Once you linked the required files, you simply call:

<script type="text/javascript">
Packagist.feed({
    vendor: 'htmldriven', // package vendor name
    selector: '#packagist-feed' // element which serves as a container for Packagist Feed HTML
});
</script>

You can create packagist feed several times, it's up to you how many feeds you want to show. Example of multiple Packagist Feeds being used on the same page is available at www.htmldriven.com.

License

Packagist Feed is licensed under the The MIT License.