Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 02 19:45

    kelunik on master

    Switch from Travis CI to GitHub… (compare)

  • Feb 02 19:39
    kelunik commented #101
  • Feb 02 19:38

    kelunik on master

    Improve warning if config loadi… (compare)

  • Feb 02 12:33
    kelunik commented #101
  • Feb 02 12:16
    raghuveer opened #101
  • Nov 09 2020 16:47

    trowski on v2

    Update examples (compare)

  • Oct 10 2020 04:50

    trowski on v2

    Refactor for Amp v3 (compare)

  • Aug 30 2020 19:22

    kelunik on master

    Update shared documentation fil… (compare)

  • Jul 28 2020 16:37
    kelunik commented #100
  • Jul 28 2020 16:31
    roquie commented #100
  • Jul 28 2020 16:22
    kelunik commented #100
  • Jul 23 2020 20:42

    kelunik on master

    Update shared documentation fil… (compare)

  • Jul 21 2020 19:38

    kelunik on v1.2.3

    (compare)

  • Jul 21 2020 19:06

    kelunik on master

    Add timeout to no response erro… (compare)

  • Jul 10 2020 16:24
    kelunik commented #96
  • Jul 10 2020 11:23
    ShiSHcat closed #96
  • Jul 10 2020 11:23
    ShiSHcat commented #96
  • Jun 25 2020 19:01
    kelunik commented #100
  • Jun 25 2020 04:54
    roquie commented #100
  • Jun 24 2020 18:38
    kelunik commented #100
Aaron Piotrowski
@trowski
I've always set the headers directly. Never occurred to me to pull it from the URL.
Michael Moravec
@Majkl578
hmm I am used to setting it in the URL (it's also more config-friendly), that't why I was surprised :)
(the need for base64_encode makes it more annoying too)
Aaron Piotrowski
@trowski
Not sure if any of the APIs I use make use of basic auth actually… lol
It would be fairly straightforward to implement, so please do if you think it would be of use to others.
Michael Moravec
@Majkl578
yeah it's abomination, but well, sometimes the decision is not up to you :D
will see what can be done later
anyway Amp is amazing :)
Aaron Piotrowski
@trowski
Oh, I was wrong. PayPal uses Basic auth.
Michael Moravec
@Majkl578
wow
in my case it isn't really API-level auth, rather webserver "from outside" level
Aaron Piotrowski
@trowski
It's only in the request for the oauth2 token, so…
Michael Moravec
@Majkl578
IIRC there were some legacy approaches with x-oauth-token:token authority, was it Facebook maybe?
Aaron Piotrowski
@trowski
No idea.
git clone https://<token>:x-oauth-basic@github.com/owner/repo.git
Aaron Piotrowski
@trowski
First time I pushed a PayPal payments system live I changed someone almost $4000 instead of $40 since the API wants the decimal.
charged*
I forgot to check how much was actually coming out of the sandbox API account. I just tested that it worked. Whoops
Michael Moravec
@Majkl578
:joy:
Leda Ferreira
@leda-ferreira
hi, I'm trying to move from reactphp to amp and I'm having some trouble
when I run the first script, I get the expected result: I can connect to the printer, send a command to list current jobs, and use this result
when I try to run the second script, it gives me an error on line 18
"trying to call write() on null"
and I don't really understand what is wrong here
can anyone help me figure out what is wrong in my code? thanks
Aaron Piotrowski
@trowski
@leda-ferreira Constructors cannot be coroutines like that.
In fact, returning anything from a constructor is an error.
You should either 1) Inject the socket into the object (i.e.: new Application(yield connect($uri))), which would also be better for testability; or 2) Provide the URI to the constructor and add a connect() method to Application.
Personally I think (1) is the better method.
Aaron Piotrowski
@trowski
What was happening in the code that wasn't working is that the coroutine in the constructor hadn't completed running before calling sendPrinterCommand(), so $this->socket was still null.
Leda Ferreira
@leda-ferreira
thanks
yeah, you're right, returning stuff from constructors make no sense at all
I was a bit confused by fluent interfaces
Eddy Ernesto Baños Fernández
@eebanos
hey guys, where do I find documentation for version 1.x??
or examples
Marc Morera
@mmoreram
Hello guys! Is any interested in talking about AMP during the very first Async PHP conference in Barcelona next 26th March? Please, ping me if you're :) Thanks!
Dibyajyoti Panda
@dbjpanda
Hello Guys, Any help on this issue please amphp/parallel-functions#21
The Doctor
@xX-TheDoctor-Xx
Hi, is there example code for the sessions addon?
The Doctor
@xX-TheDoctor-Xx
Just took a better look at the tests and I think I can implement it, will take a bit of time tho, would be awesome to get some documentation
The Doctor
@xX-TheDoctor-Xx
Lack of documentation really hurts
For example, I had no idea RequestBody::buffer would return a string because in the docs it doesn't say, took me around half an hour to figure it out
Has to make my own session management middleware because the sessions package doesn't have documentation on how to use
The Doctor
@xX-TheDoctor-Xx
I'm switching to react, I've had enough headaches, the cora addon doesn't go well with the router
Aaron Piotrowski
@trowski
@xX-TheDoctor-Xx I'm happy to answer any questions you might have. We don't really chat here anymore, we use either IRC or Telegram: https://t.me/joinchat/PG542kTvz6R4Za5q1S0wUw
IRC is on freenode, #amphp.
We definitely need to improve documentation, yes. Some of the packages are still a little new.