PHPNews

PHP Xdebug Visual Code

This article got me going on using Xdebug [https://tighten.co/blog/configure-vscode-to-debug-phpunit-tests-with-xdebug](https://tighten.co/blog/configure-vscode-to-debug-phpunit-tests-with-xdebug) But since 7.2 it has been tricky on the Mac. ``` pecl install xdebug ``` Then `vim /usr/local/etc/php/7.2/php.ini` And …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday March 29, 2019


PHP Xdebug Visual Code

This article got me going on using Xdebug [https://tighten.co/blog/configure-vscode-to-debug-phpunit-tests-with-xdebug](https://tighten.co/blog/configure-vscode-to-debug-phpunit-tests-with-xdebug) But since 7.2 it has been tricky on the Mac. ``` pecl install xdebug ``` Then `vim /usr/local/etc/php/7.2/php.ini` Fro…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Thursday March 28, 2019


Deploying Fargate

Just some notes on the process. This will show how to deploy both a Staging build and then Production. ## Staging Staging is done by TravisCI after all tests pass Here is the gist of it the deploy step calls to a bash file. ``` deploy: skip_cleanup: true provider: script script: bash deploy/travis_deploy.sh …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Saturday October 27, 2018


Bitbucket Pipeline

BitBucket has a nice feature call Pipelines [https://bitbucket.org/product/features/pipelines](https://bitbucket.org/product/features/pipelines) for $0 you can, even for private repos have a decent CI flow. > Private repos CI Pipeline $0!! It took a bit to get going though since the docs do not talk about PHP …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday September 18, 2018


Bitbucket Pipeline

BitBucket has a nice feature call Pipelines [https://bitbucket.org/product/features/pipelines](https://bitbucket.org/product/features/pipelines) for $0 you can, even for private repos have a decent CI flow. > Private repos CI Pipeline $0!! It took a bit to get going though since the docs do not talk about PHP …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday September 18, 2018


Laravel Filter Scope on a Model

So I find myself writing searchable pages that, via an API or what not, someone can filter the page by different fields on the model. ![](https://dl.dropboxusercontent.com/s/qm3semea1hzutuk/filter_example.png?dl=0) This can end up being a Controller class that does a lot of filters off the Request. Or it can be a …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday August 20, 2018


JSONEditor, Vue and Vuex

As I post [here](https://alfrednutile.info/posts/222) I wanted to use JSONEditor as a component. But with Vuex I was able to reduce the work quite a ton. ![](https://dl.dropboxusercontent.com/s/g8n5brbtjom1ulp/Screenshot%202017-11-02%2013.17.32.png?dl=0) Here is my store for the json_field: ``` export default { …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday August 20, 2018


Query Strings, Vue and Bootstrap Active Tab

In order to have the tabs and URL change as needed when the user lands on the page or clicks the tab I had to setup a few things. ![](https://dl.dropboxusercontent.com/s/bdawx8hl7gisijs/tabs.gif?dl=0) First I setup the Vue.js router as seen [here](https://alfrednutile.info/posts/244) Then my component will work …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Sunday August 19, 2018


Python3 Fixtures

Just a reminder using pickle I can easily make fixtures for testing. When I get results from AWS SDK for example I can just ``` import pickle with open("fixtures/describe_task_defination.pickle", 'wb') as fixture: pickle.dump(self.stored_state_to_save, fixture) ``` Then when I want to feed it back in my …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Saturday August 11, 2018


PHPStan Setup

There is a good episode here [https://www.phproundtable.com/episode/using-static-analyzers-to-improve-our-php-codebases](https://www.phproundtable.com/episode/using-static-analyzers-to-improve-our-php-codebases) that talks about this. The short of it is that it can easily catch some issues that your tests or IDE did …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Sunday August 5, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday July 30, 2018


Vuex External File

Setup Vuex with external file [https://vuex.vuejs.org/installation.html](https://vuex.vuejs.org/installation.html) But after this make a file in the `resources/assets/js` called `store.js` then set it up as needed Here I will have one loading state ``` export default { state: { loading: true, }, getters: …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday July 3, 2018


Dusk Screenshots to S3 of Failing tests

I can be really annoying to troubleshoot a failed test in Dusk when using CI systems. What I ended up doing was setting up my project to send these files to S3 on fail. Here are the steps ## Setup You App This is just S3 storage so make sure you have a bucket and a folder in the bucket to write to. Basically for …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday June 26, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday June 19, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Saturday June 16, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday June 13, 2018