<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.kalen.pw/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.kalen.pw/feed.php">
        <title>wiki.kalen.pw development:php</title>
        <description></description>
        <link>https://wiki.kalen.pw/</link>
        <image rdf:resource="https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico" />
       <dc:date>2026-04-30T22:17:21+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:php:laravel&amp;rev=1625004916&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:php:start&amp;rev=1625004876&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:php:xdebug&amp;rev=1625004950&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico">
        <title>wiki.kalen.pw</title>
        <link>https://wiki.kalen.pw/</link>
        <url>https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:php:laravel&amp;rev=1625004916&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:15:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Laravel</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:php:laravel&amp;rev=1625004916&amp;do=diff</link>
        <description>Laravel

----------

Create Project


# new project
composer create-project --prefer-dist laravel/laravel PROJECT_NAME

# if cloning repo you likely will need to generate a key
php artisan key:generate --ansi


----------

CORS

 Laravel-cors repo


composer require barryvdh/laravel-cors</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:php:start&amp;rev=1625004876&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:14:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>PHP</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:php:start&amp;rev=1625004876&amp;do=diff</link>
        <description>PHP

	*   Laravel 
	*   Xdebug 

----------

PSR4 Autoloading

add the following to composer.json


&quot;autoload&quot;: {
    &quot;psr-4&quot;: {
        &quot;App\\&quot;: &quot;src/&quot;
    }
}


App will preface all your namespaces and src/ is your directory with files to autoload.
eg:


namespace App\Util\Whatever;</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:php:xdebug&amp;rev=1625004950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:15:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Xdebug</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:php:xdebug&amp;rev=1625004950&amp;do=diff</link>
        <description>Xdebug

----------

Installation

Copy/paste phpinfo(); in the  Xdebug install wizard  for customized directions. 


Generically this should work 


pecl install xdebug


Ensure you put the xdebug config in the correct php.ini. If using Nginx + fpm it's something like /etc/php/7.x/fpm/php.ini</description>
    </item>
</rdf:RDF>
