{
    "href": "/post/2017/04/11/symfony-4-directory-structure-and-existing-standards/",
    "relId": "2017/04/11/symfony-4-directory-structure-and-existing-standards",
    "title": "Symfony 4: Directory Structure, and Common Practices",
    "author": "pmjones",
    "markup": "html",
    "tags": [
        {
            "href": "/tag/php/",
            "relId": "php",
            "title": "PHP",
            "author": null,
            "created": null,
            "updated": [],
            "markup": "markdown"
        },
        {
            "href": "/tag/programming/",
            "relId": "programming",
            "title": "Programming",
            "author": null,
            "created": null,
            "updated": [],
            "markup": "markdown"
        },
        {
            "href": "/tag/standards/",
            "relId": "standards",
            "title": "Standards",
            "author": null,
            "created": null,
            "updated": [],
            "markup": "markdown"
        }
    ],
    "created": "2017-04-11 14:32:50 UTC",
    "updated": [
        "2017-04-11 14:32:50 UTC"
    ],
    "html": "<p>Fabien has published his <a href=\"http://fabien.potencier.org/symfony4-directory-structure.html\">plans for the new Symfony 4 directory structure</a>. Not that it matters much to anyone in Symfony-land, where I have no status that I\u2019m aware of, but I am happy to see the changes described.</p>\n<p>Having said that, and recognizing that Fabien obviously has final say over his own projects \u2026</p>\n<blockquote>\n<p>The new etc/ directory is the equivalent of the current app/config/ directory.</p>\n<p>\u2026</p>\n<p>Web files under web/</p>\n</blockquote>\n<p>\u2026 it might be nice if Symfony 4 adopted more existing common practices, used by <a href=\"https://github.com/php-pds/skeleton_research#addendum\">roughly 70% of Packagist packages</a>. That is, to use <code>config/</code> for the top-level config directory, and <code>public/</code> for the top-level document-root directory.</p>\n<p>More specifically:</p>\n<ul>\n<li>\n<p><code>config/</code> is used ~10x more than <code>etc/</code> (<a href=\"https://github.com/php-pds/skeleton_research/blob/1.x/results/addendum-dirs.txt#L76\">ref</a>)</p>\n</li>\n<li>\n<p><code>public/</code> is used ~2x more than <code>web/</code> (<a href=\"https://github.com/php-pds/skeleton_research/blob/1.x/results/addendum-dirs.txt#L36\">ref</a>)</p>\n</li>\n</ul>\n<p>As a side note, that research resulted in the <a href=\"https://github.com/php-pds/skeleton/tree/1.0.0\"><code>pds/skeleton</code></a> publication.</p>\n<p>(This blog post originated as a comment on <a href=\"https://www.reddit.com/r/PHP/comments/64ksoy/symfony_4_directory_structure_incremental_changes/\">Reddit</a>.)</p>\n<p class=\"reddit-links\">Read the Reddit discussion about this post <a href=\"https://www.reddit.com/r/PHP/comments/64r6tw/symfony_4_directory_structure_and_common_practices/\">here</a>.</p>\n"
}
