Coder Social home page Coder Social logo

symphart's Introduction

Set up

  • Install XAMPP

  • Install Composer

  • Create project using command : composer create-project symfony/skeleton symphart

  • Modify httpd-vhosts.conf(path : xampp > apahce > conf > extra > httpd-vhosts.conf)

    <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/symphart/public" ServerName symphart.test

  • Add "127.0.0.1 symphart.test" into hosts file.

  • Add .htaccess on Public folder

RewriteEngine On
# Determine the RewriteBase automatically and set it as environment variable.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]

# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]

# Rewrite all other queries to the front controller.
RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule>
  • composer require annotations(ref.https://symfony.com/doc/current/routing.html)

  • composer require twig

  • composer require doctrine maker

  • php bin/console doctrine:database:create

  • php bin/console make:entity Article

  • php bin/console doctrine:migrations:diff

  • php bin/console doctrine:migrations:migrate

  • php bin/console doctrine:query:sql 'SELECT * from article'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.