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 Feb 9, 2023. It is now read-only.
I am not an expert, i am having this trouble.
First i created a composer.json:
{
"minimum-stability": "dev",
}
then, in visual code, from terminal, i wrote this command:
"composer require web3-php/web3"
and terminal thorw this:
Using version dev-master for web3-php/web3
./composer.json has been updated
Running composer update web3-php/web3
Loading composer repositories with package information
Updating dependencies
Lock file operations: 12 installs, 0 updates, 0 removals
Installing web3-php/web3 (dev-master 061828b): Extracting archive
7 package suggestions were added by new dependencies, use composer suggest to see details.
Generating autoload files
6 packages you are using are looking for funding.
Use the composer fund command to find out more!
And in folder, appear the composer.lock and vendor folder with a bunch of stuff installed.
Inside the vendor folder there is an autoload.php file, which has this code in it:
You may want to have a look at how Composer works overall, but you should be requiring vendor/autoload.php from your project (outside of the vendor directory), rather than accessing the autoloader directly. 🙂
For example, if you added an index.php file in your web3ppp directory. You can add:
I am not an expert, i am having this trouble.
First i created a composer.json:
then, in visual code, from terminal, i wrote this command:
"composer require web3-php/web3"
and terminal thorw this:
And in folder, appear the composer.lock and vendor folder with a bunch of stuff installed.
Inside the vendor folder there is an autoload.php file, which has this code in it:
so i want to make a test, and add the following to the autoload.php file:
Then go to my browser, http://localhost/web3ppp/vendor/autoload.php and nothing happend:
but if i put the
print ("test"); before the return line, the text "test" appear,
so there is something wrong with the return line, but i dont know what is wrong.
Im using xampp with php 8.0.6 on windows 10.
Can anyone tell me what im doing wrong?
The text was updated successfully, but these errors were encountered: