Skip to content

Show a GitHub star message after install:demo completes successfully #194

Description

@armanist

Summary

Invite users to star the Quantum repository on GitHub in two places of the starter project:

  1. a short console message after install:demo completes successfully;
  2. the translation texts for the star block that the DemoWeb About page of the framework now shows (Add a GitHub star message and repository link to the DemoWeb About page framework#542).

Why

The project creation flow already runs:

  • php qt install:demo --yes

through post-create-project-cmd.

That makes the demo install command one of the first guided experiences users see after creating a new Quantum project. At the moment, install:demo ends with:

  • Demo project created successfully

This is a reasonable place to show a small follow-up message asking users to support the framework by starring the repository on GitHub.

install:demo also generates the Web module from the framework's DemoWeb template, and the About page of that template reads its star texts from common.star.message, common.star.button and common.star.badge_alt. The demo's translations live in this project (shared/resources/lang/{en,es}/common.php), so the keys have to be added here, otherwise the page shows the key names.

Goal

  • Add a concise post-success message to the demo installation command that appears after the demo has been created successfully and includes the repository URL.
  • Add the star texts to the English and Spanish common files.

Proposed Direction

  • After the existing success message in install:demo, show a short follow-up line such as Would you like to show some love by starring Quantum on GitHub? https://github.com/quantum-php/framework, or similar wording, as long as it stays lightweight and includes the direct repository link. The repository URL in the first version of this ticket used the old name softberg/quantum-php-core; the current one is quantum-php/framework.
  • Add a nested star group to shared/resources/lang/en/common.php and shared/resources/lang/es/common.php, next to the existing comments group, with the keys message, button and badge_alt.

Acceptance Criteria

  • after install:demo completes successfully, a star message is shown in the console
  • the message only appears on successful completion, not when the operation is cancelled or fails
  • the message includes the direct GitHub repository URL
  • the message wording is concise and does not interrupt the installation flow
  • common.star.message, common.star.button and common.star.badge_alt exist in the English and Spanish common files
  • the pull request is merged before the framework release that carries the new About page, so a new project shows the texts and not the key names

Notes

Relevant code:

  • shared/Commands/DemoCommand.php
  • shared/resources/lang/en/common.php and shared/resources/lang/es/common.php
  • composer.json post-create-project script

The modules/ folder is generated by install:demo and is not tracked, so there is no About page to change in this project. The split of common into files by topic is quantum-php/framework#644; the star group can move as it is.

Activity

  1. added
    demo
    on Jun 20, 2026
  2. added this to the 3.1.0 milestone on Aug 15, 2026
  3. modified the milestones: 3.1.0, 3.1.1 on Oct 24, 2026
  4. added
    lang
    on Nov 3, 2026
  5. added 2 commits that reference this issue on Nov 3, 2026
  6. self-assigned this
    on Nov 3, 2026
  7. armanist commented on Nov 3, 2026

    @armanist
    ContributorAuthor

    While running `php qt install:demo --yes` for this ticket, the "Generating users" step stopped with:

    ```
    SSL peer certificate or SSH remote key was not OK: SSL certificate problem: unable to get local issuer certificate
    ```

    The demo downloads its images over HTTPS in `save_remote_images()` (and `save_remote_image()`, for a single image) in `helpers/functions.php`. On a PHP without a CA bundle (`curl.cainfo` and `openssl.cafile` empty in `php.ini`, common on Windows) curl cannot verify the site and the install stops before the star message.

    Both helpers now set `CURLOPT_SSL_VERIFYPEER` to `false`. It is set only in these two helpers, which download public demo images; the framework's `HttpClient` and the mailer still verify certificates. This means the certificate of those image downloads is not verified. I checked it on PHP 8.1 without a CA bundle: with verification on the download fails with the error above, with it off it succeeds.

    It is part of the pull request for this ticket (#213), as its own commit, with a `CHANGELOG.md` line under Fixed.

  8. added 2 commits that reference this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

demolang

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions