Skip to content

Composer package for supporting vite-plugin-sveltekit-php-backend.

Notifications You must be signed in to change notification settings

mattweston/sveltekit-php-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Backend for SvelteKit

You can have PHP logic directly in SvelteKit route directory like this: +page.server.php

<?php
function load($event) {
    $name = ($event->params['name'] ?? 'unknownn');
    return [
        'message' => "Hello " . $name,
    ];
}

Installation

See https://github.com/basuke/vite-plugin-sveltekit-php-backend

License

MIT

About

Composer package for supporting vite-plugin-sveltekit-php-backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%