0

How should I create my symfony 4 project if I just want to build an API?

 composer create-project symfony/website-skeleton my-project

Is this line the correct line to use or do I have to include something like

 composer create-project symfony/api-skeleton my-project

??

2 Answers 2

2

" api-skeleton " is not stable with symfony 4 you can use

 composer create-project symfony/website-skeleton my-project

or you can create a usual symfony4 project with:

composer create-project symfony/website-skeleton my-project
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for the post, but both of your examples are the same "website-skeleton".
One of the options should be: composer create-project symfony/skeleton my-project
0

To create an API with symfony 4, use the following command:

composer create-project symfony/skeleton my-project

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.