bristol-digital/spanish-dances

A simple Hello World package that displays random Spanish dance styles

Maintainers

Package info

github.com/bristol-digital/spanish-dances

pkg:composer/bristol-digital/spanish-dances

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2025-11-21 09:37 UTC

This package is auto-updated.

Last update: 2026-02-22 12:25:38 UTC


README

A simple "Hello World" PHP package that displays random Spanish dance styles. This package demonstrates basic Composer package structure published to Packagist.

Features

  • Display a hello world message with a random Spanish dance style
  • Get a random Spanish dance
  • List all available Spanish dances
  • PSR-4 autoloading
  • PHP 8.0+ compatible

Installation

Via Composer

composer require bristol-digital/spanish-dances

Manual Installation

  1. Clone this repository
  2. Run composer install

Usage

Basic Usage

<?php

require_once 'vendor/autoload.php';

use BristolDigital\SpanishDance\SpanishDance;

$spanishDance = new SpanishDance();

// Display hello world with a random Spanish dance
echo $spanishDance->sayHello();
// Output: ¡Hola Mundo! Let's dance the Flamenco! 💃

Get Random Dance

$dance = $spanishDance->getRandomDance();
echo "Let's dance the {$dance}!";

Get All Dances

$allDances = $spanishDance->getAllDances();
print_r($allDances);

Running the Example

php example.php

Available Spanish Dances

  • Flamenco
  • Paso Doble
  • Sevillanas
  • Jota
  • Bolero
  • Fandango
  • Sardana
  • Muñeira
  • Zambra
  • Seguidilla

Published to Packagist

  1. Create a GitHub repository for this package
  2. Push your code to GitHub
  3. Go to Packagist.org
  4. Submit your GitHub repository URL
  5. Set up the GitHub service hook for auto-updates

Requirements

  • PHP 8.0 or higher

License

MIT License

Author

Your Name (your.email@example.com)