You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
SpfPhp is a library to easily integrate existing PHP sites or a standard knowledge of HTML with YouTube's SPF.js library for implementing dynamic page loading in Javascript via progressive enhancement.
That said, SpfPhp tries to be as user-friendly as possible, allowing interaction through simple progressive enhancement of HTML via the addition of attributes.
Example
<?php
SpfPhp::beginCapture();
?>
<html>
<head>
<title>Example</title>
</head>
<body>
<div id="content" x-spfphp-capture>Hello world!</div>
</body>
</html>
<?php// Then tell SpfPhp we need it
SpfPhp::autoRender();