Questions tagged [symfony3]

Symfony is an open source PHP web development framework for PHP 5.5.9+, focusing on easy and fast development cycles and including state-of-the-art design patterns and programming philosophies.

Filter by
Sorted by
Tagged with
7 votes
1 answer
213 views

Build a set of REST interfaces using Symfony framework

I have got a technical challenge from a company but they reject my code and I'm not sure how to do this challenge in a more efficient way so I'm here to get some guidance. The Technical challenge was:...
Muhammad Shahzad's user avatar
4 votes
0 answers
104 views

Wrapper for Google_Service_Calendar as a Symfony service

My app interacts with Google Calendar. This Service wraps Google_Service_Calendar: ...
Chrisissorry's user avatar
2 votes
0 answers
67 views

Best approach to parse data from multiple APIs to Entities in PHP

I built an application that extracts and updates data from multiple ecommerces websites. Each eCommerce is either built using platforms/frameworks such as Shopify, Prestashop or WooCommerce. This ...
db306's user avatar
  • 121
3 votes
0 answers
43 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 ...
klsdskldsd's user avatar
3 votes
0 answers
642 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 ...
jrswgtr's user avatar
  • 131
2 votes
0 answers
38 views

Many to many (n to m) relationship without insert duplication php

I managed to make a many to many relationship work correctly using mysql, doctrine 2 and symfony 3.4. When a new element A that contains 0 to m element Bs is inserted, the B elements that already ...
NanoPish's user avatar
  • 173
2 votes
1 answer
111 views

Model database for contract renewal

I have made a contract renewal system in Symfony and Doctrine, and it works, but I think it can be improved, but I make too many requests to the database. These are my models: ...
jcarlosweb's user avatar
0 votes
2 answers
63 views

Function/method to get selective columns

Is it possible to simplify getRows() or it is fine as it is now? ...
DEarTh's user avatar
  • 101
4 votes
2 answers
598 views

TodoList in Symfony 3

This little project is about working with doctrine Entity object and everything is working fine. This is my first project in Symfony 3. Please review my service file and give me some advice to ...
Keramik's user avatar
  • 71
2 votes
0 answers
85 views

PHPUnit test recomendations

This is my first PHPUnit test with mocks, for a Symfony 3 project. Can anyone give me some advice about this code? ...
user avatar
2 votes
0 answers
3k views

Using Symfony forms without a database entity

I've been developing an application based on Symfony 3, and part of that application involves an import process where a user can upload csv files. One thing that I've never been too sure about with ...
kicken's user avatar
  • 121