also i be dumb for the phpee

wat now?

Reply to this note

Please Login to reply.

Discussion

were is createBook.php exactly? did i clone it?

PHP Warning: include_once(/home/me/Documents/eBookUtility/vendor/autoload.php): Failed to open stream: No such file or directory in /home/me/Documents/eBookUtility/createBook.php on line 3

PHP Warning: include_once(): Failed opening '/home/me/Documents/eBookUtility/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in /home/me/Documents/eBookUtility/createBook.php on line 3

PHP Fatal error: Uncaught Error: Class "swentel\nostr\Event\Event" not found in /home/me/Documents/eBookUtility/src/BookEvent.php:61

Stack trace:

#0 /home/me/Documents/eBookUtility/src/BookEvent.php(151): BookEvent->create_articles()

#1 /home/me/Documents/eBookUtility/createBook.php(14): BookEvent->publish_book()

#2 {main}

thrown in /home/me/Documents/eBookUtility/src/BookEvent.php on line 61

i dang broked it

seriously, you need to work on your documentation howtoo thing

Yeah, I need someone to tell me what to write in it. 🙈 😅

obviously you need to add

!*.php

and several other things to it

also

🤗

welcome to the lower parts of hell

No, this is the part I'm not really sure about. vendor folder includes all of the dependencies.

nostr:npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7 nostr:npub1qe3e5wrvnsgpggtkytxteaqfprz0rgxr8c3l34kk3a9t7e2l3acslezefe How does that work, when someone else is installing it?

yeah, i love vendors folders

your gitignore blocked it from being uploaded

and now you are in gitignore hell

Oh dear.

Should I upload it or would an install script be better?

Install would probably be better, since it doesn't assume you have composer setup.

yes, you can probably assume php installed, point to directions for that for ubuntu/debian and the rest can go to hell, oh yeah, where we are

but then make a script with like

#/usr/bin/bash

things here

Those are managed with composer.

Nostr-php only contains the composer.json (so no composer.lock file) so you're always downloading the latest version of the dependencies defined in that composer.json file.

To update your existing project, run `composer update -W`

If you're still stuck, remove the vendor map first with `rm -rf vendor` and run `composer install`

testing

i've lost track of what i'm doing

need hamburger

I keep zapping you, but it doesn't go through.

weird, i get zaps from many others all the time that i don't comprehend

Your zap button is grayed out, on Nostrudel, and Freerse just shrugs.

oh i changed my lnurl

it's now mleku@getalby.com

better change my profile event

yeah i did

on nostrudel go to my profile and it should load the new

Did you pull the commit I just pushed?

It should be in the root folder. It hardly does anything, just a way to start the app.

i found it but then i hit the vendor thing

just checked, no new commits

ran git pull and nothing new and this is my git log:

commit 6b0c75843068c96e3a9741fcd2669642baa9c9f7 (HEAD -> main, origin/main, origin/HEAD)

Author: Sebastix

Date: Thu Jul 4 16:39:50 2024 +0200

remove website dir from library repo

commit 2fe0a631af837043f47223d46abb816c946c57e0 (tag: 1.3.3)

Author: Sebastix

Date: Thu Jul 4 16:11:25 2024 +0200

* add backwards compatibility in the __construct() of relay for the $message argument which was used in version < 1.2.4

* fix WebsocketClient response (message) which returned an array instead of a string for the json_decode function

I think that's the Nostr PHP Helper library, not mine. 🤔