Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laravel Zero and NativePHP?#457

osteel started this conversation inIdeas
Aug 11, 2023· 3 comments· 5 replies
Discussion options

Hi there,

NativePHP was recently unveiled at Laracon and I'm pretty excited about it. What would get me even more excited though is being able to distribute Laravel Zero applications as native programs, whether through NativePHP or not.

I'm wondering how hard it would be to get the ball rolling on this? Has anyone started looking into it yet?

I know@mpociotmentioned submitting a PR for this (also suggesting bundling the PHP binary with the Laravel Zero app wouldn't be done through NativePHP), but I'm guessing that's not very high on his priority list.

I'd be happy to help, but have no idea where to start at the moment. Is there any interest from Laravel Zero to get something like that in, to begin with? WouldStatic PHP CLI be the right starting point for it?

Any pointers would be appreciated!

Cheers,

Yannick

You must be logged in to vote

Replies: 3 comments 5 replies

Comment options

I actually started working on this already, I hope to finish the PR over the weekend 👍

You must be logged in to vote
4 replies
@osteel
Comment options

Now I amvery excited.

@mrfelipemartins
Comment options

Awesome! Can't wait to see this PR!

@osteel
Comment options

haha yeah same – I'm checking once in a while, see if it pops up

@igorsgm
Comment options

I'm very excited for it too! 👀

Comment options

I think the only thing that's really needed is some way to bundle the static PHP binary?

You must be logged in to vote
1 reply
@osteel
Comment options

Basically yes. Would just be nice to have the corresponding logic abstracted away behind a nice API of some sorts.

I also haveFrankenPHP on my radar but haven't had the chance to give it a go yet

Comment options

Quick update on this – while some sort of wrapper with a nice API would be cool, it's probably possible to package a Laravel Zero app with a PHP runtime already.

This article is a good starting point and the example application the author uses actually works.

I tried to package a Laravel Zero projectof mine the same way but it unfortunately didn't work. I keep getting the following error and I don't know how to debug it at this stage:

The application may only be invoked from a command line, got "micro"

Others might have more luck though!

EDIT: Just got the solution from the article's authoron X – there's a--with-micro-fake-clioption when building the static PHP binary that addresses this error specifically

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
5 participants
@osteel@mpociot@igorsgm@mrfelipemartins@emmadesilva

[8]ページ先頭

©2009-2025 Movatter.jp