I've an interface to remotely fetch some data: interface RemoteFetchContract { public remoteFetch(Page $page, Article $article): FetchedData } I've 10+ implementations for remoteFetch Page and Article are models (in fact: Laravel models) The $page contains the credentials (tokens, etc.) for the actu...
PHP currently treats namespaced names like Foo\Bar as a sequence of identifiers and namespace separator tokens. This RFC proposes to treat namespaced names as a single token, and as such allow reserved keywords to appear inside them. At the same time, it proposes to lift reserved keyword restriction...
https://github.com/Folkloreatelier/laravel-graphql seems to be stagnant, commit-wise there isn't much going on, issues and especially PRs are piling up, the latter often with no feedbacks. The implementation itself does look very good and works very well, too. Just wondering what's up with the devel...
I'm writing a Guzzle-based HTTP client for an API which features OAuth1 as well as non-OAuth1 endpoints. In practice this means: for some endpoints I only need my application secrets, for others I need application + user-specific credentials (which I've both in both cases). For the non-OAuth1 case i...
I searched the webz a bit and found these (in chronological reverse order of last update): https://github.com/ircmaxell/PHP-Yacc (2017, 2months ago) https://github.com/hafriedlander/php-peg (2014) https://sourceforge.net/projects/lime-php/ (2013) https://github.com/wez/lemon-php (2012) https://githu...
I've a console command which uses ->ask() for an interactive question. My approach to testing console commands it to use \Artisan::call('command', […], $outputBuffer); and then observing it's effect as well as checking on $outputBuffer. When I ran the test which triggers the ->ask() branch, for the...
From the upgrade guide at https://laravel.com/docs/5.5/upgrade With recent improvements to PHP op-code caching, the optimize Artisan command is no longer needed. You should remove any references to this command from your deployment scripts as it will be removed in a future release of Laravel. What i...
I'm trying to figure out what the state/ecosystem of php-resque at the moment is. I've a complex system running using https://github.com/wa0x6e/Cake-Resque which is based on https://github.com/wa0x6e/php-resque-ex but some behaviour are not the same with php-resque ; also something don't play well n...
What are the options except the built-in server? The builtin server doesn't handle cases where I've to request something within the request from the same server. Is there a lightweight way of starting a server with minimal configuration overhead for a single host but which can handle multiple reques...
I really like PhpStorm and it's introspection capability but it fails with frameworks referencing classes in strings like 'Foo\Bar'. In our project, since we control our servers and thus the exact PHP version, we switched to Foo\Bar::class syntax. It's a bit more verbose, but having the IDE understa...
All the major template engines I've seen (talking about MVC here) works the same way: controller sets a bunch of variables views are getting invoked (either explicitly or implicitly) The template/view engines, let aside any custom syntax, make all variables which are set available. But which ones ar...
URL: https://github.com/appserver-io/appserver They released 1.0.0 a few days ago. I only found one mention here from a year ago. http://www.reddit.com/r/PHP/comments/1m5u5i/php_application_server_based_on_pthreads/ I wonder who is really using this, in production. How it compares to ReactPHP and ho...