{"id":16055826,"url":"https://github.com/varunsridharan/eifyqueuescriptstyle","last_synced_at":"2025-03-26T20:40:18.699Z","repository":{"id":18644494,"uuid":"21851146","full_name":"varunsridharan/eifyQueueScriptStyle","owner":"varunsridharan","description":"This is class is heavily based on wordpress wp_enqueue_script / wp_enqueue_style","archived":false,"fork":false,"pushed_at":"2014-10-16T06:37:20.000Z","size":590,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T02:26:31.257Z","etag":null,"topics":["vs-php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lorint/fancy_gets","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varunsridharan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-15T07:48:17.000Z","updated_at":"2020-07-03T07:29:19.000Z","dependencies_parsed_at":"2022-09-15T01:21:46.006Z","dependency_job_id":null,"html_url":"https://github.com/varunsridharan/eifyQueueScriptStyle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2FeifyQueueScriptStyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2FeifyQueueScriptStyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2FeifyQueueScriptStyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2FeifyQueueScriptStyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varunsridharan","download_url":"https://codeload.github.com/varunsridharan/eifyQueueScriptStyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245733391,"owners_count":20663509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vs-php-library"],"created_at":"2024-10-09T02:22:28.548Z","updated_at":"2025-03-26T20:40:18.674Z","avatar_url":"https://github.com/varunsridharan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"eifyQueueScriptStyle\n====================\n\nThis is class is heavily based on wordpress wp_enqueue_script / wp_enqueue_style\n\n\nHow To Use It\n=============\n\nStep 1 : Include the file in your application [bootstrap / load / anywhere you need ] and initiate the class \n```php\nrequire('class-eifyQueueScriptStyle.php');\n$queue = new eify_QueueScriptStyle;\n```\n\n### Step 2 : Add A Script To Queue\n```\nOptions [\n     HandlerName : Some Name For The Enqued Script\n     SRC : File URL\n     Version : Script Version\n     Footer : if need to show in footer { TRUE | FALSE }\n]\n\nscript_enqueue($handle,$src,$version,$footer = false)\n\n```\n\n```php\n$queue-\u003escript_enqueue('jQuery','jQuery.js','1.0',true);\n$queue-\u003estyle_enqueue('jQueryCss','jQuery.css','1.0',false);\n```\n\n### Step 3 : Generate HTML \n```\nOptions [\n     footer : True / False [ Get Only Footer Script / Styles]\n]\n```\n\n```php\necho $queue-\u003eget_script();\necho $queue-\u003eget_style(true) ;\n```\n\nOther Options\n=============\n### Adding Script / Style dependency\n```PHP\n$queue-\u003escript_enqueue('jQueryui','jQueryui.min.js','1.11.0','jQuery','',false);\n$queue-\u003escript_enqueue('jQuery','jQuery.min.js','1.11.0','','',false);\n\n$queue-\u003estyle_enqueue('jQueryuicss','jQueryui.min.css','1.11.0','jQuery','',false);\n$queue-\u003estyle_enqueue('jQuerycss','jQuery.min.css','1.11.0','','',false);\n```\n### Custom Attributes\n```php\n$attr = array('SHOW' =\u003e 'HIDE','WHAT' =\u003e 'NONE');\n$queue-\u003escript_enqueue('jQueryMobile','jquery.mobile.min.js','1.11.0','jQuery','',$aatt,false);\n```\n\n### Check For Existing In Script / Style\n```php\nvar_dump($queue-\u003ehas_script('jQuery'));\nvar_dump($queue-\u003ehas_style('jQueryCss'));\n```\n\n### Remove A Script / Style From Queue \n```php\n$queue-\u003edequeue_script('jQuery');\n$queue-\u003edequeue_style('jQueryCss');\n```\n\n\n\n## If You Need Help\nPlease submit all issues and questions using GitHub issues and I will try to help you :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Feifyqueuescriptstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarunsridharan%2Feifyqueuescriptstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Feifyqueuescriptstyle/lists"}