Netzmensch
Netzmensch

Reputation: 141

Getting Started with Silex Composer Project

I'm struggling around with Silex and its Project Structure. I'm using PHP for around 10 years now, but I always used tools like Np++. Now I get started with PhpStorm and I feel like a total newbie.

What I'm trying, is to create a Silex Project. After starting a new Composer Project I get the following Structure:

--doc
--src
----Silex
------[Some Silex files]
--tests
--vendor
[some rootfiles]

Let's come to my problem: In my understanding, I would put my files in a folder foobar under the src folder.

The part which is not clear to me is:

In the past I had a project structure like:

-- config
-- includes
-- models
-- modules
-- templates
-- resources
-- js
-- [etc]
index.php
includes.php
[other files]

I've been googling around for some hours and I didn't find any good explanation. Can someone give me an advice or an good tutorial? Even if it cost some bucks. It is for a new job and I would be very sad if it would fail because of such little problem. Thank you!

Answers in English or German are welcome.

Upvotes: 0

Views: 314

Answers (2)

mike
mike

Reputation: 1906

Consider Fabien's skeleton project from https://github.com/silexphp/Silex-Skeleton.

It illustrates the essential directory structure you'll use.

That said, unless you require the micro framework, hop into Symphony 3.3 to get running on the exciting things coming ahead in Symfony 4.

See Fabien's blog at https://medium.com/@fabpot for updates.

Upvotes: 0

Netzmensch
Netzmensch

Reputation: 141

My problem was, that I ignored the fact: Silex based on Symphony. For beginners it is mandatory, to start with Symphony !

Upvotes: 0

Related Questions