Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.13 KB

wynter.md

File metadata and controls

34 lines (27 loc) · 1.13 KB

Wynter Components BETA

Wynter is a full-stack framework built on Leaf that makes building dynamic interfaces simple, without leaving your PHP environment. Wynter is directly implemented from Caleb Porzio's Livewire.

So basically wynter gives you the power of frontend frameworks, coupled with the full power of PHP. Let's see how this works.

Here's a real-time search component built with Wynter

class SearchUsers extends \Leaf\Wynter\Component {
	public $search;

	public function render() {
		return $this->blade->render("users-search", [
			'users' => $db->select("users", "username", "username LIKE ".$this->search."%")
		]);
	}
}
<div>
	<input wynter:model="search" type="text" placeholder="Search Users...">

	<ul>
		@foreach($users as $user)
			<li>{{ $user->username }}</li>
		@endforeach
	</ul>
</div>

Built with ❤ by Mychi Darko