We are a group for PHP developers of all skill levels in the Phoenix area. We meet consistently on the 4th Tuesday of each month at Galvanize in Downtown Phoenix. Events are posted on our Meetup page: www.meetup.com/azPHPUG/
Larry serializes his objects and lets his site users poke around in them. Don't be like Larry.
HOW TO ADDRESS OBJECT INJECTION VULNERABILITIES IN PHP
This post is for plugin developers to share why you shouldn't unseralize() data sent from untrusted sources, and how to avoid writing vulnerable code.
Anyone interested in seeing a presentation on using a modern JS framework for the meeting? We used to have presentations on using certain front end things like jquery way back but we've been primarily discussing low-level PHP or backend stuff lately.
For the October meeting? (6 days ago)Gordon Forsythe:
Next year. This month is xdebug 2 (6 days ago)Gordon Forsythe:
We could do a series of meetings showing setup & development for each major framework like we did a while back with PHP frameworks. 1 (6 days ago)Peter DeChamp Richardson:
Would love to see react and php api setup. (5 days ago)Matt Chandler:
I'm happy to share my front-end knowledge if there's interest. 2 (5 days ago)Jeremy Cole Lindblom:
Angular 4+ (5 days ago)
Been having issues with code coverage not working on phpstorm. For the life of me can’t figure out how to reset-up the configurations on it. Anyone have a good tutorial. Already read the docs on it with no luck.
I only used it a few times way back... I just do html reports now and take a look there. 1 (6 days ago)
More on NoREST (graphql) vs REST
GraphQL vs REST: Caching – APIs You Won’t Hate
Outlining the approach the two API paradigms take to caching
Folks, I have a contract PHP Developer position open at Chandler , AZ for a Fortune 10 company. Let me know if any of you is interested in knowing more about it.
If remote is available, I'd be interested in hearing more. (1 week ago)
Not necessarily PHP related, but the topic was backend-related so figured I'd share here.
I attended the reactjs meetup last night at the amazon office in tempe where the topic was graphql (and a library called apollo for the frontend, but I'm just going to talk about graphql).
So many people are wanting to use graphql but every endpoint you create with it is a one-off and seems to be primarily meant as a proxy between an app and 1+ data-sources (apis, databases, etc).
Nobody seems to realize that it's just going to end up being as slow as the slowest thing it's getting data from and you STILL need to do work to make it efficient. Nobody realizes there *are* actual RESTful API specs out there like json-ld, hal, odata, etc which already allow you to do the same things (typed entities, self-documenting, specific querying), but consistently across data sources, and play nice with existing http caching mechanisms. Plus some also have consistent methods for doing things like sorting, filtering, triggering actions, etc.
It would be awesome to have someone do a presentation about good API practices. Phil Sturgeon has a book, site, and slack channel which revolve around those topics. (just google "apis you won't hate")
funny I was just looking into learning Apollo and graphql yesterday night. I tried the playground on graph.cool to get the feel for it but idk yet how I feel tbh. (1 week ago)Peter DeChamp Richardson:
See that was my thought too Gordon. It seems like it’s a lot of work for not much benefit. You may have heard me ask about performance. It was such little data that it should have had load time like it was. Even with their server being slowed down by all of us. If you would be willing to give a talk on api practices I can get you space at WebPT. (1 week ago)
I'm curious as to how this effect is accomplished. I received an email from RandomHouse Publishing and inside that email was a product image. The image was the product book cover with a background of an enlarged, and faded, version of the cover image behind it. (see below)
I thought it was a cool effect so started digging through the html to see how they did it. But all that did was lead me to a URL like this:
Are they really generating image files on the fly? Wouldn't that be hugely resource intensive if the email is blasted out to thousands of recipients?
Regardless of resources, how do you think they've accomplished this effect?
An image manipulation library would help you create something like that. Check out Grafika (PHP).
They most likely cache the response image. Then it's not regenerated with every request. :) 1 (1 week ago)Jason Tibbetts:
The image is likely cached by id and size so serving it up is just as fast as a static image for 99% of users 1 (1 week ago)Gordon Forsythe:
Yes, much cheaper to just store the image than dynamically create it every time. 1 (1 week ago)
Active support for PHP7.0 ends in December, 5.6 ended in January.
Stop the pain, get to PHP 7
When I was young I played football at my local middle school...very terribly. I didn't enjoy running with the heavy pads in the heat, and I definitely [...]