'composer' is not recognized as an internal or external command in windows server 1) Download the composer installer (.exe) and put it on C:/XAMPP. 2) Run the installer by just clicking next till the end. 3) Open command-line (cmd) and cd to your project directory (C:/XAMPP/htdocs/myproject) and type composer and see if you have it installed. 4) It should work now, let's say you want to install a PHP framework from your project directory: cmd=>composer require slim/slim "^3.0" . Sol 2: The solution is to use complete composer path instead of composer install eg:- C:\ProgramData\ComposerSetup\bin\composer install" instead of "composer install Better still, add "C:\ProgramData\ComposerSetup\bin\" to your environment variables, so that you can use "composer install" . Sol 3: If u can 't find composer file than follow only 2 steps 1- Download composer file from [https://getcomposer.org/download/...
SQL | Views Views in SQL are kind of virtual tables. A view also has rows and columns as they are in a real table in the database. We can create a view by selecting fields from one or more tables present in the database. A View can either have all the rows of a table or specific rows based on certain condition. In this article we will learn about creating , deleting and updating Views. Sample Tables : StudentDetails CREATE TABLE FOLLOWING FIELDS STD_ID, NAME,ADDRESS StudentMarks CREATE TABLE FOLLOWING FIELDS id , NAME,MARKS, AGE CREATING VIEWS We can create View using CREATE VIEW statement. A View can be created from a single table or multiple tables. Syntax : CREATE VIEW view_name AS SELECT column1, column2..... FROM table_name WHERE condition; view_name : Name for the View table_name : Name of the t...
Three Favorite Open Source Java Libraries Java developers are lucky to have a long list of community libraries to pull from. Here are a few standouts that have made their way into virtually all of my new development. These were chosen because they have clean interfaces, provide significant value, are well tested, and most of all … help me write less code. Google Guava https://github.com/google/guava This one is probably at the top of a lot of developer’s lists. Back in my C/C++ days, we had Boost. Early in my Java days, we used Apache Commons. Now, Google Guava is the primary core/utility library for Java. If you ever find yourself writing anything that could be common to the Java language, look here first. Here are a few classes from Guava that I’m always using: Use the Optional class instead of using null: https://github.com/google/guava/wiki/UsingAndAvoidingNullExplained Use the Preconditions class to validate parameters and fail fast: https://githu...
Comments
Post a Comment