For questions about Symfony, a free PHP web application framework.
Questions tagged [symfony]
30 questions
11
votes
3 answers
How to consume external RESTful API with Symfony?
We are building a Microservice architecture for our projects, with mostly front-end Symfony applications interacting with back-end RESTful APIs.
The problem is this approach is breaking the Symfony entity management relying heavily on Doctrine with…

Pierre B.
- 213
- 1
- 2
- 6
7
votes
5 answers
php CMS from scratch vs open source
Problem: We have to develop a CMS for our sites. The sites are kind of different, but they have common parts. We need to use our external user system and permissions, the menus are different for each of the sites, the forms are posting to a 3rd…

rungurean
- 83
- 4
5
votes
2 answers
Where should the database and mail parameters be stored in a Symfony2 app?
In the default folder structure for a Symfony2 project the database and mail server credentials are stored in parameters.yml file inside ProjectRoot/app/config/parameters.yml with these default values:
parameters:
database_driver: pdo_mysql
…

Songo
- 6,548
- 4
- 48
- 89
4
votes
0 answers
Symfony2 - Best aproach for a plugin system
Symfony2 is handling all its things in bundles in /app or in /vendor. This is fine if you are handling and managing all by yourself or Ops that handle all needed things.
But I haven't found a good way for some kind of 'plugin system' in SF2 till…

Michael
- 41
- 6
4
votes
3 answers
What am I missing from my CI stack?
Right now, the current deploy process at my work is based around tagging from the trunk and switching various PHP web sites for clients on our QA and Production servers. While this is simple from the technical level, it becomes really tedious when…

CamelBlues
- 1,145
- 1
- 6
- 14
3
votes
1 answer
Multi-client application (Symfony 4 Rest API) : how to manage customization?
I am working on a Symfony 4 rest API application which will be use by multiple client(about 20 different clients). Each client has his specific needs so I have to fork the web application for each client in order to implement the specific needs. For…

Moran_bzh
- 31
- 2
3
votes
0 answers
API Cilent - global request method or one method per request?
I am designing a 3rd-party library for developers to retrieve data from various endpoints of another system which itself has multiple APIs. Each of those APIs may contain the same type of request but return different data, which correspond to a…

Jason Roman
- 139
- 2
3
votes
1 answer
How to improve my workflow (git, symfony, composer, bower, grunt)?
It's time to improve my workflow. I never had the responsibility of setting up the infrastructure, managing git, versions or releases. For me it was simple push/pull most of the time and I think, the workflow wasn't state of the art. I'd like to…

Mr. B.
- 143
- 3
3
votes
3 answers
Better php framework for shared hosting
I need to develop an app for booking appointments. This is going to be hosted in a shared server. So performance is the most important thing. I have used symfony2. I quite liked the framework. But seems to be heavy.
Which framework would suit me…

ravi404
- 99
- 1
- 9
2
votes
3 answers
Pushing a new version of a live web application in a Git based workflow
I have a question regarding workflow in web development. I'm building my project in Symfony, and it's in Git.
Right now, I have three environments, dev (local), staging and prod. The project itself is hosted on GitHub in a private repo.
I'm…

Brandon
- 5,873
- 6
- 37
- 59
1
vote
1 answer
What does Symfony Framework offer that Zend Framework does not?
I have professionally working with Zend Framework for about a year. No major complaints. With some modifications, it has done a good job. I'm beginning to work on a side project where I want to heavily rely on MongoDb and Doctrine. I thought it…

Fatmuemoo
- 119
- 4
1
vote
1 answer
What is the way to make an internal API
I have a Symfony project.
I want to make this project API based, but also with a Web UI.
So, I have 2 Bundles, ApplicationBundle and WebUiBundle.
In Application Bundle, I have application, domain and infrastructure (tiers?), where application has…

JorgeeFG
- 659
- 4
- 13
1
vote
2 answers
Is it a good practice to load Models as a service like I do when I use Symfony framework?
Usually on Symnfony framework I use the provided depedency Injection container and on Controller I load the models as a service. To be more In detail on a current project I am having the following services.yml:
# Learn more about services,…

Dimitrios Desyllas
- 451
- 2
- 4
- 16
1
vote
1 answer
Symfony 2 Multi tenancy architecture, data loaded form front controller/kernel based on subdomain
Hello fellow programmers,
(a bit of background)I'm building a Symfony 2 application for university Student accommodation, when our clients from the university side register with their details a subdomain is created, students belonging to a…

some_groceries
- 113
- 8
1
vote
1 answer
Possible to refactor these methods that contain the same logical flow?
I have many methods in many repositories that have the same logical flow:
Retrieve value from Cache
Check value
If no value, fetch from Database
Update Cache
Return value
Is there a way to refactor these methods in such a way that I don't have…

Jonathan
- 1,135
- 1
- 11
- 15