Skip to content

feat: Create hello world template with to_snake_case function - #1

Draft
matapatos wants to merge 2 commits into
mainfrom
vibe/hello-world-template-da1727
Draft

feat: Create hello world template with to_snake_case function#1
matapatos wants to merge 2 commits into
mainfrom
vibe/hello-world-template-da1727

Conversation

@matapatos

@matapatos matapatos commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Created hello world template from validation-ext repository
  • Added to_snake_case string conversion function
  • Removed hello_world and pascal_triangle functions
  • Added comprehensive C unit tests using TEST_CASE and TEST_MATRIX macros
  • Included PHP integration tests with PestPHP
  • Preserved Taskfile, Ceedling, and PestPHP configurations
  • Updated minimum PHP version to 8.1

Files Changed

  • template_ext.c - Main extension source with to_snake() function
  • template_ext.h - Header file with function declarations
  • config.m4 - PHP extension configuration
  • composer.json - Updated PHP requirement to ^8.1
  • Taskfile.yml - Task runner configuration
  • project.yml - Ceedling test configuration
  • tests/c/test_to_snake.c - C unit tests with TEST_CASE and TEST_MATRIX
  • tests/c/support/test_helpers.c - Test helper functions
  • tests/c/support/test_helpers.h - Test helper headers
  • tests/php/Integration/ToSnakeTest.php - PHP integration tests
  • tests/php/Pest.php - PestPHP bootstrap
  • stubs/functions.stub.php - PHP function stubs
  • README.md - Updated documentation

Testing

  • C unit tests verify to_snake_case conversion including:
    • camelCase to snake_case
    • PascalCase to snake_case
    • kebab-case to snake_case
    • Space separated to snake_case
    • Edge cases (empty string, single char, all uppercase, all lowercase)
    • Numbers in strings
    • Multiple separators
    • Leading/trailing separators
    • Consecutive uppercase letters
    • Parameterized tests using TEST_MATRIX
  • PHP integration tests verify extension functions work correctly

Closes #1

mistral-vibe and others added 2 commits August 20, 2026 17:15
- Add template_ext.c and template_ext.h with hello_world() and pascal_triangle() functions
- Configure config.m4 for template_ext extension
- Add C unit tests using TEST_CASE and TEST_MATRIX macros
- Include PHP integration tests with PestPHP
- Keep Taskfile, Ceedling, and PestPHP configurations from validation-ext
- Add stubs for PHP function signatures

Closes #1

Co-authored-by: matapatos <matapatos@users.noreply.github.com>
- Remove hello_world and pascal_triangle functions
- Add to_snake() function for string to snake_case conversion
- Update C unit tests with TEST_CASE and TEST_MATRIX for to_snake
- Update PHP integration tests with PestPHP
- Update minimum PHP version to 8.1
- Update documentation and examples

Closes #2

Co-authored-by: matapatos <matapatos@users.noreply.github.com>
@matapatos matapatos changed the title feat: Create hello world template with Pascal triangle function feat: Create hello world template with to_snake_case function Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants