Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 22 20:38
    ichiriac commented #429
  • Oct 22 20:13
    vertoo closed #32
  • Oct 22 20:13
    vertoo commented #32
  • Oct 22 17:37
    vertoo opened #32
  • Oct 21 18:29
    coveralls commented #429
  • Oct 21 18:29
    Coveralls glayzzle/php-parser (prettier) 0.2%
  • Oct 21 18:22
    evilebottnawi review_requested #429
  • Oct 21 18:21
    evilebottnawi opened #429
  • Oct 21 04:57
    Travis glayzzle/php-reflection@2842349 (dependabot/npm_and_yarn/mocha-6.2.2) passed (111)
  • Oct 21 04:57
    Coveralls glayzzle/php-reflection (dependabot/npm_and_yarn/mocha-6.2.2) 64.3%
  • Oct 21 04:35
    coveralls commented #31
  • Oct 21 04:35
    coveralls commented #31
  • Oct 21 04:35
    Coveralls glayzzle/php-reflection (dependabot/npm_and_yarn/mocha-6.2.2) 0%
  • Oct 21 04:31

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Oct 21 04:31
    dependabot-preview[bot] closed #29
  • Oct 21 04:31
    dependabot-preview[bot] commented #29
  • Oct 21 04:31
    dependabot-preview[bot] labeled #31
  • Oct 21 04:31
    dependabot-preview[bot] opened #31
  • Oct 21 04:31

    dependabot-preview[bot] on npm_and_yarn

    Bump mocha from 6.2.0 to 6.2.2 … (compare)

  • Oct 16 07:31
    coveralls commented #428
Ioan CHIRIAC
@ichiriac
just released a new version of glayzzle 1.0.2 - you can try it here : http://glayzzle.com/php-parser/#demo
Sara Itani
@mousetraps
@ichiriac @nevadascout just following up from our thread before. Just wanted to get a date/time set to share parser/language-service learnings. How about next Tuesday (6pm France, 5pm UK, 9am Seattle?)
Ioan CHIRIAC
@ichiriac
Hi Sara, would be great
Ioan CHIRIAC
@ichiriac
At 20pm France im available
nevada_scout
@nevadascout
19:00 UTC is better for me too
Ioan CHIRIAC
@ichiriac
never mind for me, i will not be available anyway so choose as you want
Sara Itani
@mousetraps
Okay, then in that case how about Wednesday 19:00 UTC?
nevada_scout
@nevadascout
I'm around from 19:00 onwards most days apart from Thursday this week
Elmer Bulthuis
@elmerbulthuis
OMG!
you exist!
Are you actuallybuilding php for node?
I have been having the same idea for a long long time
I have the "php" module in npm
I would love to seethis happen
ara you still active?
Ioan CHIRIAC
@ichiriac
Hi
We can talk tomorow, but yes it's active, i just dont have time actually
I'll finish my prototype this summer
Ioan CHIRIAC
@ichiriac
Actually a good hemo here : https://gitlab.com/kornelski/babel-preset-php
and also can be tested here : https://babeljs.io/php/
Filippo Conti
@b4dnewz
hi guys, first of all, thanks so much for the great work, I'm just starting to use it, but from the online demo I see is really cool and fast.
I'm having some troubles to understand what I'm doing wrong, I've opened this issue wich describes more about it: glayzzle/php-parser#89 in few words, I'm trying to parse a file and I keep getting 1 children only as Inline but the online demo (with the same code) is working great.
Filippo Conti
@b4dnewz
I've found it, but the documentation should be corrected it says parseCode accepts a buffer but wasn't working, also here the example should be updated: https://github.com/glayzzle/php-writer by the way many thanks!
Ioan CHIRIAC
@ichiriac
hi @b4dnewz, thanks , i'll take some time in order to correct the docs.
Filippo Conti
@b4dnewz
hi @ichiriac, how are you? I was looking around the glayzzle repositories and I've a few question about them. I see php-reflection, the one you told me the first time we spoke on github, is very similar to php-parser, may I ask what are their different purposes? I remember you told me the "main" project is php-reflection that can allow to other sub-projects like dinamic documentation generation, etc...
Ioan CHIRIAC
@ichiriac
Hi @b4dnewz, their purpose are not the same. php-parser is a parsing library, you can use it just in order to retrieve AST objects or array of tokens
php-reflection is a wrapper around php-parser and it takes multiple files in order to build a symbol table of an entire project. It's bad to use the word reflection as it's not at runtime, but this is kind the same as a reflection library in what you can see the structure of classes, functions, namespaces, constants ...
So the difference is on the API, php-parser gives you full details of the sources, php-reflection gives you only details about structures (the inner code of a function or a class method is not stored)
Ioan CHIRIAC
@ichiriac
the hard part is that on big projects memory management becomes hard, as I store dependencies between classes, methods, etc ... so I've made another project that is like a graph database : https://github.com/glayzzle/grafine (but addressing specific needs of indexing code nodes)
Filippo Conti
@b4dnewz
ah ok, now it's much clear! Man, let me say one thing, you are awesome, really all of this projects are too cool and all the effort you are put into it it's amazing.
When I've some spare time, I would like to try to build a php-documentation generator with php-reflection (now I understood exactly what it does and what is created for), it should be relatively hard to do it.
Ioan CHIRIAC
@ichiriac
right, that's the kind of project you can address with php-reflection (and it's docblock integrated support) - every project using libs are welcome as they help me to improve them - tell me if you need help :)
Filippo Conti
@b4dnewz
yep sure, I will. right now I've just used php-writer (parser/unparser) but I will dig deep into all of them
Filippo Conti
@b4dnewz
hey Ioan, what's up? it's been a while and I was busy but I'm starting a new project which involves php-parser and php-reflection and it will probably lead to some other PR since it will be used deeply.
I would like to talk with you briefly about php-reflection, while you have time obviously! let me know
Sajeeb Lohani
@ProDigySML
Hey!
I was hoping to use https://glayzzle.com/php-parser/
To parse and create ASTs for PHP program
programs**
However these programs would not be in the same file
For example, parsing something like:
Does anyone have any advice on how to do so?
Ioan CHIRIAC
@ichiriac
hi @ProDigySML, you can take a look at https://github.com/glayzzle/php-reflection, it reads multiple files, but depends on what you plan to do after parsing files