FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
filesystem/examples/file_write.php at 0.2.x · reactphp/filesystem · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
reactphp
/
filesystem
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
38
Star
139
Code
Issues
22
Pull requests
9
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
filesystem
/
examples
/
file_write.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (9 loc) · 345 Bytes
Breadcrumbs
filesystem
/
examples
/
file_write.php
Copy path
File metadata and controls
12 lines (9 loc) · 345 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
<?php
use
React
\
Filesystem
\
Factory
;
use
React
\
Filesystem
\
Node
\
FileInterface
;
require
'
vendor/autoload.php
'
;
Factory::
create
()->
detect
(
__FILE__
.
'
.copy
'
)->
then
(
static
function
(
FileInterface
$
file
) {
return
$
file
->
putContents
(
file_get_contents
(
__FILE__
));
})->
then
(
static
function
(
$
result
):
void
{
var_export
([
$
result
]);
})->
done
();
Back
|
FazBrowse Home
|
New Git URL