Package Data | |
---|---|
Maintainer Username: | nWidart |
Maintainer Contact: | n.widart@gmail.com (Nicolas Widart) |
Package Create Date: | 2013-08-13 |
Package Last Update: | 2014-09-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 03:00:08 |
Package Statistics | |
---|---|
Total Downloads: | 14 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 9 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Project lister is a package to display a list of your current repositories on Github, Bitbucket or Sourceforge.
Add nwidart/ProjectLister
as a requirement to composer.json
:
{
...
"require": {
...
"nwidart/project-lister": "dev-master"
},
}
Update composer:
$ php composer.phar update
Add 'Nwidart\ProjectLister\ProjectListerServiceProvider',
to your app/config/app.php
file in the providers
array.
Publish package config:
$ php artisan config:publish nwidart/project-lister
In the app/config/nwidart/projectLister/config.php
config file:
service
: Set your desired service (github,bitbucket,sourceforge)username
: Set your username on that servicesortBy
: You can set the sort type. Possible options are:
4. Watchers
2. Name
3. Updated
sortByAsc
: true/false. Set if you wish to sort ascending or not.template
: You can override the default template here. These tags are available:
6. {{PROJECT_URL}}
: The project URL
2. {{PROJECT_NAME}}
: The project Name
3. {{PROJECT_WATCHER_COUNT}}
: The project watchers count
4. {{PROJECT_DESCRIPTION}}
: The project description
5. {{PROJECT_WATCHER_NOUN}}
: Is replaced by 'watcher' or 'watchers'To show the projects list simple use this in one of your views:
{{ ProjectLister::show(); }}
This is mainly a port of the Wordpress Plugin github-bitbucket-project-lister, to be used in Laravel.
Copyright (C) 2012 by Kenny Katzgrau katzgrau@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.