Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

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.

About

Simple HTML widget which displays a list of packages published at the main Composer repository packagist.org.

Resources

License

Packages

No packages published
You can’t perform that action at this time.