Unanswered Questions
125 questions with no upvoted or accepted answers
4
votes
0
answers
288
views
In-memory file system context for the behat PHP BDD testing framework
I wanted to come up with a 'utility' context to enable testing of the file system with behat. Specifically this is aimed at helping with the behavioral testing of php command line applications that ...
3
votes
0
answers
520
views
Product Filters wordpress plugin: implement single responsibility principle for elements classes
Plugin is a small editor that allows to create a filter such as a price slider, checkboxes of "brands", a drop-down of "seasons".
An example of how plugin work can be seen on page: http://demo-...
3
votes
0
answers
146
views
CSRF script in Php
A short script to make a CSRF token to be used in my html elements such as inputs, file-uploads, scripts, iframes & svgs.
...
3
votes
0
answers
539
views
Codeigniter 3 loading models in a different way
I'm currently building an application that uses the same models in different controllers. Instead of using the normal way, being loading the model in the controller I've build a "core controller" (<...
3
votes
0
answers
711
views
Verify OpenSSL RSA signature (PHP) with .NET (VB)
I would like to achieve something I believe is pretty standard:
A) My VB.NET client (ideally targetting Framework 4.0) sends a text string to my Apache/PHP Server via an HTTPS POST request.
B) My ...
3
votes
0
answers
58
views
Use a pattern for fields validation
I need to validate the fields of user sent by an API. All works fine but the only one problem is that I don't like the solution is not an OOP solution. In the controller I call the service created by ...
3
votes
0
answers
737
views
Symfony: Encrypt ID's on postLoad event
I am building an application that is becoming some kind of social media platform. I need to work a lot with the entities ID's in the HTML and Javascript for the purpose of AJAX calls. However, for ...
3
votes
0
answers
110
views
Drupal 8 Content Import via CSV Implementation
I am implementing a way to import content into Drupal 8 via a CSV. This CSV contains various fields such as node ID, title, body, etc. It has been working great but I am very concerned about how long ...
3
votes
0
answers
643
views
PHPUnit testing my custom helper Facade classes in Laravel 5.5
I have been reading up on TDD and it's something I genuinely want to learn and be good at. This is something I haven't been doing as a developer and I thought it's about time I get into it.
These are ...
3
votes
0
answers
1k
views
Simple OO MVC PHP framework
I've been working on a simple MVC PHP framework on and off for the last nearly 12 months, so I thought that I'd put it out there.
The project began as a way to mentor and teach a junior (or a more ...
3
votes
0
answers
98
views
Building a Survey Data Collection project in PHP
I'm building a survey data collection. Currently, I am done with building the prototype. It serves as wizard like control to navigate through various pages in a survey project.
app/index.php
...
3
votes
0
answers
15k
views
JWT - Simple API example
I have created this fake API just because I want to learn how to use JWT. It is a simple unsigned token exchange with two methods call: login and adminPassword.
I've used https://github.com/lcobucci/...
3
votes
0
answers
924
views
PHP MVC Service Layer Role
I wrote a series of questions in a previous post, and a user recommended that I separate the questions.
I have made the switch from procedural programming to object-oriented programming. I have ...
3
votes
0
answers
582
views
Processing database data into a multidimensional array
The purpose of this code is to get data from the database and output it into a multidimensional array in JSON for my web app. But my gut instinct is telling me this code is way too messy and just ...
3
votes
0
answers
216
views
Building the HTML body view
I created a library class in CodeIgniter that handles building the HTML body view.
This class builds the body, adds content and adds javascript element tags at the end. The body is built by using a ...