github-actions-php

Automate GitHub Actions workflow setup for PHP/Laravel projects with PHP version matrix, MySQL service, and Composer dependencies.

2.3k|769|Updated Jan 14, 2016
One-click install
npx skills add https://github.com/Bottelet/DaybydayCRM --skill github-actions-php
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-php
Source: https://github.com/Bottelet/DaybydayCRM/tree/main/.claude/skills/github-actions-php
Command: npx skills add https://github.com/Bottelet/DaybydayCRM --skill github-actions-php

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manages the complexities of setting up a CI workflow for PHP/Laravel applications using GitHub Actions, ensuring a streamlined and repeatable development process.

Core Features & Use Cases

  • CI Workflow Definition: Automates the setup of a GitHub Actions workflow tailored to PHP/Laravel applications.
  • Version Management: Defines PHP version matrix for consistent testing environments.
  • Database Configuration: Configures MySQL service setup for database-related operations.
  • Dependency Management: Manages Composer install steps for project dependencies.
  • Test Execution: Triggers test execution as part of the CI process.
  • Artifact Collection: Collects artifacts for easier review and analysis.
  • Use Case: Ideal for developers and DevOps engineers looking to establish a robust CI/CD pipeline for their PHP/Laravel projects without manual configuration overhead.

Quick Start

Use the github-actions-php skill to configure your GitHub Actions workflow for a PHP/Laravel project.

Frequently Asked Questions about github-actions-php

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a GitHub Actions CI pipeline for a Laravel project?

A GitHub Actions CI pipeline for Laravel automates testing by defining a PHP version matrix, configuring a MySQL service container, managing Composer dependency installation, and triggering test execution. This ensures a streamlined, repeatable development process with consistent CI environments.

How does MySQL service configuration work in a PHP GitHub Actions workflow?

MySQL service configuration in a PHP GitHub Actions workflow operates by defining a database container within the workflow file to support database-related operations during automated testing. It allows your Laravel application to run migrations and execute database-driven tests in an isolated, consistent CI environment.

Can I test multiple PHP versions in my GitHub Actions CI pipeline?

Yes, you can test multiple PHP versions in your GitHub Actions CI pipeline by defining a PHP version matrix. This strategy tests your Laravel application across different PHP environments simultaneously, ensuring broader compatibility and consistent behavior throughout your development lifecycle.

Do I need an existing GitHub repository to automate Laravel CI workflows?

Yes, you need access to GitHub and an existing PHP or Laravel project to automate CI workflows. The setup process requires a repository to host the workflow configuration files that manage Composer dependencies, database services, and automated test execution triggers.

What is the best way to manage Composer dependencies in a GitHub Actions pipeline?

The best way to manage Composer dependencies in a GitHub Actions pipeline is to automate the install steps directly within your workflow configuration. This ensures project dependencies are consistently resolved and installed before test execution, maintaining a repeatable development process.

How do I collect test artifacts from a Laravel GitHub Actions pipeline?

You collect test artifacts from a Laravel GitHub Actions pipeline by configuring artifact collection steps within your workflow file after test execution. This gathers test results and logs for easier review and analysis directly within your GitHub repository interface.