In a search for nice ATK4 CURL class

56 views
Skip to first unread message

Imants Horsts

unread,
Nov 28, 2012, 11:26:49 AM11/28/12
to agile-too...@googlegroups.com
I'm in a search for nice looking ATK4 CURL class.
Of course I can make one myself, but I remember I seen it somewhere already made and can't find it now :(

Romans Malinovskis

unread,
Nov 28, 2012, 12:03:07 PM11/28/12
to agile-too...@googlegroups.com
I'm in a search for nice looking ATK4 CURL class.
Of course I can make one myself, but I remember I seen it somewhere already made and can't find it now :(

--
 
 

--
Join our IRC Support channel: http://irc.lc/freenode/atk4 or irc://irc.freenode.net/atk4 

Romans Malinovskis is the author of the revolutionary PHP Framework: the “Agile Toolkit” (www.agiletoolkit.org). Please show your support by raising awareness about Agile Toolkit.

If you need help with your commercial Agile Toolkit project, consider using our dev team: http://www.agiletech.ie/company/

Marco Biondi

unread,
Nov 28, 2012, 12:03:57 PM11/28/12
to agile-too...@googlegroups.com
We have one! :)
And we want to publish it as an addon but I need to know how to do it in the correct way (we have some code that we want to share as addons).

We completely abstracted the curl access so you see the HTTP transport object that have a request and a response. The Object already implements doctest (another thing that we want to share).

How we proceed? Romans have you any suggestion? :)

Romans Malinovskis

unread,
Nov 28, 2012, 12:11:06 PM11/28/12
to agile-too...@googlegroups.com
--
 
 

Marco Biondi

unread,
Nov 28, 2012, 12:28:36 PM11/28/12
to agile-too...@googlegroups.com
Of course I will create the repo there. Am I free to choose the namespace I want or you are keeping a list of used namespaces for third party addons?
If I can chhose I will use namespaces like \com\appsfuel\http to be sure nobody else can conflict with me.

Is this fine? (if yes I will give the directive to all our developers! :) )

Imants Horsts

unread,
Nov 28, 2012, 6:01:37 PM11/28/12
to agile-too...@googlegroups.com
I'm not completely sure will \foo\bar\qwerty type of namespaces will work with ATK4. Have to test that.
But if these work, then we probably need to create some rules for add-on developers how to use correct namespace.
I like idea of \username\addon_pack_name\addon_name. That should be completely unique namespace.
* username - required, probably Github username of addon developer/maintainer.
* addon_pack_name - optional
* addon_name - required, this is what we basically use now

Marco Biondi

unread,
Nov 29, 2012, 12:48:00 AM11/29/12
to agile-too...@googlegroups.com
I like the dev\pack\addon namespace. I will try it ti test if it works and eventually patch the code... If you want to take a look to the transport class contact me directly.

Romans Malinovskis

unread,
Nov 29, 2012, 2:08:22 AM11/29/12
to agile-too...@googlegroups.com
We keep things simple in ATK.

Create addon “blah” put into namespace “blah”. 

r

I like the dev\pack\addon namespace. I will try it ti test if it works and eventually patch the code... If you want to take a look to the transport class contact me directly.

--


Gowrav Vishwakarma

unread,
Nov 29, 2012, 3:46:06 AM11/29/12
to agile-too...@googlegroups.com
Some where I also found that if you do not do that ATK will not find your files.. ;)

it has to be in same namespace as the folder/add-ons name

--
 
 



--
Regards

Gowrav Vishwakarma
Man of Affairs, Digital Vish, Xavoc International
http://www.digitlavish.com : +91 9783807100
http://www.xavoc.com

--------------------------------------------------------------------
Never Never Never Never Never Never Never Never Never Never Never Never Never Never Never  GIVE UP

Imants Horsts

unread,
Nov 29, 2012, 8:35:50 AM11/29/12
to agile-too...@googlegroups.com
@Romans - simplicity is very good till some point in future when we'll have a lot of add-ons and they will definitely start to use same popular namespaces like - menu, list, tree, html, crud, grid, autocomplete, form etc.

@Gowrav, Romans - if namespace is used to find files in particular directories, then maybe slash "\" can be translated to underscore "_" and that way we'll get for example:
namespace: \darkside666\ds-addons\menu
directory: /darkside666_ds-addons_menu, but that looks weird and very long name for directory
Maybe we then have to have directory structure of add-on the same as structure in namespace: \darkside666\ds-addons\menu ?

Marco Biondi

unread,
Nov 29, 2012, 9:12:05 AM11/29/12
to agile-too...@googlegroups.com
2012/11/29 Imants Horsts <imants...@inbox.lv>

@Romans - simplicity is very good till some point in future when we'll have a lot of add-ons and they will definitely start to use same popular namespaces like - menu, list, tree, html, crud, grid, autocomplete, form etc.

+1 :)

 
@Gowrav, Romans - if namespace is used to find files in particular directories, then maybe slash "\" can be translated to underscore "_" and that way we'll get for example:
namespace: \darkside666\ds-addons\menu
directory: /darkside666_ds-addons_menu, but that looks weird and very long name for directory
Maybe we then have to have directory structure of add-on the same as structure in namespace: \darkside666\ds-addons\menu ?

I vote to replicate the same dir structure as the namespace. Using the proposed \<gitname>\<package>\<addon> is clear even by looking at the dir tree. The <package> part will be of course optional and is used only in case a developer will develop a lot of addons that wants to keep grouped in "functional" groups.

tommaso allevi

unread,
Nov 29, 2012, 9:13:25 AM11/29/12
to agile-too...@googlegroups.com
+1


2012/11/29 Marco Biondi <marco....@gmail.com>

--
 
 

Janis Volbergs

unread,
Nov 30, 2012, 3:21:43 AM11/30/12
to agile-too...@googlegroups.com
Git is fine, but in near future we shall have official add-on store for Agile Toolkit software, where all of you will be able to publish your add ons (very much possible that there will be close git integration for that). And I believe that the centralised add-on store will handle namespaces properly.

I believe Romans will provide more info on the plan when time comes.

For time being feel free to use any namespace name.

Cheers.


--
 
 

Romans Malinovskis

unread,
Nov 30, 2012, 3:43:42 AM11/30/12
to agile-too...@googlegroups.com

@Romans - simplicity is very good till some point in future when we’ll have a lot of add-ons and they will definitely start to use same popular namespaces like - menu, list, tree, html, crud, grid, autocomplete, form etc.

I don’t intend it to keep that way forever, and if we have problems in the future it can be extended. I wouldn’t want to see namespaces like:

 atk4\addon\com\mydomain\addon123


@Gowrav, Romans - if namespace is used to find files in particular directories, then maybe slash "\" can be translated to underscore "_" and that way we'll get for example:
namespace: \darkside666\ds-addons\menu
directory: /darkside666_ds-addons_menu, but that looks weird and very long name for directory
Maybe we then have to have directory structure of add-on the same as structure in namespace: \darkside666\ds-addons\menu ?

namespace is converted to underscores for object names which have impact on JS IDs, session etc. Directory would be named darkside666/ds-addons/menu





On Thursday, November 29, 2012 10:46:06 AM UTC+2, Gowrav Vishwakarma wrote:
Some where I also found that if you do not do that ATK will not find your files.. ;)

it has to be in same namespace as the folder/add-ons name

On Thu, Nov 29, 2012 at 12:38 PM, Romans Malinovskis <rom...@agiletoolkit.org> wrote:
We keep things simple in ATK.

Create addon “blah” put into namespace “blah”. 

r

I like the dev\pack\addon namespace. I will try it ti test if it works and eventually patch the code... If you want to take a look to the transport class contact me directly.

--
 
 

Imants Horsts

unread,
Nov 30, 2012, 6:24:12 AM11/30/12
to agile-too...@googlegroups.com, j...@agiletech.ie
+1000 :)

Imants Horsts

unread,
Nov 30, 2012, 6:26:09 AM11/30/12
to agile-too...@googlegroups.com
OK I see. But have anyone tested using of namespace like \foo\bar\ in add-ons?
Are there any problems with that in current ATK4 master version or is it working fine?

Marco Biondi

unread,
Nov 30, 2012, 12:41:30 PM11/30/12
to agile-too...@googlegroups.com
I wants to try it, maybe tomorrow... I'm attending a conference today and tomorrow afternoon. On Monday I will have an answer :)

Understood the position of Romans

Reply all
Reply to author
Forward
0 new messages