Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package name changed #94

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
Progressive Web App for Symfony
===============================

![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Coding%20Standards/badge.svg)
![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Static%20Analyze/badge.svg)
![Build Status](https://github.com/Spomky-Labs/pwa-bundle/workflows/Coding%20Standards/badge.svg)
![Build Status](https://github.com/Spomky-Labs/pwa-bundle/workflows/Static%20Analyze/badge.svg)

![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Unit%20and%20Functional%20Tests/badge.svg)
![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Rector%20Checkstyle/badge.svg)
![Build Status](https://github.com/Spomky-Labs/pwa-bundle/workflows/Unit%20and%20Functional%20Tests/badge.svg)
![Build Status](https://github.com/Spomky-Labs/pwa-bundle/workflows/Rector%20Checkstyle/badge.svg)

[![Latest Stable Version](https://poser.pugx.org/Spomky-Labs/phpwa/v/stable.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![Total Downloads](https://poser.pugx.org/Spomky-Labs/phpwa/downloads.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![Latest Unstable Version](https://poser.pugx.org/Spomky-Labs/phpwa/v/unstable.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![License](https://poser.pugx.org/Spomky-Labs/phpwa/license.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![Latest Stable Version](https://poser.pugx.org/Spomky-Labs/pwa-bundle/v/stable.png)](https://packagist.org/packages/Spomky-Labs/pwa-bundle)
[![Total Downloads](https://poser.pugx.org/Spomky-Labs/pwa-bundle/downloads.png)](https://packagist.org/packages/Spomky-Labs/pwa-bundle)
[![Latest Unstable Version](https://poser.pugx.org/Spomky-Labs/pwa-bundle/v/unstable.png)](https://packagist.org/packages/Spomky-Labs/pwa-bundle)
[![License](https://poser.pugx.org/Spomky-Labs/pwa-bundle/license.png)](https://packagist.org/packages/Spomky-Labs/pwa-bundle)

[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/Spomky-Labs/phpwa/badge)](https://api.securityscorecards.dev/projects/github.com/Spomky-Labs/phpwa)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/Spomky-Labs/pwa-bundle/badge)](https://api.securityscorecards.dev/projects/github.com/Spomky-Labs/pwa-bundle)

# Scope

This bundle provides the [Spomky-Labs/phpwa](https://github.com/Spomky-Labs/phpwa) bundle for Symfony.
This bundle provides the [Spomky-Labs/pwa-bundle](https://github.com/Spomky-Labs/pwa-bundle) bundle for Symfony.
This will help you to generate Progressive Web Apps (PWA) Manifests and assets (icons or screenshots).
Also, it will help you to generate Service Workers based on [Workbox](https://developers.google.com/web/tools/workbox).

Expand All @@ -27,7 +27,7 @@ Please have a look at the [Web app manifests](https://developer.mozilla.org/en-U
Install the bundle with Composer:

```bash
composer require spomky-labs/phpwa
composer require spomky-labs/pwa-bundle
```

This project follows the [semantic versioning](http://semver.org/) strictly.
Expand All @@ -49,9 +49,9 @@ If you really love that project and the work I have done or if you want I priori
# Contributing

Requests for new features, bug fixed and all other ideas to make this project useful are welcome.
The best contribution you could provide is by fixing the [opened issues where help is wanted](https://github.com/Spomky-Labs/phpwa/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).
The best contribution you could provide is by fixing the [opened issues where help is wanted](https://github.com/Spomky-Labs/pwa-bundle/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).

Please report all issues in [the main repository](https://github.com/Spomky-Labs/phpwa/issues).
Please report all issues in [the main repository](https://github.com/Spomky-Labs/pwa-bundle/issues).

Please make sure to [follow these best practices](.github/CONTRIBUTING.md).

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "spomky-labs/phpwa",
"name": "spomky-labs/pwa-bundle",
"description": "Progressive Web App Manifest Generator Bundle for Symfony.",
"type": "symfony-bundle",
"license": "MIT",
Expand All @@ -11,7 +11,7 @@
"homepage": "https://github.com/Spomky"
},{
"name": "All contributors",
"homepage": "https://github.com/spomky-labs/phpwa/contributors"
"homepage": "https://github.com/spomky-labs/pwa-bundle/contributors"
}
],
"autoload": {
Expand Down
10 changes: 5 additions & 5 deletions link
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ require __DIR__.'/vendor/autoload.php';
use Symfony\Component\Filesystem\Filesystem;

/**
* Links dependencies to components to a local clone of the main spomky-labs/phpwa GitHub repository.
* Links dependencies to components to a local clone of the main spomky-labs/pwa-bundle GitHub repository.
* Inspired by symfony/symfony and async-aws/aws
*/

$copy = false !== $k = array_search('--copy', $argv, true);
$copy && array_splice($argv, $k, 1);
$pathToProject = $argv[1] ?? getcwd();

if (!is_dir("$pathToProject/vendor/spomky-labs/phpwa")) {
echo 'Link (or copy) dependencies to components to a local clone of the spomky-labs/phpwa GitHub repository.'.PHP_EOL.PHP_EOL;
if (!is_dir("$pathToProject/vendor/spomky-labs/pwa-bundle")) {
echo 'Link (or copy) dependencies to components to a local clone of the spomky-labs/pwa-bundle GitHub repository.'.PHP_EOL.PHP_EOL;
echo "Usage: $argv[0] /path/to/the/project".PHP_EOL;
echo ' Use `--copy` to copy dependencies instead of symlink'.PHP_EOL.PHP_EOL;
echo "The directory \"$pathToProject\" does not exist or the dependencies are not installed, did you forget to run \"composer install\" in your project?".PHP_EOL;
Expand All @@ -38,8 +38,8 @@ foreach ($directories as $dir) {
}
}

if (is_dir("$pathToProject/vendor/spomky-labs/phpwa")) {
if ($filesystem->exists($composer = "$pathToProject/vendor/spomky-labs/phpwa/composer.json")) {
if (is_dir("$pathToProject/vendor/spomky-labs/pwa-bundle")) {
if ($filesystem->exists($composer = "$pathToProject/vendor/spomky-labs/pwa-bundle/composer.json")) {
$packages[json_decode(file_get_contents($composer))->name] = realpath(__DIR__);
}
}
Expand Down