{% extends "PackagistWebBundle::layout.html.twig" %} {% set showSearchDesc = 'hide' %} {% block title %}{{ package.name }} - {{ parent() }}{% endblock %} {% block head_feeds %} {{ parent() }} {% endblock %} {% block scripts %} {% endblock %} {% block description -%} {{ package.description }} {%- endblock %} {% set hasActions = is_granted('ROLE_EDIT_PACKAGES') or is_granted('ROLE_EDIT_PACKAGES') or package.maintainers.contains(app.user) %} {% block content %}

{% if is_favorite is defined %} {% endif %} {{ package.vendor }}/{{ package.packageName }}

{% if not package.autoUpdated and app.user and (package.maintainers.contains(app.user) or is_granted('ROLE_UPDATE_PACKAGES')) %} {% if "github.com" in package.repository %}
This package is not auto-updated. Please set up the GitHub Service Hook for Packagist so that it gets updated whenever you push!
{% elseif "bitbucket.org" in package.repository %}
This package is not auto-updated. Please set up the BitBucket POST Service for Packagist so that it gets updated whenever you push!
{% endif %} {% endif %} {% if package.abandoned %}
This package is abandoned and no longer maintained. {% if package.replacementPackage is not empty %} The author suggests using the {{ package.replacementPackage }} package instead. {% else %} No replacement package was suggested. {% if (is_granted('ROLE_EDIT_PACKAGES') or package.maintainers.contains(app.user)) %} Suggest a replacement. {% endif %} {% endif %}
{% endif %} {% if package.updateFailureNotified and app.user and (package.maintainers.contains(app.user) or is_granted('ROLE_UPDATE_PACKAGES')) %}
This package is in a broken state and will not update anymore. Some branches contain invalid data and until you fix them the entire package is frozen. Click "Force Update" above to see details.
{% endif %} {% if expandedVersion and not expandedVersion.license %}
There is no license information available for the current version ({{ expandedVersion.version }}) of this package. Please contact the maintainer for more information.
{% endif %}

{{ package.description }}

{% if hasActions %}
{% if (is_granted('ROLE_EDIT_PACKAGES') or package.maintainers.contains(app.user)) and not package.abandoned %}
{% endif %} {% if (is_granted('ROLE_EDIT_PACKAGES') or package.maintainers.contains(app.user)) and package.abandoned %}
{% endif %} {% if deleteForm is defined %}
{{ form_widget(deleteForm._token) }}
{% endif %} {% if is_granted('ROLE_UPDATE_PACKAGES') or package.maintainers.contains(app.user) %}
{% endif %} {% if is_granted('ROLE_EDIT_PACKAGES') or package.maintainers.contains(app.user) %}
{% endif %}
{% endif %}

{% for maintainer in package.maintainers -%} {% endfor %} {% if addMaintainerForm is defined or removeMaintainerForm is defined %} {% if addMaintainerForm is defined %}{% endif %} {% if removeMaintainerForm is defined %}{% endif %} {% endif %}

{% set repoUrl = package.repository|replace({'git://github.com/': 'https://github.com/', 'git@github.com:': 'https://github.com/'}) %}

{{ repoUrl|replace({'https://':'', 'http://':''}) }}

{% if version and version.homepage %}

Homepage

{% endif %} {% if version.support.source is defined %}

Source

{% endif %} {% if version and version.support.issues is defined %}

Issues

{% endif %} {% if version and version.support.irc is defined %}

IRC

{% endif %} {% if version and version.support.forum is defined %}

Forum

{% endif %} {% if version and version.support.wiki is defined %}

Wiki

{% endif %} {% if version and version.support.docs is defined %}

Documentation

{% endif %}

Installs: {% if downloads.total is defined %}{{ downloads.total|number_format(0, '.', ' ')|raw }}{% else %}N/A{% endif %}

{% if dependents is defined %}

Dependents: {{ dependents|number_format(0, '.', ' ')|raw }}

{% endif %} {% if package.gitHubStars is not null %}

Stars: {{ package.gitHubStars|number_format(0, '.', ' ')|raw }}

{% endif %} {% if package.gitHubWatches is not null %}

Watchers: {{ package.gitHubWatches|number_format(0, '.', ' ')|raw }}

{% endif %} {% if package.gitHubForks is not null %}

Forks: {{ package.gitHubForks|number_format(0, '.', ' ')|raw }}

{% endif %} {% if package.gitHubOpenIssues is not null %}

Open Issues: {{ package.gitHubOpenIssues|number_format(0, '.', ' ')|raw }}

{% endif %} {% if package.language is not empty %}

Language: {{ package.language }}

{% endif %}
{% if addMaintainerForm is defined or removeMaintainerForm is defined %}
{% if addMaintainerForm is defined %}

Add Maintainer

{{ form_label(addMaintainerForm.user, "Username") }} {{ form_errors(addMaintainerForm.user) }} {{ form_widget(addMaintainerForm.user) }}

{{ form_rest(addMaintainerForm) }}
{% endif %} {% if removeMaintainerForm is defined %}

Remove Maintainer

{{ form_label(removeMaintainerForm.user, "Username") }} {{ form_errors(removeMaintainerForm.user) }} {{ form_widget(removeMaintainerForm.user) }}

{{ form_rest(removeMaintainerForm) }}
{% endif %}
{% endif %} {% if versions|length %}
{% if expandedVersion %} {% include 'PackagistWebBundle:Package:versionDetails.html.twig' with {version: expandedVersion} %} {% endif %}
{% include 'PackagistWebBundle:Package:versionList.html.twig' with {versions: versions, expandedId: expandedVersion.id, deleteVersionCsrfToken: deleteVersionCsrfToken|default(null)} %} {% elseif package.crawledAt is null %}

This package has not been crawled yet, some information is missing.

{% else %}

This package has no released version yet, and little information is available.

{% endif %}
{% if package.readme != null %}

README

{{ package.readme|raw }}
{% endif %}
{% endblock %}