Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ajthinking/anything

tinkerwell driven development | schrödingers public API | True TDD
https://github.com/ajthinking/anything

Last synced: about 9 hours ago
JSON representation

tinkerwell driven development | schrödingers public API | True TDD

Awesome Lists containing this project

README

        

# *Anything!* 💫

[![Latest Version on Packagist](https://img.shields.io/packagist/v/ajthinking/anything.svg?style=flat-square)](https://packagist.org/packages/ajthinking/anything)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/ajthinking/anything/run-tests?label=tests)](https://github.com/ajthinking/anything/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/ajthinking/anything/Check%20&%20fix%20styling?label=code%20style)](https://github.com/ajthinking/anything/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/ajthinking/anything.svg?style=flat-square)](https://packagist.org/packages/ajthinking/anything)

Imagine public API:s and make it so - a TDD and sketch toy for Laravel projects :star_struck:

![github_readme_gif](https://user-images.githubusercontent.com/3457668/171365478-c621c14b-1d98-4ede-ad93-a92723e6ff31.gif)

## Getting started

Install and enable like so:
```bash
composer require ajthinking/anything --dev
php artisan anything:on
```

Then, flesh out your idea and execute it in a console context. Lets say we want to build a git client:
```php
// This class does not exist, yet
App\Support\Git::client()
->pull()
->add('*')
->nah()
->wip()
->unwip()
->commit('message')
->push()
->build() // <-- creates the class!
```
The last method call `->build()` will create this class for you along with all the method stubs:

```php