Skip to content

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

License

Notifications You must be signed in to change notification settings

htmldriven/packagist-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published