profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/uuf6429/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Christian Sciberras uuf6429 @Yumpu @personio @newsletter2go @rocket-internet-berlin @GlobalCapital-MT Dorbirn, AT christian.sciberras.me

antialize/wkhtmltopdf-bindings 26

Wrappers to wkhtmltopdf

uuf6429/InterExec 19

PHP command execution on steroids (aka interactively).

uuf6429/nice_r 19

A nicer replacement for print_r.

uuf6429/httpdmon 10

Apache Realtime Logfile Monitor

uuf6429/elder-brother 3

Set up and manage contribution policies for you PHP-based projects.

uuf6429/behat-breakpoint 2

:raised_hand: Provides various ways to break/block scenarios.

uuf6429/ConfLoader 1

PHP CMS configuration loader

uuf6429/expression-language-arrowfunc 1

Arrow function support in Symfony Expression Language

issue openedbarryvdh/laravel-ide-helper

Generate mixin for requests (by analysing rules)

Summary

Consider the following code:

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Routing\Controller;

class CreateProductRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'name' => 'string|min:3|max:30',
            'gtin' => 'string|min:8|max:14|unique:products,gtin',
            'tags' => 'array|required',
            'tags.*' => 'string|min:2|distinct',
            'prices' => 'array|required',
            'prices.*.currency' => 'string|required|exists:EUR,USD',
            'prices.*.amount' => 'integer|required',
        ];
    }
}

class CreateProductEndpoint extends Controller
{
    public function __invoke(CreateProductRequest $request)
    {
//                     vvvv
        echo $request->name . '\'s first price is: ';
        echo $request->prices[0]['amount'];
//                     ^^^^^^^^^^^^^^^^^^^--- no autocompletion
    }
}

My proposal would be to generate:

/**
 * MyApp\Http\Requests\CreateProductRequest
 *
 * @mixin IdeHelperCreateProductRequest
 * @property string $name
 * @property string $gtin
 * @property string[] $tags
 * @property array[] $prices
 */
class IdeHelperCreateProductRequest extends \Illuminate\Foundation\Http\FormRequest {}

Sadly, PHPDoc doesn't seem to support array shapes (nor phpstan supporting properties, so $prices ends up as a simple array of arrays).

created time in a month

issue commentbarryvdh/laravel-ide-helper

Laravel IDE Helper not working Sublime Text

Anyway, sublime text is more of an editor than an ide... hence laravel-ide-helper is perhaps not applicable...

anhthi92

comment created time in a month

issue commentlaravel/framework

hasArgument on Commands returns true instead of false

The symfony documentation clearly states that it checks the definition:

Returns true if an InputArgument object exists by name or position.

whereas the laravel documentation says otherwise:

Determine if the given argument is present.

I'd say either the laravel code is wrong (considering the PHPDoc) or at least the documentation is wrong. There's nothing to ask on the symfony side...

dnatabar

comment created time in a month

pull request commentlaravel/framework

[6.x] Fix required_if boolean validation

I don't like posting "me too" replies, but I agree with @oprypkhantc, we also have this problem and it's fixed by changing 1 to true.

driesvints

comment created time in 2 months

issue openeduuf6429/state-engine-php

Support "wildcard" transitions

There are quite a few cases where some state can be reached through any other state, for example closing a ticket in jira is typically allowed from any state.

The idea is to design a simple mechanism to define such "generic" / "wildcard" transitions because:

  1. We are lazy 😆
  2. Definitions should be concise and readable.
  3. It automates handling new states without having to add a new transition for each new state.
  4. It provides more context: "this is a bulk transition" vs "these transitions are separate but practically related"
  5. Such context can be used to customize some behaviour

Concerns:

  1. Should it be based on a special string, like * or a special class/interface?
  2. In any case, should it be bi-directional? (from: *, to: * vs from: * is not allowed)
  3. Should it act as a filter (eg: *,except:x,y), pattern (^/(?!not-this-state|or-this-other-state)$/) or just *

created time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha fe8dc38ee4eedcddca9ef4a0c3aeb45ac7d01019

Update README.md

view details

push time in 2 months

created taguuf6429/state-engine-php

tag2.0.0

A state engine/machine for PHP.

created time in 2 months

release uuf6429/state-engine-php

2.0.0

released time in 2 months

delete tag uuf6429/state-engine-php

delete tag : 2.0.0

delete time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha eeb7135e51da697a63cb9677cefb7e628b376ea1

Fix small things in readme

view details

push time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha d97cd47292a252ba87fcdbd70da0d289bec5300f

Fix badge

view details

Christian Sciberras

commit sha 1831d1926b9ca4ce4d2b83a92433d7121bf33129

Merge branch 'main' of github.com:uuf6429/state-engine-php into main

view details

push time in 2 months

delete branch uuf6429/state-engine-php

delete branch : few-more-fixes

delete time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha 1647b183cc12454f019adad64a069f70d1388e3e

Few more fixes (#4) * Fix a few more things * Use secret key * Fix fetch depth * Enable xdebug

view details

push time in 2 months

PR merged uuf6429/state-engine-php

Few more fixes
+11 -3

1 comment

2 changed files

uuf6429

pr closed time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha c1f8a4be0f5efc0a3b7292a7f4b2708fc7025820

Enable xdebug

view details

push time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha 7f535e357f78b95863b1cad2215ddd2d656b420e

Fix fetch depth

view details

push time in 2 months

PR opened uuf6429/state-engine-php

Few more fixes
+8 -2

0 comment

2 changed files

pr created time in 2 months

create barnchuuf6429/state-engine-php

branch : few-more-fixes

created branch time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha 795191a0597bf70793235d21098cc2f32187cb54

Fix url scheme in readme

view details

push time in 2 months

created taguuf6429/state-engine-php

tag2.0.0

A state engine/machine for PHP.

created time in 2 months

release uuf6429/state-engine-php

2.0.0

released time in 2 months

delete branch uuf6429/state-engine-php

delete branch : support-state-machines

delete time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha f227ab29b2223727caba9f7d34c568c7aae25c86

Implement state machine concept (#3) * Several fixes and implement state machine concept * Update readme and composer * Fix readme link on gfm

view details

push time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha 7ce634144ab12edc30d23e0aafa9c867233f98fd

Fix readme link on gfm

view details

push time in 2 months

push eventuuf6429/state-engine-php

Christian Sciberras

commit sha 5ea2f43ca52f8adb4f297cf86f9e7b69d040fa02

Update readme and composer

view details

push time in 2 months

create barnchuuf6429/state-engine-php

branch : support-state-machines

created branch time in 2 months

release uuf6429/state-engine-php

1.1.0

released time in 2 months

created taguuf6429/state-engine-php

tag1.1.0

A state engine for PHP.

created time in 2 months