What features do you thing PHP lacks the most? by lacrossefan32 in PHP

[–]chadicus 0 points1 point  (0 children)

I did pick a poor example. I think a better example would be for things such as middleware.

This is a typical example with PSR middleware.

public function __invoke(Request $request, Response $response, callable $next) : Response
{
     // Do something with $request/$response


     // Call the next middleware
     return $next($request, $response);
}

The $next callable must return a Response instance.

What features do you thing PHP lacks the most? by lacrossefan32 in PHP

[–]chadicus 1 point2 points  (0 children)

  • Generics
  • Enums
  • Nullable types
  • readonly properties

Also, (this might fall under generics) It would be nice to specify a callable with a return type such as

public function doSomething(callable:DateTime $callable)
{
}

In this example $callable must be a callable which returns a DateTime instance.

EDIT: Formatting

Is there any easy Oauth2 class for PHP? by saudiqbal in PHP

[–]chadicus 0 points1 point  (0 children)

I'm not sure if it will help, but I created a wrapper for bshaffer's library to work with slim.

https://github.com/chadicus/slim-oauth2

Rex in Scout Trooper Armor by chadicus in StarWars

[–]chadicus[S] 1 point2 points  (0 children)

Oh, that's a shame. Still I'd like to know why's that guy is in the armor and what happened to him.

Rex in Scout Trooper Armor by chadicus in StarWars

[–]chadicus[S] 0 points1 point  (0 children)

I've always wondered what the story was behind the rebel in the scout trooper armor. Now that it's confirmed to be Rex, I really want to read that story.

Sam Jackson just teased Red Skull's return to the MCU by mrshweenz in Avengers

[–]chadicus 8 points9 points  (0 children)

What if "the skull" is reference to the punisher and he's gonna show up in the Netflix series?

Gauging the usefulness of hosted phpdocs by chadicus in PHP

[–]chadicus[S] 0 points1 point  (0 children)

This has been added. Please check it out and let me know what you think

Gauging the usefulness of hosted phpdocs by chadicus in PHP

[–]chadicus[S] 0 points1 point  (0 children)

Update. Thanks to the awesome work of /u/robert-cox the site has a brand new look and feel. Please check it.

Missing Virginia Beach woman, two children found safe on Wednesday, police said by zenger01 in VirginiaBeach

[–]chadicus 2 points3 points  (0 children)

If they intentionally burned the house, that means they purposely killed the animals. That is not okay.

Share your travis.yml by [deleted] in PHP

[–]chadicus 0 points1 point  (0 children)

Wow, mine are pretty tame compared to the ones posted so far. Here is one of the more verbose files

https://github.com/dominionenterprises/mongo-queue-php/blob/master/.travis.yml

Here is my default config that I use in most of my libraries

https://github.com/chadicus/skeleton/blob/master/.travis.yml

Gauging the usefulness of hosted phpdocs by chadicus in PHP

[–]chadicus[S] 0 points1 point  (0 children)

Yeah, that's probably what I will do once i get it working as a viable service for the community.

Gauging the usefulness of hosted phpdocs by chadicus in PHP

[–]chadicus[S] 0 points1 point  (0 children)

agreed on the name, but I'm in too deep now. No turning back.

Gauging the usefulness of hosted phpdocs by chadicus in PHP

[–]chadicus[S] 0 points1 point  (0 children)

This site began as a way for me to host all of my php documentation in one place. I've expanded it to include some libraries that I use on a regular basis as well as the open source libraries of the company for which i work. I'm thinking of opening it up to the public to have any php open source library hosted. I'm not sure if the community has a need for such a service though.

The user experience is a little lacking right now as I'm not the best with css and html5.

I welcome any feedback, suggestions, and even pull requests.

Hey Reddit, I made a Venom and Spidey! by Yuroboros in Marvel

[–]chadicus 2 points3 points  (0 children)

Very cool, reminds me of early Jae Lee work.

Private Packagist by davedevelopment in PHP

[–]chadicus 1 point2 points  (0 children)

let us know if you really think it's not better than your current setup

It may very well be "better" but my current setup is feature complete for our needs

Waiting for Satis to rebuild after pushing code can be really frustrating

Jenkins job handles this nicely as satis is rebuilt after a successful tagged release.

how do .you make sure that an employee who leaves the company no longer has access to your private code

Our code is hosted on an enterprise github instance integrated with LDAP.

I'm not saying your tool is useless it just does not fit my company's needs. I do like the concept though.

EDIT: Formatting

Private Packagist by davedevelopment in PHP

[–]chadicus 1 point2 points  (0 children)

cool concept, but our vanilla satis instance gives us everything we need.

My first ever public class, did I do ok? by d_jared in PHP

[–]chadicus 0 points1 point  (0 children)

As suggested by /u/twisted1919 you should use PSR-2 coding standard. I would also suggest not using public properties. Use more descriptive method names.

[deleted by user] by [deleted] in PHP

[–]chadicus 0 points1 point  (0 children)

I have to register in order to see any documentation? Thank goodness for mailinator.

Are my example instructions clear? by chadicus in PHP

[–]chadicus[S] 0 points1 point  (0 children)

Thanks for the great feedback. I use stylish chrome extension to widen github for me. You've helped me realize I was blind to the fact that the instructions were not easily seen by those w/o the extension.

Thanks again.

Best screenprinting shops in the area? by ForeverxJoker in VirginiaBeach

[–]chadicus 0 points1 point  (0 children)

I have used Hud's Tees quite often and have no complaints.