TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Virtual File System in PHP

112 点作者 adlawson将近 11 年前

9 条评论

adlawson将近 11 年前
I know PHP isn&#x27;t the &quot;coolest&quot; of languages around, but I thought I&#x27;d just show my project I started a few years ago and never really got around to finishing.<p>It&#x27;s been used before as part of a mustache template runtime evaluator and in test suites.<p>Current issues:<p>- Test coverage is okay but could definitely be improved (currently ~60%)<p>- Symlinks<p>- Proper support for perms&#x2F;ACL<p>If anyone&#x27;s got any feedback or wants to contribute, go ahead.
评论 #7996867 未加载
评论 #7996041 未加载
评论 #7995230 未加载
noonespecial将近 11 年前
I don&#x27;t much care for PHP, always using perl in the old days when given the choice, but I sure do wish the PHP I&#x27;ve had to work with over the years looked like this.<p>I don&#x27;t even care how it works yet, just looking at how well its laid out makes me feel like I can figure it out without much trouble. The comments and variable names alone start to draw me into the &quot;story&quot; as soon as I pop open a file.<p>We don&#x27;t say it enough to each other. Well done.
评论 #7997168 未加载
nubs将近 11 年前
How does this compare to vfsStream[1]? I&#x27;ve used that in the past for mocking in unit tests. Does this offer anything more than vfsStream?<p>[1]: <a href="https://github.com/mikey179/vfsStream" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mikey179&#x2F;vfsStream</a>
评论 #7995311 未加载
michaelbuckbee将近 11 年前
I&#x27;m curious if this would be performant enough to use in something like Heroku. For example a big challenge to running Wordpress on Heroku is that some plugins write out some files, etc
评论 #7995400 未加载
blueflow将近 11 年前
PHP may be an ugly language, but these kind of projects are fascinating even if i doubt that i would ever need such a thing. And +1 for that gif.
thornag将近 11 年前
I made one some time ago too<p><a href="https://github.com/thornag/php-vfs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thornag&#x2F;php-vfs</a><p>Similarly, I&#x27;ve been trying to make it behave just like the native functions under unix environment. Think the basic assumptions are the same.
canadev将近 11 年前
I am curious, what is the point of using something like this?
评论 #7995282 未加载
mkoryak将近 11 年前
What is that gif from?
评论 #7998693 未加载
benatkin将近 11 年前
That animated GIF is awesome.
评论 #8000593 未加载